# Way to get timestamps in access/error logs?

**URL:** <https://community.wowza.com/t/way-to-get-timestamps-in-access-error-logs/47311>\
**Category:** Wowza Streaming Engine\
**Created:** [July 21, 2016, 7:31pm UTC](https://community.wowza.com/t/way-to-get-timestamps-in-access-error-logs/47311 "2016-07-21T19:31:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabe\_da\_Silveira](https://avatars.discourse-cdn.com/v4/letter/g/e68b1a/32.png) [@Gabe\_da\_Silveira](https://community.wowza.com/u/Gabe_da_Silveira)\
**Post date:** [July 21, 2016, 7:31pm UTC](https://community.wowza.com/t/way-to-get-timestamps-in-access-error-logs/47311/1 "2016-07-21T19:31:50Z")

</div>

Is there an easy way to configure Wowza Streaming Engine to prepend log entries with a timestamp?

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [August 9, 2016, 7:23am UTC](https://community.wowza.com/t/way-to-get-timestamps-in-access-error-logs/47311/2 "2016-08-09T07:23:51Z")

</div>

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:

```auto
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](https://www.wowza.com/resources/WowzaMediaServer_ServerSideAPI.pdf), there is an example.

Regards,

Salvadore

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [August 9, 2016, 2:13pm UTC](https://community.wowza.com/t/way-to-get-timestamps-in-access-error-logs/47311/3 "2016-08-09T14:13:54Z")

</div>

You’re most welcome. Glad I could help.

Best,

Salvadore

---

<div class="post-metadata">

**Author:** ![Gabe\_da\_Silveira](https://avatars.discourse-cdn.com/v4/letter/g/e68b1a/32.png) [@Gabe\_da\_Silveira](https://community.wowza.com/u/Gabe_da_Silveira)\
**Post date:** [August 9, 2016, 10:55am UTC](https://community.wowza.com/t/way-to-get-timestamps-in-access-error-logs/47311/4 "2016-08-09T10:55:55Z")

</div>

Thank you salvadore, you are a god among men.
