collect logs

sancheli

Member
Oct 4, 2022
10
0
6
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!
 
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!
Hi! The tracking center groups mail very conveniently - it would be cool if one day you made a module for external storage of logs, for example, in elasticsearch in exactly the same way as from the tracking center.