Linux - Sudo - Sudoers - Create a Sudo Log File

By default, sudo logs through syslog.

However, to specify a custom log file, use the logfile parameter like so:

Defaults  logfile="/var/log/sudo.log"

To log hostname and the four-digit year in the custom log file, use log_host and log_year parameters respectively as follows:

Defaults  log_host, log_year, logfile="/var/log/sudo.log"

Example sudo log file

TODO.