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

Feb 20, 2021
87
10
13
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:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!