Skip to content

Commit 78fce0f

Browse files
committed
HBASE-24343 Document how to configure the http request log
Signed-off-by: Michael Stack <stack@apache.org>
1 parent 06949ff commit 78fce0f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

conf/log4j.properties

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,14 @@ log4j.logger.org.apache.hadoop.metrics2.impl.MetricsSystemImpl=WARN
126126
# Disable request log by default, you can enable this by changing the appender
127127
log4j.category.http.requests=INFO,NullAppender
128128
log4j.additivity.http.requests=false
129+
# Replace the above with this configuration if you want an http access.log
130+
#log4j.appender.accessRFA=org.apache.log4j.RollingFileAppender
131+
#log4j.appender.accessRFA.File=/var/log/hbase/access.log
132+
#log4j.appender.accessRFA.layout=org.apache.log4j.PatternLayout
133+
#log4j.appender.accessRFA.layout.ConversionPattern=%m%n
134+
#log4j.appender.accessRFA.MaxFileSize=200MB
135+
#log4j.appender.accessRFA.MaxBackupIndex=10
136+
# route http.requests to the accessRFA appender
137+
#log4j.logger.http.requests=INFO,accessRFA
138+
# disable http.requests.* entries going up to the root logger
139+
#log4j.additivity.http.requests=false

0 commit comments

Comments
 (0)