[opensuse-support] LEAP 15.0 - logging amavis
Hi *, starting with openSUSE Leap 15.0 I got a problem with logging from the amavis daemon. Before 15.0 amavis logged to /var/spool/amavis/amavis.log, which was rotated once a day. With 15.0 amavis only logs to syslog despite the configuration setting "$do_syslog = 0;" in /etc/amavis.conf. After modifying the amavis.service file and commenting out "StandardOutput=syslog" I got no logging at all. Because amavis is logging a lot I don't want my syslog/journal get flooded, but I want at least a log file to see what is going on. Any idea? Thx and bye. Michael. -- Michael Hirmke -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Hi again,
Hi *,
starting with openSUSE Leap 15.0 I got a problem with logging from the amavis daemon. Before 15.0 amavis logged to /var/spool/amavis/amavis.log, which was rotated once a day. With 15.0 amavis only logs to syslog despite the configuration setting "$do_syslog = 0;" in /etc/amavis.conf. After modifying the amavis.service file and commenting out "StandardOutput=syslog" I got no logging at all.
nope, I was wrong - that also didn't change anything. I still get all log entries in the journal/syslog and an empty log file.
Because amavis is logging a lot I don't want my syslog/journal get flooded, but I want at least a log file to see what is going on.
Any idea?
Thx and bye. Michael.
-- Michael Hirmke -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
-- Michael Hirmke -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Op maandag 27 augustus 2018 21:55:00 CEST schreef Michael Hirmke:
Hi again,
Hi *,
starting with openSUSE Leap 15.0 I got a problem with logging from the amavis daemon. Before 15.0 amavis logged to /var/spool/amavis/amavis.log, which was rotated once a day. With 15.0 amavis only logs to syslog despite the configuration setting "$do_syslog = 0;" in /etc/amavis.conf. After modifying the amavis.service file and commenting out "StandardOutput=syslog" I got no logging at all.
nope, I was wrong - that also didn't change anything. I still get all log entries in the journal/syslog and an empty log file.
Because amavis is logging a lot I don't want my syslog/journal get flooded, but I want at least a log file to see what is going on.
Any idea?
Maybe you specified another $syslog_facility and had an entry in the configuration of syslog to send the log lines to /var/spool/amavis/amavis.log. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Hi,
Op maandag 27 augustus 2018 21:55:00 CEST schreef Michael Hirmke:
Hi again,
Hi *,
starting with openSUSE Leap 15.0 I got a problem with logging from the amavis daemon. Before 15.0 amavis logged to /var/spool/amavis/amavis.log, which was rotated once a day. With 15.0 amavis only logs to syslog despite the configuration setting "$do_syslog = 0;" in /etc/amavis.conf. After modifying the amavis.service file and commenting out "StandardOutput=syslog" I got no logging at all.
nope, I was wrong - that also didn't change anything. I still get all log entries in the journal/syslog and an empty log file.
Because amavis is logging a lot I don't want my syslog/journal get flooded, but I want at least a log file to see what is going on.
Any idea?
Maybe you specified another $syslog_facility and had an entry in the configuration of syslog to send the log lines to /var/spool/amavis/amavis.log.
good idea, but I double checked that in the files from the latest backup before updating to Leap 15.0 - and no, there was nothing specific to amavis.
-- fr.gr.
member openSUSE Freek de Kruijf
Bye. Michael.
-- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
-- Michael Hirmke -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 08/27/2018 09:55 PM, Michael Hirmke wrote:
Hi again,
Hi *,
starting with openSUSE Leap 15.0 I got a problem with logging from the amavis daemon. Before 15.0 amavis logged to /var/spool/amavis/amavis.log, which was rotated once a day. With 15.0 amavis only logs to syslog despite the configuration setting "$do_syslog = 0;" in /etc/amavis.conf. After modifying the amavis.service file and commenting out "StandardOutput=syslog" I got no logging at all.
nope, I was wrong - that also didn't change anything. I still get all log entries in the journal/syslog and an empty log file.
journal is not syslog, there are important differences. Journal keeps everything in the same place, and you can not avoid flooding. If you have something that generates gigabytes of log entries (say, leafnode in debug mode), the (systemd) journal is flooded and important entries about disk failure get purged out and lost for ever. With syslog you decide what goes where and what to rotate or dump to garbage. So typically with syslog amavis messages go to "/var/log/mail" only. You can readjust to send to "/var/log/amavis" if you want. Not exactly what you ask, have amavis log to file directly. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas)) -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Hi Carlos, [...]
nope, I was wrong - that also didn't change anything. I still get all log entries in the journal/syslog and an empty log file.
journal is not syslog, there are important differences.
I know, but with the "correct" settings one is feeding the other. [...]
So typically with syslog amavis messages go to "/var/log/mail" only. You can readjust to send to "/var/log/amavis" if you want.
Before installing Leap 15.0 and still on my other machine with LEAP 42.3 amavis is logging to /var/spool/amavis/amavis.log - and I can switch with $DO_SYSLOG = 0/1 between file and syslog.
Not exactly what you ask, have amavis log to file directly.
-- Cheers / Saludos,
Carlos E. R.
Bye. Michael. -- Michael Hirmke -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Op woensdag 29 augustus 2018 20:40:00 CEST schreef Michael Hirmke: [...]
So typically with syslog amavis messages go to "/var/log/mail" only. You can readjust to send to "/var/log/amavis" if you want.
Before installing Leap 15.0 and still on my other machine with LEAP 42.3 amavis is logging to /var/spool/amavis/amavis.log - and I can switch with $DO_SYSLOG = 0/1 between file and syslog.
amavis is a Perl script, so it should be rather easy to change the source to accomplish what you want. You can search the source for $DO_SYSLOG around which you will see what the setting of this variable is doing. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Hi,
Op woensdag 29 augustus 2018 20:40:00 CEST schreef Michael Hirmke:
[...]
So typically with syslog amavis messages go to "/var/log/mail" only. You can readjust to send to "/var/log/amavis" if you want.
Before installing Leap 15.0 and still on my other machine with LEAP 42.3 amavis is logging to /var/spool/amavis/amavis.log - and I can switch with $DO_SYSLOG = 0/1 between file and syslog.
amavis is a Perl script, so it should be rather easy to change the source to accomplish what you want. You can search the source for $DO_SYSLOG around which you will see what the setting of this variable is doing.
I could do that, but then I'd have to change it every time an update gets installed. Besides that, I'd like to understand, why the behaviour changed, although the logics in amavisd *seems* not to have changed.
-- fr.gr.
Bye. Michael. -- Michael Hirmke -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Hi,
Hi,
Op woensdag 29 augustus 2018 20:40:00 CEST schreef Michael Hirmke:
[...]
So typically with syslog amavis messages go to "/var/log/mail" only. You can readjust to send to "/var/log/amavis" if you want.
Before installing Leap 15.0 and still on my other machine with LEAP 42.3 amavis is logging to /var/spool/amavis/amavis.log - and I can switch with $DO_SYSLOG = 0/1 between file and syslog.
amavis is a Perl script, so it should be rather easy to change the source to accomplish what you want. You can search the source for $DO_SYSLOG around which you will see what the setting of this variable is doing.
I could do that, but then I'd have to change it every time an update gets installed. Besides that, I'd like to understand, why the behaviour changed, although the logics in amavisd *seems* not to have changed.
got it - the following lines were missing in amavis.conf: # Log file (if not using syslog) $logfile = "$MYHOME/amavis.log"; # (defaults to empty, no log) In amavis.conf from LEAP 42.3 they were included. Bye. Michael. -- Michael Hirmke -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
participants (3)
-
Carlos E. R.
-
Freek de Kruijf
-
mh@mike.franken.de