Tuesday, 3 March 2015

How To: Continuously Monitor LogFiles

Sometimes in the life of a SysAdmin it is necessary to monitor logfiles. Sometimes these logfiles can fill up really, really quickly. tail -f will show the logfile updating in realtime. But if you are looking for some specific event, using the following can be really handy:

tail -f <logfile> | grep <pattern>
Good,eh?!?


No comments:

Post a Comment