Re: Rotating apache logs

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Shawn Badger
Date:  
To: Main PLUG discussion list
Subject: Re: Rotating apache logs
I don't currently use it, but only because I am not at the job any more, but
they are still using it.
Yes, you can have the active log called whatever and the rotated logs called
and store something/where else.

Cronolog is basically an external program that apache will use for logging.
they have usage examples here:
http://cronolog.org/usage.html

in looking at those I may have been incorrect with my above statement. I was
probably using a symlink for my active log, but either way it should work
the same.


Have fun and let me know if you have any other ?'s



On Thu, Jul 1, 2010 at 2:32 PM, Eric Shubert <> wrote:

> Thanks Shawn. Do you still use cronolog? If not, what are you presently
> using?
>
> I'm also wondering, does cronolog allow me to rotate logs without renaming
> every one? I'd like them to keep the same name so that they don't get backed
> up repeatedly with rsync each time the name changes.
>
> Sorry for being lazy and not looking this up myself. ;)
>
> --
> -Eric 'shubes'
>
> Shawn Badger wrote:
>
>> I used cronolog (http://cronolog.org/) for logs for some time and found
>> it to be very flexable and no restart is needed after initial configuration.
>> It was very flexible at where to place the logs, how to name them and most
>> importantly how to rotate them.
>>
>> On Fri, Jun 25, 2010 at 4:03 PM, Eric Shubert < <mailto:
>> >> wrote:
>>
>>    It appears that there are 2 ways of rotating apache logs.

>>
>>    Logrotate can be used, in which case apache needs to be restarted after
>>    the logs are rotated.

>>
>>    There is also a rotatelogs program included with apache that controls
>>    log rotation
>>    (http://httpd.apache.org/docs/2.2/programs/rotatelogs.html).

>>
>>    Does anyone have a preference, or know which is considered to be best
>>    practice? I'm inclined to lean toward the later.

>>
>>    --     -Eric 'shubes'

>>
>>
>>    ---------------------------------------------------
>>    PLUG-discuss mailing list - 
>>    <mailto:PLUG-discuss@lists.plug.phoenix.az.us>

>>
>>    To subscribe, unsubscribe, or to change your mail settings:
>>    http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

>>
>>
>>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss