logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Issue with apache rotatelog
Author
ghoshdd



Joined: 07 Aug 2012
Posts: 2
Location: NY, USA

PostPosted: Tue 07 Aug '12 21:40    Post subject: Issue with apache rotatelog Reply with quote

I'm new to Apache and I've tried the rotatelogs process for access and error logging but seem to be having an issue with logs not being rotated. In fact I see access log and error log file in place but nothing is getting rotated every 24 hours..

Can anyone see a problem with the following that is placed in the httpd.conf file:

CustomLog "|/usr/local/apache-2.2/bin/rotatelogs /projects/serversoftwaredev/apache-2.2/grweb3-dev/logs/access_log. %Y-%m-%d-%H_%M_%S 86400" common

ErrorLog "|/usr/local/apache-2.2/bin/rotatelogs /projects/serversoftwaredev/apache-2.2/grweb3-dev/logs/error_log.%Y-%m-%d-%H_%M_%S 86400"
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Fri 10 Aug '12 13:49    Post subject: Reply with quote

Anything in your error log? Did you restart apache after doing the config change?
Back to top
ghoshdd



Joined: 07 Aug 2012
Posts: 2
Location: NY, USA

PostPosted: Wed 15 Aug '12 20:27    Post subject: Reply with quote

Thanks.. It is working fine after restarting apache server..One small issue, log file is getting generated but timestamp is displaying 00_00_00 but date stamp is displaying fine..

access_log.2012-08-15-00_00_00

Guys - Any idea?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 16 Aug '12 17:28    Post subject: Reply with quote

Yepp, I guess the logroation is at midnight or UTC midnight. Maybe you should define an offset
http://httpd.apache.org/docs/2.2/programs/rotatelogs.html
Back to top


Reply to topic   Topic: Issue with apache rotatelog View previous topic :: View next topic
Post new topic   Forum Index -> Apache