[syslog-ng] Logrotate Questions And Solicitation For Ideas...
Harry Hoffman
hhoffman at ip-solutions.net
Thu Jul 20 21:13:14 CEST 2006
I believe this will work... I haven't actually tested it though ;-)
create a file in logrotate.d called <blah>
Its content would look like:
/var/log/somedir/*/*log {
missingok
notifempty
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslog.pid 2>/dev/null` 2>
/dev/null || true endscript
}
HTH,
Harry
--
Harry Hoffman
Integrated Portable Solutions, LLC
877.846.5927 ext 1000
http://www.ip-solutions.net/
Vadim Pushkin wrote:
> Hi Nate;
>
> I'd love to use logrotate, but as you can see from my original post, my
> logs are in a bunch of dirs, mostly created on the fly as new stuff
> comes in. How do I configure logrotate.conf for this?
>
> Thank you,
>
> .vp
>
>> From: Nate Campi <nate at campin.net>
>
>> On Wed, Jul 19, 2006 at 10:07:39PM -0400, Valdis.Kletnieks at vt.edu wrote:
>> > On Wed, 19 Jul 2006 22:26:15 -0000, Vadim Pushkin said:
>> > > Again, I am looking to rotate my logs, not delete them. Ideally,
>> something
>> > > like retaining *.logs.1 *.logs.2, etc.
>> >
>> > Oh my. They *have* to be called logs, logs.1, logs.2, logs.3...
>> logs.30? :)
>>
>> Go with what Valdis recommends. If you really have to rotate them, use
>> logrotate.
>> --
>> Nate
>
>
> _______________________________________________
> syslog-ng maillist - syslog-ng at lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
>
More information about the syslog-ng
mailing list