79

On ubuntu this file exists: /var/log/syslog.

However the same file does not appear on CentOS Distributions. What is the equivalent file on CentOS?

108

Red Hat family distributions (including CentOS and Fedora) use /var/log/messages and /var/log/secure where Debian-family distributions use /var/log/syslog and /var/log/auth.log.

Note that in newer Fedora (or RHEL/CentOS 7 if someone has gone out of their way to configure it this way), you may have no traditional syslog daemon running. In that case, the same data can be shown with journalctl (which defaults to producing text output in the syslog format).

0

In Red Hat Family distributions like CentOS and Fedora... instead of /etc/syslog.conf... it uses /etc/rsyslog.conf

  • Huh? Is this in addition to the accepted answer above, or are these now in lieu of the directories and files listed above. It's not exactly clear on what this answer means. Hint: Its okay to tell us EXACTLY what you mean. – zipzit Apr 16 at 20:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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