This is a discussion on Re: Monitoring any changes in /var/log/messages to file within the Linux Administration forums, part of the Linux Forums category; Sergiusz Michalski wrote: > Hi! > > Maybe you hav any good idea how to detect any new changes maked ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Sergiusz Michalski wrote:
> Hi! > > Maybe you hav any good idea how to detect any new changes maked in > /var/log/messages and write it to new separate file. Any script??? > > I've tried to use diff program but I need to have 2 files to compare so I > don't think that this is an optional solution. > > Thanks for all advices. > > Serge M. I've never used either, but "Unix System Administration Handbook" (E. Nemeth et al., ISBN 0-13-020601-6) recommends swatch and logcheck for analyzing logs. Quote: "While swatch can process an entire file in a single bound, it's primarily intended to be left running so that it can review new messages as they arrive, a la tail -f" |