[SOLVED] TrackingCenter - Data collection source code?

itNGO

Well-Known Member
Jun 12, 2020
762
175
53
45
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

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!