With ApacheLogToDB you can choose Apache's log format that best suits your preferences. Some common log formats and individual arguments description can be found at this page. To conform to ApacheLogToDB's requirements, log format string must begin with "|" character and format arguments must be delimited by "|" character. Here you can see some example format strings:

|%h|%l|%u|%t|%r|%>s|%b
|%h|%l|%t|%r|%s|%b|%{Referer}i|%{User-agent}i
|%t|%v|%{REMOTE_USER}e|%a|%{X-Forwarded-For}i|%m|%U|%q|%s|%B|%D|%{dds_auth}C


The newly arranged format string must be specified in Apache's configuration file httpd.conf in LogFormat directive, e.g.:

LogFormat "|%h|%l|%t|%r|%s|%b|%{Referer}i|%{User-agent}i" db_log


Then the same format string must be specified in ApacheLogToDB.conf.xml configuration file, e.g.:

<apacheLogFormat>|%h|%l|%t|%r|%s|%b|%{Referer}i|%{User-agent}i</apacheLogFormat>



Last edited Aug 23, 2013 at 11:00 AM by CodeDriller, version 3

Comments

No comments yet.