[asterisk-users] OT - log rotation [solved]
Steve Edwards
asterisk.org at sedwards.com
Sun Sep 6 12:52:41 CDT 2009
> 2009/9/5 Steve Edwards <asterisk.org at sedwards.com>
>
>> <snip>
>> You can, but I don't. I do it like this:
>>
>> <snip>
On Sun, 6 Sep 2009, Olivier wrote:
> Very, very interesting practises.
>
> Originally, I opened this thread when I wondered whether or not, I
> should centralize logs (and from that original question, I came to study
> some tiny details like finding why some software needs to be notified of
> log rotations and why some appearantly don't ...).
>
> What kept me from doing this before, is my capability to analyse a large
> central log file compared to analyse several specific log files. With a
> couple of grep commands, it should be possible to break a central file
> back into several files, so the only downside of centralizing would be
> having to edit those grep command lines.
>
> To avoid that, have you tried tools like phpLogCon ?
Nope. Never heard of phpLogCon before.
Back when I did web farms, we would break the multi-GB daily log file down
by web site so we could distribute the logs to the groups responsible for
those sites.
For Asterisk farms, I just keep all the log messages in a single file.
When I'm curious, I run a script that (using egrep) discards everything
I'm expecting so I only have to look at the unexpected.
I don't use the log files for statistics. I write everything I need for
statistics to the database from my [AGI empowered] dialplan.
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
More information about the asterisk-users
mailing list