[SOLVED] TrackingCenter - Data collection source code?

itNGO

Renowned Member
Jun 12, 2020
980
289
88
46
Germany
it-ngo.com
We want to create a Grafana-Dashboard to display Mailflow for Customers hosted in our Datacenter.
So war I See all LOG Data is found in /var/log/mail.log.

Trackingcenter nicely displays Time, From, To and Status and details on "+".
Can this be done at command line also or if we read the log-file, where to find the logic to get the Data "together" for Time, From, To and Status?
 
The utility behind the tracking center doing the actual parsing is the pmg-log-tracker - you can find its source code here:
https://git.proxmox.com/?p=pmg-log-tracker.git;a=summary

to get the data displayed you need to do some decoding on its output - best compare with the implementation in the perl-api:
https://git.proxmox.com/?p=pmg-api....25ade2fac17d38cb8e4c62dc198cb978faf2a;hb=HEAD

to get the complete logs out you need to provide the '-vv' switch to pmg-log-tracker

I hope this helps to get you started!
 
  • Like
Reactions: itNGO
The utility behind the tracking center doing the actual parsing is the pmg-log-tracker - you can find its source code here:
https://git.proxmox.com/?p=pmg-log-tracker.git;a=summary

to get the data displayed you need to do some decoding on its output - best compare with the implementation in the perl-api:
https://git.proxmox.com/?p=pmg-api....25ade2fac17d38cb8e4c62dc198cb978faf2a;hb=HEAD

to get the complete logs out you need to provide the '-vv' switch to pmg-log-tracker

I hope this helps to get you started!
That helps a lot! Thank you!
 
  • Like
Reactions: Stoiko Ivanov