I'm managing a server running Debian 7 Wheezy. I'd like to add a new feature to the /var/log/syslog file.
That is a sample current output:
Jul 31 13:06:35 myserver mod_evasive: Couldn't open logfile /var/log/apache2/evasive/dos-XX.XX.XXX.XXX: Permission denied
(I've changed the IP for privacy).
How can I write the name of the user that attempts to write (or in general, does an operation)?