[TriLUG] tail across logrotate

Jon Carnes jonc at nc.rr.com
Thu Mar 21 15:20:04 EST 2002


Have logrotate kick off the command for you.  It has a section for running
external commands on completion of the log rotate.

BTW: WTF r u doing?  I have some similar processes that I use for monitoring
firewall access, but I start and stop them on the hour, switching log files
hourly

Jon
----- Original Message -----
From: "M. Mueller at Signalnetware.com" <mmueller at signalnetware.com>
To: <trilug at trilug.org>
Sent: Thursday, March 21, 2002 1:38 PM
Subject: [TriLUG] tail across logrotate


> I want to "tail -f /var/log/myfile &" for weeks at a time.  I also
logrotate
> /var/log/myfile on a daily basis.  When I logrotate, the file handle
changes
> and the tail no longer works.  I am manually killing/restarting the tail
> process on a daily basis which is tedious since I do this to 5+ systems
per
> day.
>
> Any hints on how to automate or otherwise improve this process would be
most
> appreciated.
>
> PS: Note my new identity on this list.  Yahoo is shutting down POP3 access
to
> email accounts so it's bye-bye to bhu5nji.
>
> --
> Michael Mueller
> Signalnetware, Inc.
> www.signalnetware.com
> 919.621.6090
> Converged network solutions using open source tools
> _______________________________________________
> TriLUG mailing list
>     http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ:
>     http://www.trilug.org/~lovelace/faq/TriLUG-faq.html




More information about the TriLUG mailing list