mod_jk 日志 JkRequestLogFormat参数说明

来源:互联网 发布:加大音量的软件 编辑:程序博客网 时间:2024/05/17 12:56

LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/work12.properties
JkLogFile logs/mod_jk.log
JkLogLevel error
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
#options
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T %B %H %m %r %s %U %v %q %p %R"
#JkRequestLogFormat "%w %V %T"

JkMountCopy ALL
JkMount /vm/*  dm02c01

 

JkRequestLogFormat参数说明    1.143已配置
%w    Tomcat worker name
%V    The server name according to the UseCanonicalName setting
%T    Request duration, elapsed time to handle request in seconds '.' micro seconds
%B    Bytes sent, excluding HTTP headers
%b    Bytes sent, excluding HTTP headers (CLF format)
%H    The request protocol
%m    The request method
%r    First line of request
%s    Request HTTP status code
%U    The URL path requested, not including any query string.
%v    The canonical ServerName of the server serving the request
%q    The query string (prepended with a ? if a query string exists, otherwise an empty string)
%p    The canonical Port of the server serving the request
%R    Session route name (available with 1.2.19 and up)

 

[root@web1 ~]# cat /etc/httpd/conf/work22.properties
worker.list=dm02c01

worker.dm02c01s01.type=ajp13
worker.dm02c01s01.host=10.10.22.61
worker.dm02c01s01.port=8011
worker.dm02c01s01.lbfactor=50
worker.dm02c01s01.socket_keepalive=1
worker.dm02c01s01.socket_timeout=90

worker.dm02c01s02.type=ajp13
worker.dm02c01s02.host=10.10.22.81
worker.dm02c01s02.port=8011
worker.dm02c01s02.lbfactor=50
worker.dm02c01s02.socket_keepalive=1
worker.dm02c01s02.socket_timeout=90

worker.dm02c01.type=lb
worker.dm02c01.sticky_session=1
worker.dm02c01.balance_workers=dm02c01s01,dm02c01s02

 

0 0
原创粉丝点击