1 # This is a sample syslog.conf fragment for use with Sudo.
3 # Sudo logs to local2 by default, but this is changable via the
4 # --with-logfac configure option. To see what syslog facility
5 # a sudo binary uses, run `sudo -V' as *root*. You may have
6 # to check /usr/include/syslog.h to map the facility number to
10 # The whitespace in the following line is made up of <TAB>
11 # characters, *not* spaces. You cannot just cut and paste!
13 # If you edit syslog.conf you need to send syslogd a HUP signal.
14 # Ie: kill -HUP process_id
16 # Syslogd will not create new log files for you, you must first
17 # create the file before syslogd will log to it. Eg.
18 # 'touch /var/log/sudo'
20 # This logs successful and failed sudo attempts to the file /var/log/sudo
21 local2.debug /var/log/sudo
23 # To log to a remote machine, use something like the following,
24 # where "loghost" is the name of the remote machine.