remove MASTER_DATA_DIRECTORY from gplogfilter HAWQ-1031
Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq-docs/commit/1ba8a23c Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq-docs/tree/1ba8a23c Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq-docs/diff/1ba8a23c Branch: refs/heads/develop Commit: 1ba8a23c7d743d963f6fdf257b02dfd449875cc6 Parents: 1a7efef Author: Lisa Owen <[email protected]> Authored: Thu Sep 1 13:53:54 2016 -0700 Committer: Lisa Owen <[email protected]> Committed: Thu Sep 1 13:53:54 2016 -0700 ---------------------------------------------------------------------- .../cli/admin_utilities/gplogfilter.html.md.erb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hawq-docs/blob/1ba8a23c/reference/cli/admin_utilities/gplogfilter.html.md.erb ---------------------------------------------------------------------- diff --git a/reference/cli/admin_utilities/gplogfilter.html.md.erb b/reference/cli/admin_utilities/gplogfilter.html.md.erb index da37147..44e73c5 100644 --- a/reference/cli/admin_utilities/gplogfilter.html.md.erb +++ b/reference/cli/admin_utilities/gplogfilter.html.md.erb @@ -45,7 +45,7 @@ where: ## <a id="topic1__section3"></a>Description -The `gplogfilter` utility can be used to search through a HAWQ log file for entries matching the specified criteria. If an input file is not supplied, then `gplogfilter` will use the `$MASTER_DATA_DIRECTORY` environment variable to locate the HAWQ master log file in the standard logging location. To read from standard input, use a dash (`-`) as the input file name. Input files may be compressed using `gzip`. In an input file, a log entry is identified by its timestamp in `YYYY-MM-DD [hh:mm[:ss]]` format. +The `gplogfilter` utility can be used to search through a HAWQ log file for entries matching the specified criteria. To read from standard input, use a dash (`-`) as the input file name. Input files may be compressed using `gzip`. In an input file, a log entry is identified by its timestamp in `YYYY-MM-DD [hh:mm[:ss]]` format. You can also use `gplogfilter` to search through all segment log files at once by running it through the [hawq ssh](hawqssh.html#topic1) utility. For example, to display the last three lines of each segment log file: @@ -63,7 +63,7 @@ By default, the output of `gplogfilter` is sent to standard output. Use the `-o` **\<input_options\>** <dt>\<input\_file\></dt> -<dd>The name of the input log file(s) to search through. If an input file is not supplied, `gplogfilter` will use the `$MASTER_DATA_DIRECTORY` environment variable to locate the HAWQ master log file. To read from standard input, use a dash (`-`) as the input file name.</dd> +<dd>The name of the input log file(s) to search through. To read from standard input, use a dash (`-`) as the input file name.</dd> <dt>-u, -\\\-unzip </dt> <dd>Uncompress the input file using `gunzip`. If the input file name ends in `.gz`, it will be uncompressed by default.</dd> @@ -144,10 +144,10 @@ $ gplogfilter -e '2016-02-13 14:23' ## <a id="topic1__section9"></a>Examples -Display the last three error messages in the master log file: +Display the last three error messages in the identified log file: ``` shell -$ gplogfilter -t -n 3 +$ gplogfilter -t -n 3 "/data/hawq/master/pg_log/hawq-2016-09-01_134934.csv" ``` Display the last five error messages in a date-specified log file: @@ -156,16 +156,16 @@ Display the last five error messages in a date-specified log file: $ gplogfilter -t -n 5 "/data/hawq-file-path/hawq-yyyy-mm-dd*.csv" ``` -Display all log messages in the master log file timestamped in the last 10 minutes: +Display all log messages in the date-specified log file timestamped in the last 10 minutes: ``` shell -$ gplogfilter -d :10 +$ gplogfilter -d :10 "/data/hawq-file-path/hawq-yyyy-mm-dd*.csv" ``` -Display log messages in the master log file containing the string `|con6 cmd11|`: +Display log messages in the identified log file containing the string `|con6 cmd11|`: ``` shell -$ gplogfilter -f '|con6 cmd11|' +$ gplogfilter -f '|con6 cmd11|' "/data/hawq/master/pg_log/hawq-2016-09-01_134934.csv" ``` Using [hawq ssh](hawqssh.html#topic1), run `gplogfilter` on the segment hosts and search for log messages in the segment log files containing the string `con6` and save output to a file.
