Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Issue with apache rotatelog |
|
Author |
|
ghoshdd
Joined: 07 Aug 2012 Posts: 2 Location: NY, USA
|
Posted: Tue 07 Aug '12 21:40 Post subject: Issue with apache rotatelog |
|
|
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
|
Posted: Fri 10 Aug '12 13:49 Post subject: |
|
|
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
|
Posted: Wed 15 Aug '12 20:27 Post subject: |
|
|
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
|
|
Back to top |
|
|
|
|
|
|