cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 11

Sending data from Solarwinds via POST in JSON format

Is it possible to send data in JSON format from Solarwinds to other third party applications using POST method?

serenaaLTeReGo​ Any help please.

8 Replies
Level 14

Yes, you can...IF you are referring to alerts.

pastedImage_0.png

0 Kudos
Level 11

I tried this, but its not sending data in JSON format.

0 Kudos
Level 10

In my case testing using the slack webhook and the { this is a test } worked fine. When I try to add any variables it fails instantly.

0 Kudos

deverts  wrote:

Yes, you can...IF you are referring to alerts.

pastedImage_0.png

Yes, but this sends it via an HTTP[S] post message and not as a JSON object. Different, right?

0 Kudos
Level 14

Example of sending data to Splunk API:

{

    "event":[{

        "Status": "Node Down",

        "Severity": "${N=Alerting;M=Severity}",

        "Time": "${N=Alerting;M=AlertTriggerTime;F=DateTime}",

        "Device": "${N=SwisEntity;M=DisplayName}",

        "URL": "${N=SwisEntity;M=DetailsUrl}",

        "IP": "${N=SwisEntity;M=IP_Address}",

        "Street": "${N=SwisEntity;M=CustomProperties.Address}",

        "City": "${N=SwisEntity;M=CustomProperties.City}",

        "State": "${N=SwisEntity;M=CustomProperties.State}",

        "Zip": "${N=SwisEntity;M=CustomProperties.Zip_Code}",

        "Time Zone": "${N=SwisEntity;M=CustomProperties.TZ}"

    }]

}

0 Kudos
Level 11

Yes, this is possible. See the following article on Teams integration for example:

Microsoft Teams Integration with Orion Alerts

Level 11

Thanks Terry for the link provided. But I need to send the data in JSON format(missed to mention the same in the post, updated the same now). Using that alert action I don't think its possible.

Is there any other option possible.

0 Kudos

You could create alert actions that run an external program, such as powershell.exe, then use PowerShell's Invoke-WebRequest cmdlet to POST the data. The same concept would work with curl.