How can customize the access, error and stats logs to log in Apache access log format?
We would like to log the access and stats log in Apache access log format. Is it possible?
How can customize the access, error and stats logs to log in Apache access log format?
We would like to log the access and stats log in Apache access log format. Is it possible?
You can re-arrange log fields by changing the layout.Fields line in an Appender in the /conf/log4j.properties file. For example this line in the Access Appender
log4j.appender.serverAccess.layout.Fields=x-severity,x-category,x-event;date,time,c-client-id,c-ip,c-port,cs-bytes,sc-bytes,x-duration,x-sname,x-stream-id,x-spos,sc-stream-bytes,cs-stream-bytes,x-file-size,x-file-length,x-ctx,x-comment
Note the commented out Field list at the top of this file that shows all the built-in log fields, which are not all included by default.
To add fields, take a look the ILogNotify api in the ServerSide API, there is an example.
https://www.wowza.com/resources/WowzaMediaServer_ServerSideAPI.pdf
Richard
is not uncomfortable