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
In reply to SSH and checking log files by naChoZ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |