Linux Log Files That Are Located Under - Var-Log Directory
Linux Log Files That Are Located Under - Var-Log Directory
/etc/rsyslog.conf is the configuration file using to manage the log file to write in
the /var/log/*.log respective log files.
global(workDirectory="/var/lib/rsyslog")
module(load="builtin:omfile" Template="RSYSLOG_TraditionalFileFormat")
include(file="/etc/rsyslog.d/*.conf" mode="optional")
*.info;mail.none;authpriv.none;cron.none /var/log/messages
authpriv.* /var/log/secure
mail.* -/var/log/maillog
cron.* /var/log/cron
.emerg :omusrmsg:
uucp,news.crit /var/log/spooler
local7.* /var/log/boot.log
*.info indicates that all logs with type INFO will be logged.
mail.none,authpriv.none,cron.none indicates that those error messages should
not be logged into the /var/log/messages file.
You can also specify *.none, which indicates that none of the log messages will
be logged.
The following are the log files that are located under /var/log/ directory. Some of
these log files are distribution specific. For example, you’ll see dpkg.log on
Debian based systems (for example, on Ubuntu).
Apart from the above log files, /var/log directory may also contain the following
sub-directories depending on the application that is running on your system.