Alerting

How to send splunk alerts to Appdynamics console

manish_singh_77
Builder

Hi Team,

How do we send splunk alerts to Appdynamics tool, is there any add on app available or any direct integration available?

Please guide...

Tags (1)
0 Karma
1 Solution

gaurav_maniar
Builder

Hi,

If API is available on AppDynamics, than you can post the alert data to API by,
- creating custom command like sendemail and add it at end of your query (requires a python script)
- just create a pyhton script to post data on API and add it as alert action script.

https://docs.splunk.com/Documentation/Splunk/7.3.1/Search/Writeasearchcommand
https://docs.appdynamics.com/display/PRO45/Alert+and+Respond+API#AlertandRespondAPI-CreateEvents

View solution in original post

0 Karma

manish_singh_77
Builder

@gaurav_maniar

Could you please help me to create a custom command like sendemail and how do we add it at end of the query.

I have seen the second link and that says we can create custom event but that requires mandatory fields like summary, eventtype & severity. How do we do this in splunk?

curl -X POST --user user1@customer1:secret 'http://demo.appdynamics.com/controller/rest/applications/5/events?severity=INFO&summary=test1&eventt...'

0 Karma

manish_singh_77
Builder

@gaurav_maniar

Could you pls check

0 Karma

manish_singh_77
Builder

@gaurav_maniar

This worked, thanks a lot for all your help!

0 Karma

gaurav_maniar
Builder

Hi,

If API is available on AppDynamics, than you can post the alert data to API by,
- creating custom command like sendemail and add it at end of your query (requires a python script)
- just create a pyhton script to post data on API and add it as alert action script.

https://docs.splunk.com/Documentation/Splunk/7.3.1/Search/Writeasearchcommand
https://docs.appdynamics.com/display/PRO45/Alert+and+Respond+API#AlertandRespondAPI-CreateEvents

0 Karma

manish_singh_77
Builder

This really worked, thanks for all your help!

0 Karma

gaurav_maniar
Builder

Or you can directly use the below app from Splunk Base
https://splunkbase.splunk.com/app/4776/

0 Karma

manish_singh_77
Builder

Can we do this through script?

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...