logging rspamd to /var/log/rspamd

649 views
Skip to first unread message

Sophie Loe

unread,
Apr 9, 2017, 4:17:31 AM4/9/17
to rspamd
Hi, 

But I cannot see how to send all rspamd messages to a file.
In SA I used -s /var/log/spamd.log

Unsure how I can do the similar in Rspamd.  
Any clues?

Thanks, S.

Andrew Lewis

unread,
Apr 10, 2017, 3:32:38 AM4/10/17
to rsp...@googlegroups.com
Hi,

Supposing rspamd is configured to log to systemd journal and you'd
like to enable file logging, you could add the following settings to
/etc/rspamd/local.d/logging.inc :

~~~
type = "file";
filename = "$LOGDIR/rspamd.log";
~~~

You may also need to create /var/log/rspamd and make it writable by
the _rspamd user.

Best,
-AL.

Sophie Loe

unread,
May 14, 2017, 3:16:23 PM5/14/17
to rspamd
My apologies for not following up on this.  Thanks.  Please disregard my post today!
Reply all
Reply to author
Forward
0 new messages