How to highlight Exception and failure in server.log file
Hi guys, I wanna highlighted display of some keywords like EXCEPTIONS and Failures in log file as it keep running.
thanxx |
Hello and welcome to LinuxQuestions,
You could install colortail (most likely exists in your repositories) or multitail. Looking forward to your participation in the forums. Have fun with Linux. Kind regards, Eric |
I can't install anything as i m not superuser. what I am asking is, when I am monitoring server.log, there are thousands of request processing every seconds so I just want to monitor only failures n exceptions occurred.
when I do " cat server.log " or " tail -f server.log " it continually display all requests but i want it to display only lines that containing Exception or errors i don't want use grep or seek like commands because it doesn't display continuously...grep doesn't update automatically. |
This will do it
Code:
tail -f server.log|grep -E "failure|exception" Note that its all case sensitive, so failure != Failure. |
Quote:
|
Quote:
keep it up. |
All times are GMT -5. The time now is 02:45 PM. |