# Save logs files at UTC time

**URL:** <https://community.wowza.com/t/save-logs-files-at-utc-time/35818>\
**Category:** Wowza Streaming Engine\
**Tags:** server-administration\
**Created:** [July 31, 2011, 6:14pm UTC](https://community.wowza.com/t/save-logs-files-at-utc-time/35818 "2011-07-31T18:14:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eliran\_Hayun](https://avatars.discourse-cdn.com/v4/letter/e/54ee81/32.png) [@Eliran\_Hayun](https://community.wowza.com/u/Eliran_Hayun)\
**Post date:** [July 31, 2011, 6:14pm UTC](https://community.wowza.com/t/save-logs-files-at-utc-time/35818/1 "2011-07-31T18:14:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [July 31, 2011, 4:52pm UTC](https://community.wowza.com/t/save-logs-files-at-utc-time/35818/2 "2011-07-31T16:52:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Eliran\_Hayun](https://avatars.discourse-cdn.com/v4/letter/e/54ee81/32.png) [@Eliran\_Hayun](https://community.wowza.com/u/Eliran_Hayun)\
**Post date:** [July 31, 2011, 7:08pm UTC](https://community.wowza.com/t/save-logs-files-at-utc-time/35818/3 "2011-07-31T19:08:24Z")

</div>

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](https://www.wowza.com/forums/showthread.php?11649-wowza-and-server-time-off&p=57825)

[http://articles.techrepublic.com.com…1-5815391.html](http://articles.techrepublic.com.com...1-5815391.html)

[http://publib.boulder.ibm.com/infoce…e/adrtzval.htm](http://publib.boulder.ibm.com/infoce...e/adrtzval.htm)

What I did is add the

```auto
-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

---

<div class="post-metadata">

**Author:** ![Andrew\_Kennedy1](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Andrew\_Kennedy1](https://community.wowza.com/u/Andrew_Kennedy1)\
**Post date:** [June 20, 2013, 1:41am UTC](https://community.wowza.com/t/save-logs-files-at-utc-time/35818/4 "2013-06-20T01:41:35Z")

</div>

> 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

```auto
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

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

```

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

Andrew.

---

<div class="post-metadata">

**Author:** ![Steve\_French](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@Steve\_French](https://community.wowza.com/u/Steve_French)\
**Post date:** [June 20, 2013, 7:36am UTC](https://community.wowza.com/t/save-logs-files-at-utc-time/35818/5 "2013-06-20T07:36:24Z")

</div>

> 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](https://www.wowza.com/forums/showthread.php?11649-wowza-and-server-time-off&p=57825)
> 
> [http://articles.techrepublic.com.com…1-5815391.html](http://articles.techrepublic.com.com...1-5815391.html)
> 
> [http://publib.boulder.ibm.com/infoce…e/adrtzval.htm](http://publib.boulder.ibm.com/infoce...e/adrtzval.htm)
> 
> What I did is add the
> 
> ```auto
> -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?

---

<div class="post-metadata">

**Author:** ![Steve\_French](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@Steve\_French](https://community.wowza.com/u/Steve_French)\
**Post date:** [June 20, 2013, 12:53pm UTC](https://community.wowza.com/t/save-logs-files-at-utc-time/35818/6 "2013-06-20T12:53:05Z")

</div>

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?
