What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

PRTG Syslog - Get Syslog Message real time and send to API

Votes:

0

Hello,

I added on PRTG a Syslog receiver sensor. I also configured the notification to call an API if a sensor gets an error status.

I need to send the last Syslog error to the API: for this, I did put the variable "variables[syslogerrors]=%syslogerrors" in my API's URL, but in Gitlab I can't get it's value and I receive "%syslogerrors"

https://MyGitLab/api/v4/projects/PROJECT_REF/trigger/pipeline?token=TOKEN&variables[syslogerrors]=%syslogerrors&ref=main

I hope you can help me on this case.

Thank you very much.

placeholderstoapi syslog syslogapi sysloglasterror sysloglastmessage syslogmessage syslogsensor syslogvaraible

Created on Apr 15, 2022 7:20:07 AM



1 Reply

Votes:

0

Hello,

this placeholder is only resolved for the body of custom text emails, but not for HTTP actions. That means the only option here is to receive that email and have a script pushing the content through HTTP post by that script.

The placeholder contains the last 20 errors which are not older than 60 minutes.

PRTG is intended to be used as endpoint in the syslog chain, meaning it might me preferable to send the logs to a syslog suite, doing the processing there and have those logs then forwarded to PRTG if you want to use PRTG's notification system.

Created on Apr 15, 2022 1:24:22 PM by  Arne Seifert [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.