Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 74812200C10 for ; Fri, 20 Jan 2017 00:10:27 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 72F73160B57; Thu, 19 Jan 2017 23:10:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 930B5160B54 for ; Fri, 20 Jan 2017 00:10:26 +0100 (CET) Received: (qmail 81484 invoked by uid 500); 19 Jan 2017 23:10:25 -0000 Mailing-List: contact dev-help@hawq.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hawq.incubator.apache.org Delivered-To: mailing list dev@hawq.incubator.apache.org Received: (qmail 81473 invoked by uid 99); 19 Jan 2017 23:10:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2017 23:10:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 1DD50188877 for ; Thu, 19 Jan 2017 23:10:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -7.019 X-Spam-Level: X-Spam-Status: No, score=-7.019 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id oPzvhaURrWDx for ; Thu, 19 Jan 2017 23:10:23 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 143585F282 for ; Thu, 19 Jan 2017 23:10:21 +0000 (UTC) Received: (qmail 81470 invoked by uid 99); 19 Jan 2017 23:10:21 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2017 23:10:21 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3E4F2DFB0E; Thu, 19 Jan 2017 23:10:21 +0000 (UTC) From: dyozie To: dev@hawq.incubator.apache.org Reply-To: dev@hawq.incubator.apache.org References: In-Reply-To: Subject: [GitHub] incubator-hawq-docs pull request #88: HAWQ-1261 - add discussion of HAWQ adm... Content-Type: text/plain Message-Id: <20170119231021.3E4F2DFB0E@git1-us-west.apache.org> Date: Thu, 19 Jan 2017 23:10:21 +0000 (UTC) archived-at: Thu, 19 Jan 2017 23:10:27 -0000 Github user dyozie commented on a diff in the pull request: https://github.com/apache/incubator-hawq-docs/pull/88#discussion_r96980622 --- Diff: markdown/admin/logfiles.html.md.erb --- @@ -0,0 +1,272 @@ +--- +title: HAWQ Administrative Log Files +--- + +Log files are files that include messages and other information about your HAWQ deployment, including the database and utilities. + +Every database instance in HAWQ \(master, standby, and segments\) runs a PostgreSQL database server with its own server log file. You generate log files when you invoke HAWQ management utilities directly, or indirectly via Ambari management operations. Additionally, other components in your HAWQ cluster (PXF, HDFS) generate log files of their own. + +These log files are distinctly located, formatted, configured, and managed. + +**Locating Log Files** + +HAWQ administrative log files reside in pre-defined or configured locations on the local file system of the HAWQ node. + +**Configuring Logging Parameters** + +Configurable logging parameters may affect what, when, and where messages are logged. You configure HAWQ administrative logging options via HAWQ server configuration parameters or command line options. + +**Managing Log Files** + +Log files are created and/or rotated at pre-defined or configured intervals. Note that administrative log files are not automatically truncated or deleted. The administrator must implement and periodically run scripts to clean up these log files. + +## HAWQ Database Server Log Files + + +### Locating HAWQ Log Files + +Each HAWQ master, standby, and segment database instance has its own server log file. Daily log files are created in the `pg_log` subdirectory of the master and segment data directory on the respective HAWQ node. You can obtain the master data directory location from the `hawq_master_directory` property value set in the `$GPHOME/etc/`[`hawq-site.xml`](../reference/HAWQSampleSiteConfig.html) configuration file. Similarly, you can obtain the segment data directory location from the `hawq_segment_directory` property value from `hawq-site.xml`. + +The naming convention for HAWQ database server log files is `hawq-_