# Log rotate

**URL:** <https://www.ruby-forum.com/t/log-rotate/206754>\
**Category:** NGINX\
**Created:** [May 9, 2011, 12:58pm UTC](https://www.ruby-forum.com/t/log-rotate/206754 "2011-05-09T12:58:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [May 9, 2011, 12:58pm UTC](https://www.ruby-forum.com/t/log-rotate/206754/1 "2011-05-09T12:58:28Z")

</div>

Hi,

Does nginx support the feature of logrotate by log4j format?  
log4j is rotate the log files by each date and rename the old logs  
with log\_name.YYYY-MM-DD.

Thanks.

–  
Jeff P.  
[www.DNSbed.com](http://www.DNSbed.com)

---

<div class="post-metadata">

**Author:** ![jeffpritchard](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/43a26b/32.png) [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Post date:** [May 9, 2011, 1:12pm UTC](https://www.ruby-forum.com/t/log-rotate/206754/2 "2011-05-09T13:12:04Z")

</div>

Hello!

On Mon, May 09, 2011 at 06:58:12PM +0800, Jeff P. wrote:

> Hi,
> 
> Does nginx support the feature of logrotate by log4j format?  
> log4j is rotate the log files by each date and rename the old logs  
> with log\_name.YYYY-MM-DD.

nginx doesn’t do any log rotation by itself. You have to rename  
logs yourself (or with your favorite logrotate tool) and send USR1  
signal to nginx to instruct it to reopen log files.

Maxim D.
