pmg-log-tracker how does it do it's magic?

Teucrus

Active Member
Jul 7, 2018
15
0
41
37
Hello,

Does anyone know how pmg-log-tracker and by extension tracking center knows which log entries to group?
I am trying to export the logs to an external log manager to increase to log retention and have it show larger date ranges thatn availble with tracking center.
I was able to export the logs, but I do not understand how the tracking center groups the entries for specific emails.
Can someone please let me know? Or if there is a log analyser that can do the same thing?
I am currently testing with nagios log server.

Thank you.
 
Hello,

Thank you for your reply. I attempted to read the source code previously but I am a bit rusty with Rust :P
From the first link I can see you have put a lot of though to it.
Would it be possible to make pmg-log-tracker a standalone thing?
Or somehow, at the cost of the performance add an option to allow users to load bigger log sets to it?
The format you have, is very awsome, I was able to track down many issues with our mailer because of it.
I also want to use it to track things like mail traffic for specific users on large time scales to track if their mail traffic increases/decreases.
This is a good indicator for issues.
Anyway thank you again for your time and for the great software.
 
Would it be possible to make pmg-log-tracker a standalone thing?
it is already a standalone binary/git repo and reads from std syslog

Or somehow, at the cost of the performance add an option to allow users to load bigger log sets to it?
you can give a logfile manually with '-i' or simply modify your logrotate snippet to keep the syslogs longer
 
it is already a standalone binary/git repo and reads from std syslog


you can give a logfile manually with '-i' or simply modify your logrotate snippet to keep the syslogs longer
Sorry it was unclear of me. When I put a longer date range I get: "aborted by limit (too many hits)"
Is it possible for the user to select that limit from the pmg GUI?

Thank you.
 
By the way, when I run: /usr/bin/pmg-log-tracker from the cli, the output I get, does not make the same sense to me like it does when the results are in the GUI. I am guessing the GUI does additional processing to that output.

Can you outline the GUI's processing on how it matches the output from the cli?
 
  • 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!