A
A
AUN2015-11-08 19:54:22
linux
AUN, 2015-11-08 19:54:22

How to configure snoopy logging to a separate file?

Hey!
Installed snoopy on debian. It writes to /var/log/auth.log . I want to configure the output of snoopy logs to a separate file. Tried like this , but it writes to both the new file and auth.log:
rsyslog.conf:

if      ($programname == 'snoopy')  \
then    -/var/log/snooopy.log
& ~

How to do it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vlad Zhivotnev, 2015-11-09
@AUN

:programname, isequal, "snoopy" /var/log/snoopy.log
& ~

If rsyslog

M
mureevms, 2015-11-09
@mureevms

Look here . Applications are different, but the essence is the same, it should work.

A
alegzz, 2015-11-09
@alegzz

no snoopy, but
cat /etc/rsyslog.d/sshd.conf
:programname, isequal, "sshd" /var/log/sshd.log
& ~
works correctly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question