LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 10-29-2006, 09:55 AM   #1
jasonpsage
LQ Newbie
 
Registered: May 2006
Posts: 6

Rep: Reputation: 2
Unhappy Apache Rotates Logs During Restart - How do I STOP IT?


Summary: When restarting Apache 2 with "service httpd stop" and then "apachectl graceful" (Because of SSL certificate) the log files, example: access_log becomes access_log.1, and a new access_log file is created, empty.

I only want log files appended to, not rotated. The log analyzers I'm trying to use require a specific log file to analyze. Each time I cycle the server, the data is moved. This renders the web analyzers useless.

I cannot locate anything in apachectl or in the http.conf that would determine this behavior.

Does anyone know if its possible to allow a log file to grow and not be rotated - even when the server is cycled?

Thank You very much in advance!
Jason P Sage

Last edited by jasonpsage; 10-29-2006 at 09:56 AM.
 
Old 10-29-2006, 01:46 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Why append, just stop logrotate from rotating the apache logs.
 
Old 10-30-2006, 08:23 AM   #3
jasonpsage
LQ Newbie
 
Registered: May 2006
Posts: 6

Original Poster
Rep: Reputation: 2
I don not know how to make it stop - that's why I'm asking...

Thank You, Tricky Kid, but you see, I do not know how to make it stop. That is why I posted a question.

When I cycle the server, it rotates the logs. Is there something I can disable named LogRotate? Is that what you are saying?

The behavior that would result from successfully doing what you said would give the append functionality I want. By appending, I mean that a particular log file will grow - because each new entry is appended to the existing file. In other words - I want my log file to grow, and not be rotated. I can't perform analysis with web log analyzer programs and things if they get rotated.

Thanx in advance for any suggestions.
Jason P Sage

Last edited by jasonpsage; 10-30-2006 at 08:35 AM.
 
  


Reply

Tags
apache, httpdconf, logs, rotate, service, stop


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Logs stop working redice Fedora 3 04-24-2006 11:49 AM
4-6 logs from kernel Per SECOND! How to stop? m15a4 Linux - General 7 02-01-2006 07:05 AM
how can i start, stop or restart Paxmaster Slackware 3 11-27-2004 02:31 PM
Mouse, how to stop and restart driver Crasherz Linux - Newbie 10 11-20-2003 09:53 PM
Start Stop Restart Services Sifvion Slackware 6 09-14-2002 04:13 AM


All times are GMT -5. The time now is 10:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration