You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by nd...@apache.org on 2020/05/30 00:03:39 UTC

[hbase] branch branch-2.3 updated: HBASE-24343 Document how to configure the http request log

This is an automated email from the ASF dual-hosted git repository.

ndimiduk pushed a commit to branch branch-2.3
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.3 by this push:
     new 88770c2  HBASE-24343 Document how to configure the http request log
88770c2 is described below

commit 88770c22bc13750725faec831f47b1091ba3308e
Author: Nick Dimiduk <nd...@apache.org>
AuthorDate: Fri May 29 14:42:55 2020 -0700

    HBASE-24343 Document how to configure the http request log
    
    Signed-off-by: Michael Stack <st...@apache.org>
---
 conf/log4j.properties | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/conf/log4j.properties b/conf/log4j.properties
index 0af1da7..2282fa5 100644
--- a/conf/log4j.properties
+++ b/conf/log4j.properties
@@ -126,3 +126,14 @@ log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSystemImpl=WARN
 # Disable request log by default, you can enable this by changing the appender
 log4j.category.http.requests=INFO,NullAppender
 log4j.additivity.http.requests=false
+# Replace the above with this configuration if you want an http access.log
+#log4j.appender.accessRFA=org.apache.log4j.RollingFileAppender
+#log4j.appender.accessRFA.File=/var/log/hbase/access.log
+#log4j.appender.accessRFA.layout=org.apache.log4j.PatternLayout
+#log4j.appender.accessRFA.layout.ConversionPattern=%m%n
+#log4j.appender.accessRFA.MaxFileSize=200MB
+#log4j.appender.accessRFA.MaxBackupIndex=10
+# route http.requests to the accessRFA appender
+#log4j.logger.http.requests=INFO,accessRFA
+# disable http.requests.* entries going up to the root logger
+#log4j.additivity.http.requests=false