Save logs files at UTC time

Hi,

We have servers all over the glob, we need to save Wowza log files with UTC time.

Some one know how we can do it?

Thanks,

Eliran

Eliran,

Take a look at the /conf/log4j.properties file. I think you can probably accomplish this with Appender.DatePattern:

[code[

log4j.appender.serverAccess.DatePattern=’.'yyyy-MM-dd

Looking around, I it think might also involve Appender.layout.ConversionPattern

Search for “log4j utc gmt datepattern conversionpattern”

Richard

Hi rrlanham,

Thanks for the fast replay but i find a way using java parameters.

https://www.wowza.com/forums/showthread.php?11649-wowza-and-server-time-off&p=57825

http://articles.techrepublic.com.com…1-5815391.html

http://publib.boulder.ibm.com/infoce…e/adrtzval.htm

What I did is add the

-Duser.timezone=UTC 

to the stratup.bat file

and to the WowzaMediaServer-Service.conf file i added this line under “# Java Additional Parameters”

wrapper.java.additional.#=-Duser.timezone=UTC

where #=the next number, in my case 8.

Thanks

Hi,

I tried this on 3.6.1 by adding -Duser.timezone=UTC into startup.bat, but log files are stillshowing BST.

1st 4 lines of startup.bat

@echo off

SETLOCAL ENABLEEXTENSIONS

-Duser.timezone=UTC

set runmode=standalone

Any ideas what I am doing wrong?

The best place to add it is in the setenv.bat file. A few changes have been made in 3.6 so now all configuration items are the same between Linux/Windows/Mac so making it easier to manage.

In the setenv.bat file

after

rem Uncomment to force Java to use specific language settings
rem set JAVA_OPTS=%JAVA_OPTS% -Duser.language=en -Duser.country=US -Dfile.encoding=Cp1252

add

set JAVA_OPTS=%JAVA_OPTS% -Duser.timezone=UTC

This should add it to the Java options when Wowza starts up.

Andrew.

Hi rrlanham,

Thanks for the fast replay but i find a way using java parameters.

https://www.wowza.com/forums/showthread.php?11649-wowza-and-server-time-off&p=57825

http://articles.techrepublic.com.com…1-5815391.html

http://publib.boulder.ibm.com/infoce…e/adrtzval.htm

What I did is add the

-Duser.timezone=UTC 

to the stratup.bat file

and to the WowzaMediaServer-Service.conf file i added this line under “# Java Additional Parameters”

wrapper.java.additional.#=-Duser.timezone=UTC

where #=the next number, in my case 8.

Thanks

Hi,

I tried this on 3.6.1 by adding -Duser.timezone=UTC into startup.bat, but log files are stillshowing BST.

1st 4 lines of startup.bat

@echo off

SETLOCAL ENABLEEXTENSIONS

-Duser.timezone=UTC

set runmode=standalone

Any ideas what I am doing wrong?

Thanks Andrew that worked OK.

I will be running as a service in production, do I need to add this to WowzaMediaServer-Service.conf file?