Is there an easy way to configure Wowza Streaming Engine to prepend log entries with a timestamp?
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.
Regards,
Salvadore
You’re most welcome. Glad I could help.
Best,
Salvadore
Thank you salvadore, you are a god among men.