Wowza Community

Log date, time and timezone integrally

Hello! I want Wowza server to log timestamp like “2016-07-21T19:02:15.222+0600”. Is it possible to configure this via log4j.properties?

I think you have to play with the settings in the /conf/log4j.properties file.

i dont know if the below is working (couldn;t find up-to-date info on this) Im testing it with the access log. Hopefully can tell you more tomorrow.

i added this line at the bottom part of the access_log settings;

log4j.appender.serverAccess.layout.ConversionPattern=%d{yyyy-MM-dd'T'HH:mm:ssX}{GMT}

# Access appender
log4j.appender.serverAccess=org.apache.log4j.DailyRollingFileAppender
log4j.appender.serverAccess.encoding=UTF-8
log4j.appender.serverAccess.DatePattern='.'yyyy-MM-dd
log4j.appender.serverAccess.File=${com.wowza.wms.ConfigHome}/logs/wowzastreamingengine_access.log
log4j.appender.serverAccess.layout=com.wowza.wms.logging.ECLFPatternLayout
#test to see if time_date is different for access log file
log4j.appender.serverAccess.layout.ConversionPattern=%d{yyyy-MM-dd'T'HH:mm:ssX}{GMT}

Ok,

and how do you it then?

Response from Wowza support:

It is not possible to change server log timestamp to match that format. Our custom logging layout won’t allow for that configuration.

So we use our own pattern layout.