Pages

Showing posts with label SYSLOG. Show all posts
Showing posts with label SYSLOG. Show all posts

Saturday, December 21, 2013

SYSLOG(Print system messages to console and /var/logmessages)

To print system messages to both /var/log/messgaes and to console do the following
# vi /etc/syslog.conf

Add the following lines
 
kern.*                                                  /dev/console 
*.info;mail,authpriv,cron,kern.none                     /dev/console

save the file and restart the service
 
 
# /etc/init.d/syslogd restart

Wednesday, September 15, 2010

SQUID monitoring

tail -f /var/log/squid/access.log | awk '{print$3 " " $8 " " $7}' // Use this script to monitor the We usage in ur home network