Adding ldap log via syslogd LOCAL4

Log file is created and maintained for the activity performed by server. This file is very important as it plays important role in performing troubleshooting. The first thing one can do when encounter a problem in accessing a service is to read the log file to find the actual issue. Mostly the log file and path will be created automatically but in certain cases the log file need to be created on our own. For an instance, how do we create a log file for LDAP via syslogd LOCAL4.

1) Edit /etc/syslog.conf - add local4.* /var/log/ldap/log
2) Touch /var/log/ldap.log
3) /etc/init.d/syslogd restart @ kilall -HUP syslogd

Now, initiate ldap and view the log by using tail -f /var/log/ldap.log