I use ubuntu and would like to create a custom log for the authentication information on the server.

It is currently written in /var/log/auth.log

Would it be possible besides write it in auth.log it also save the information in a new.log?

1 Answer 1


On Ubuntu 16.04 which uses rsyslog as its syslog daemon. You can do the following as root:

echo 'auth,authpriv.* /var/log/new.log' >> /etc/rsyslog.d/50-default.conf
systemctl restart rsyslog

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.