On ubuntu this file exists:
However the same file does not appear on CentOS Distributions. What is the equivalent file on CentOS?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Red Hat family distributions (including CentOS and Fedora) use
/var/log/secure where Debian-family distributions use
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).
I suggest search for Rsyslog
And fortunately, by default, Rsyslog service is automatically installed and should be running in CentOS/RHEL 7.
You can run this command about its status:
systemctl status rsyslog.service
There are useful information about files locations,its status and reference docs addresses.