LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Active log monitoring (https://www.linuxquestions.org/questions/linux-software-2/active-log-monitoring-392420/)

protip 12-13-2005 01:41 PM

Active log monitoring
 
Hi all,

I'm looking for a program that will monitor a log file in real time and allow me to run a script based on specific entries. I've already looked into Swatch, but apparently the "threshold" feature does not function on Fedora. Does anyone know of a similar program I can try out or have a work around for the broken threshold feature in Swatch?

Thanks in advance.

Hangdog42 12-13-2005 01:47 PM

If you just need an example, sshblack is a perl script that can monitor a log file for specific strings. I'm guessing you'd have to modify this, but it is an example of how to do it in perl.


And welcome to LQ!


All times are GMT -5. The time now is 06:23 AM.