Splunk AppDynamics

how to set up Database alert to insert value in database table when health rule violation occur

CommunityUser
Splunk Employee
Splunk Employee

Hi ,

Can anybody help me with configuring database alerts to insert certain values into the database when the health rule violation occurs? Should I use custom action for that or remediation? Please help.

Regards,

NAzish Sayyed

Labels (1)
0 Karma

Yogesh_Chouk
Builder

Hi NAzish,

As per your query, we understand you are trying to update the controller database when the health rule violates. Please confirm. We do not recommend to use insert/update query in the database. Could you please let us know the use case or let us know if there is any disconnect.

You can use any of the actions as per your requirement to trigger alerts.

For more information-

https://docs.appdynamics.com/display/PRO44/Custom+Actions

https://docs.appdynamics.com/display/PRO44/Remediation+Scripts

Thanks,

Yogesh

0 Karma

Yogesh_Chouk
Builder

Hi,

Can you please confirm if you are referring to the controller database here. If yes, we do not recommend to update controller database as mentioned. If not, please write the custom scripts.

To build custom actions, please go through the below documentation.

https://docs.appdynamics.com/display/PRO44/Build+a+Custom+Action

Thanks,

Yogesh

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi Yogesh,

                 I want to update my application's database with the number of times a particular service is down.So for that i've created a bat file in windows and trying to run it with custom script but it shows failed excecution in event section of application dashboard.Can you please guide me where to see custom action's log and how to update a particular  column in oracle database on health rule violation.

Please see the attachment .image.png

0 Karma

Yogesh_Chouk
Builder

Hi,

To update the column in oracle db, please take a look into below docs

https://docs.oracle.com/javadb/10.8.3.0/ref/rrefsqlj26498.html

Thanks,

Yogesh

^ Edited by @Ryan.Paredez Removed reference of sharing Log files. Please do not share or copy and paste your log files into the community for security reasons.

0 Karma

CommunityUser
Splunk Employee
Splunk Employee
Hi Yogesh,
 
Following is the condition are to fulfilled upon Health rule violatio in a particular node.
 
       1)date , time  and count of occurence of health rule violation condition 
         to be inserted into application database for auditing
       2)A particular update script should be running upon each occurence of    health rule violation conditon.
 
       How to use custom Action to run a script in a particular database(where i can specify database connectio parameter).
 
Regards,
Nazish Sayyed.
0 Karma
Get Updates on the Splunk Community!

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...

AppDynamics is now part of Splunk Ideas

Hello Splunkers, We have exciting news for you! AppDynamics has been added to the Splunk Ideas Portal. Which ...

Advanced Splunk Data Management Strategies

Join us on Wednesday, May 14, 2025, at 11 AM PDT / 2 PM EDT for an exclusive Tech Talk that delves into ...