# Create a new log file every hour?

**URL:** https://community.wowza.com/t/create-a-new-log-file-every-hour/33674
**Category:** Wowza Streaming Engine
**Created:** [October 14, 2009, 9:35pm UTC](https://community.wowza.com/t/create-a-new-log-file-every-hour/33674 "2009-10-14T21:35:01Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Robert\_A](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@Robert\_A](https://community.wowza.com/u/Robert_A)
#### Post date: [October 14, 2009, 9:35pm UTC](https://community.wowza.com/t/create-a-new-log-file-every-hour/33674/1 "2009-10-14T21:35:01Z")

</div>

Is there a way to change the log file schedule to create a new log file hourly instead of once a day?

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [October 15, 2009, 4:05am UTC](https://community.wowza.com/t/create-a-new-log-file-every-hour/33674/2 "2009-10-15T04:05:10Z")

</div>

Or you can just change this line (in conf/log4j.properties) from:

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

to:

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

Charlie

---

<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: [February 7, 2012, 1:27pm UTC](https://community.wowza.com/t/create-a-new-log-file-every-hour/33674/3 "2012-02-07T13:27:58Z")

</div>

Refer to this guide:

[https://www.wowza.com/docs/how-to-configure-log-rolling-by-time-and-size](https://www.wowza.com/docs/how-to-configure-log-rolling-by-time-and-size)

Richard

---

<div class="post-metadata">

### Author: ![Robert\_A](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@Robert\_A](https://community.wowza.com/u/Robert_A)
#### Post date: [October 16, 2009, 8:38pm UTC](https://community.wowza.com/t/create-a-new-log-file-every-hour/33674/4 "2009-10-16T20:38:24Z")

</div>

Do I also have to set this to hourly? If so, what file? DAILY would be HOURLY?

log4j.appender.[appender]=server.utils.CompressingRollingFileAppender

log4j.appender.[appender].Period=DAILY

---

<div class="post-metadata">

### Author: ![feroz\_khan](https://avatars.discourse-cdn.com/v4/letter/f/0ea827/32.png) [@feroz\_khan](https://community.wowza.com/u/feroz_khan)
#### Post date: [February 7, 2012, 4:59pm UTC](https://community.wowza.com/t/create-a-new-log-file-every-hour/33674/5 "2012-02-07T16:59:35Z")

</div>

hello

i am using wowza 3.0.4 , could anyone tell me how to rorate the log daily ??

it seems like if there have no request until that day the log wuldnt be rotated. i wont to do

it by forcing wowza to rotare the logs daily at 00:00…

i am using log4j-1.2.16.jar

and also tried log4j-rolling-appender-20100717-1237-1.2.15 with the above settings , but it doeesnt work

#log4j.appender.${com.wowza.wms.context.VHost}\_${com.wowza.wms.context.Application}\_access=org.apache.log4j.appender.TimeAndSizeRollingAppender

#log4j.appender.${com.wowza.wms.context.VHost}\_${com.wowza.wms.context.Application}\_access.DateRollEnforced=true

#log4j.appender.${com.wowza.wms.context.VHost}\_${com.wowza.wms.context.Application}\_access.DatePattern=’.'yyyy-MM-dd

#log4j.appender.${com.wowza.wms.context.VHost}\_${com.wowza.wms.context.Application}\_access.MaxRollFileCount=-1

any idea???
