# Problem with nginx-0.7.67 logs

**URL:** <https://www.ruby-forum.com/t/problem-with-nginx-0-7-67-logs/191124>\
**Category:** NGINX\
**Created:** [July 6, 2010, 4:02am UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-7-67-logs/191124 "2010-07-06T04:02:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xin\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/3be4f8/32.png) [@Xin\_L](https://www.ruby-forum.com/u/Xin_L)\
**Post date:** [July 6, 2010, 4:02am UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-7-67-logs/191124/1 "2010-07-06T04:02:14Z")

</div>

Hi all,

My server is Debian. And I installed nginx (0.7.67-1) to host my  
webpage.  
The problem is that, everyday on 06:25PM (New York time), nginx will  
generate a new log file and rename the old log file nginx.log.1.  
I’ve checked server, there is no schedule job. And nobody restart nginx  
or  
force nginx to generate a new log.  
Anyone can help?

---

<div class="post-metadata">

**Author:** ![Xin\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/3be4f8/32.png) [@Xin\_L](https://www.ruby-forum.com/u/Xin_L)\
**Post date:** [July 6, 2010, 4:08am UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-7-67-logs/191124/2 "2010-07-06T04:08:05Z")

</div>

are you sure you have checked both cronjob as well as scripts running  
in the background? it sounds like log rotate to me  
cheers  
Payam

On Mon, Jul 5, 2010 at 7:01 PM, Xin L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://nginx.org/mailman/listinfo/nginx)

–  
Payam Tarverdyan Chychi  
Network Security Specialist / Network Engineer

---

<div class="post-metadata">

**Author:** ![Xin\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/3be4f8/32.png) [@Xin\_L](https://www.ruby-forum.com/u/Xin_L)\
**Post date:** [July 6, 2010, 4:46am UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-7-67-logs/191124/3 "2010-07-06T04:46:42Z")

</div>

Hi Payam,

I’ve checked cronjob. And I didn’t use log rotate. I just use awstats to  
analysis logs and purge nginxlog.  
Is there any script special I need to check?

---

<div class="post-metadata">

**Author:** ![Xin\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/3be4f8/32.png) [@Xin\_L](https://www.ruby-forum.com/u/Xin_L)\
**Post date:** [July 6, 2010, 2:29pm UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-7-67-logs/191124/4 "2010-07-06T14:29:12Z")

</div>

## Xin L. Wrote:

> force nginx to generate a new log.  
> Anyone can help?

That does sound like the default behavior of Debian for cron and  
logrotate. Check /etc/crontab for the 6:25AM entry:

25 6 \* \* \* root test -x /usr/sbin/anacron || ( cd / && run-parts  
–report /etc/cron.daily )

and check for /etc/cron.daily/logrotate and /etc/logrotate.d/nginx.

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,105720,105875#msg-105875](http://forum.nginx.org/read.php?2,105720,105875#msg-105875)

---

<div class="post-metadata">

**Author:** ![Xin\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/3be4f8/32.png) [@Xin\_L](https://www.ruby-forum.com/u/Xin_L)\
**Post date:** [July 6, 2010, 2:59pm UTC](https://www.ruby-forum.com/t/problem-with-nginx-0-7-67-logs/191124/5 "2010-07-06T14:59:04Z")

</div>

Thanks.  
I found it.
