Working with Linux Log File Contents

grep eth0 /var/log/* – locates all lines in all files in the /var/log directory that contain the string eth0

less messages

use head or tail

tail -f /var/log/messages

Log file analysis tool – Logcheck http://sourceforge.net/projects/sentrytools/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s