0

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

0

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

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.