Changing Log Files Location In RHEL

Log files often help System Administrators in finding out important information about System related issues. In RHEL there are a lot of log files under /var/log like messages ,maillog,faillog,cups and cron etc. Here we will discuss how can we decide the location of log files and forward appropriate messages to these locations.

In RHEL /etc/syslog.conf is the file responsible for deciding log file location.Open this file and you’ll see it. syslogd is the daemon associated with it and after every change you made to this file you need to restart this daemon.Now you can make entry in this file as we have done in following examples-