journald only mail gateway / journald support for pmg-log-tracker

abma

Active Member
Feb 20, 2021
89
12
28
We don't want to use rsyslog for logfiles: only journald.

This breaks the "Tracking Center", it shows nothing when rsyslog is removed. To fix it, i've renamed pmg-log-filter to pmg-log-filter.real and wrote a tiny script as replacement for pmg-log-filter:
Code:
#!/bin/sh
journalctl -u "postfix*" -u pmg-smtp-filter | /usr/bin/pmg-log-tracker.real -i - $@

before this, run "dpkg-divert --divert /usr/bin/pmg-log-tracker.real --rename --add /usr/bin/pmg-log-tracker"

This works, but isn't this performant i guess as always the full log is parsed. are there plans to directly support journald in pam-log-filter?

These parameters are used for the Tracking Center it seems: "-v -l 2000 -s 1712901436 -e 1712959201 -n -g"

So if slightly adjusted, journalctl would show only the required log and the performance could be improved.

Anyone else interested in a journald only system? Is there a ticket / feature request about this?

Edit: i've created a feature request ticket: https://bugzilla.proxmox.com/show_bug.cgi?id=5375
 
Last edited:
I go back to this subject. Is Therea possibility to use newest PMG with systemd journal only (without rsyslog)?
When it would be set as default?

If You want to use full power of journalctl You should know:
-g (grep regexp)
--since
--lines
and so on ;)
 
Last edited: