Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When i browsed through many linux forums, many Ubuntu geeks solve issue using 'syslog'. They analyze it, and post the answer. Can anyone give me an idea about it?

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

There are many software packages that can provide system logging. Ubuntu is using the package, rsyslog. It's configuration files are located in /etc/rsyslog.conf and /etc/rsyslog.d/*. The configuration files define which system messages to log, which directories to store messages, and which files to record different portions of system messages. As with the majority of Unix and Linux, the system log files are recorded in the files located in the directory, /var/log/.

By examining these files, we can learn what is happening with the software on the system. For example, auth.log records user authentication events, boot.log records boot events, syslog records all messages except authentication events (by default configuration).

To examine a log file in real time: sudo tail -f /var/log/syslog

To find cron-related messages: sudo grep cron /var/log/syslog

To learn more about system logging from the command line:

apropos syslog

This command, apropos, will try to return relevant manual pages for the term, "syslog." It will return a reference for 'rsyslogd' and it's configuration files. There is also a good Wikipedia article.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.