naChoZ has asked for the wisdom of the Perl Monks concerning the following question:
I've been trying to noodle through a good way of doing this. I have a script that can use STDIN to parse a maillog file, so I can run ssh server.example.com cat /var/log/maillog | ./maillog_parse.pl --import and it works just swell.
Now I would like to incrementally check the log. So, how would one tell and seek over an ssh connection? I'm open to other suggestions, but keep in mind that some of these logs are huge. As long as it can perform checks periodically, factor in log rotation, and not rely on the timestamp of a log line, that's all I need.
--
"A long habit of not thinking a thing wrong, gives it a superficial appearance of being right." -- Thomas Paine
naChoZ
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SSH and checking log files
by Aristotle (Chancellor) on Aug 10, 2004 at 19:39 UTC | |
by naChoZ (Curate) on Aug 10, 2004 at 23:04 UTC | |
|
Re: SSH and checking log files
by pzbagel (Chaplain) on Aug 10, 2004 at 19:49 UTC | |
|
Re: SSH and checking log files
by roju (Friar) on Aug 11, 2004 at 00:38 UTC | |
|
Re: SSH and checking log files
by rsteinke (Scribe) on Aug 11, 2004 at 06:33 UTC | |
|
Re: SSH and checking log files
by ikegami (Patriarch) on Aug 10, 2004 at 20:45 UTC |