collect logs

sancheli

New Member
Oct 4, 2022
10
0
1
Hi.
Please tell me if it is possible to somehow use internal utilities to collect logs.
We have 6 PMG nodes
Now we collect all the GET /api 2/json/nodes/{node}/tracker email IDs via API and then pull out the GET /api 2/json/nodes/{node}/tracker/{id} email log and send it all to ELK

We have an API request script. written in powershell. It takes us a lot of time to execute this script. Through the WEB interface, logs for the day are displayed faster than when we collect them through the API
Maybe someone has some experience in collecting logs? How do we quickly collect logs as they are displayed in the tracking center?
 
Depending on how you need the logs - you could simply send the syslogs to your ELK machine - the Tracking Center takes its information from /var/log/syslog and rotated variants. The downside is of course that the information is not grouped by email but in chronological order.

I hope this helps!
 

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!