Hi i have a huge amount of new log entries coming my way on my prtg and i can't physically read them all and find the most important ones so I need a way to parse through them and find the most important ones to act on and I am using prtg for this matter and it is awesome but I need a way to send prtg log entries to Splunk, if they are written to a file or i can get them via an http get or even if there is a capability to send them to another server? if anything is possible please help me it is very important to me. thanks in advance


Article Comments

Hi there,

You can use PRTG's API which allows you to export all Logs in JSON, XML or CSV:
https://www.paessler.com/manuals/prtg/application_programming_interface_api_definition

To get the last 500 entries of your logs, please use this URL (it returns the data in JSON):

/api/table.json?content=messages&columns=datetime,parent,type,name,status,message&sortby=date&count=500

If you want to use this API call unauthenticated (via a script) then you need to add credentials:
https://www.paessler.com/manuals/prtg/http_api#authentication

Best Regards


Jul, 2019 - Permalink