Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

In CentOS and many other distros you can configure syslogd using /etc/syslog.conf but in Ubuntu there is no such file. Which file I should edit for configuring syslogd in Ubuntu.

share|improve this question
add comment

2 Answers 2

up vote 4 down vote accepted

Syslog configuration in Ubuntu is usually in /etc/rsyslog.d/50-default.conf

This, btw. is the setup i like to use:

auth,authpriv.*                                         /var/log/auth.log
cron.*                                                  /var/log/cron.log
mail.=info,mail.=notice                                 -/var/log/mail.info
mail.warning                                            /var/log/mail.err
kern.*                                                  -/var/log/kern.log
*.*;mail,kern,cron,auth,authpriv.none                   -/var/log/syslog

# all warnings except auth into one file
*.warning;auth,authpriv.none                            /var/log/error.log

# Emergencies are sent to everybody logged in.
*.emerg                         *
share|improve this answer
add comment

There are syslog alternatives, primarily rsyslog. Lucid uses rsyslog, so you'll need to look at /etc/rsyslog.conf and /etc/rsyslog.d. I'm not sure what Precises uses off-hand.

Here are the relevant man pages:

http://manpages.ubuntu.com/manpages/precise/man8/rsyslogd.8.html

http://manpages.ubuntu.com/manpages/precise/man5/rsyslog.conf.5.html

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.