File logging with timestamp

31 views
Skip to first unread message

Artyom Aleksandrov

unread,
Oct 14, 2016, 4:04:07 PM10/14/16
to rspamd
Hello, is there a way to add timestamp  to rspamd logs (type=file)?

(fuzzy) logger; file_log_function: Last message repeated 301 times
(fuzzy) <37ee21>; fuzzy_backend; rspamd_fuzzy_backend_sync: deleted 0 orphaned shingles
(main) <42c481>; main; rspamd_term_handler: catch termination signal, waiting for children
(fuzzy) <37ee21>; fuzzy_backend; rspamd_fuzzy_backend_sync: deleted 0

Thanks!

Vsevolod Stakhov

unread,
Oct 14, 2016, 5:29:47 PM10/14/16
to Artyom Aleksandrov, rspamd
Rspamd logs timestamps in file mode by default unless `systemd` is true
which is required to log to journald. So you need to disable systemd in
`logging` section to restore the default behaviour.

--
Vsevolod Stakhov

Artyom Aleksandrov

unread,
Oct 14, 2016, 5:42:44 PM10/14/16
to rspamd, tem...@gmail.com
Thank you for this information!
Reply all
Reply to author
Forward
0 new messages