Rotating apache logs
Shawn Badger
badger.shawn at gmail.com
Fri Jul 2 09:15:19 MST 2010
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 <ejs at shubes.net> 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 <ejs at shubes.net <mailto:
>> ejs at shubes.net>> 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 - PLUG-discuss at lists.plug.phoenix.az.us
>> <mailto:PLUG-discuss at 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 - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20100702/0c0c910f/attachment.html>
More information about the PLUG-discuss
mailing list