Splunk AppDynamics

Triggering script on Health rule violation - Real time use cases

saad
Loves-to-Learn

Hello Everyone,

Recently I got to know about a feature in AppDynamics where we can trigger scripts on a HR violation.

I am really excited to use this functionality for our project. I am looking for some real time use cases where this has been implemented and has resolved a great problem.

1. Currently I have written a script where I will be restarting an application when ever it goes down (App Availability HR get violated). This has been working successfully.

2. I have also written a script to purge the old logs when disk space utilization goes above certain threshold. This works fine as well.

I am looking for some other use cases where this has been used or can be used. It would be really great if I can get suggestions and ideas on this.

Thank You,

Saad.

Labels (3)
0 Karma

Sunil_Agarwal
Communicator

@Saad.Ahmed , AppDynamics has a feature to configure an action to run Remediation Scripts.  Here are some real-time use cases where a script can be triggered on a Health Rule violation:

  1. CPU utilization: Trigger a script to analyze the processes that are consuming CPU resources and optimize the system.
  2. Memory usage: Trigger a script to analyze the memory usage and take appropriate actions such as garbage collection or memory optimizations.
  3. Network latency: Trigger a script to analyze network latency and take appropriate actions such as network optimizations or switching to alternative communication protocols.
  4. Database connectivity: Trigger a script to run diagnostics to identify and fix connectivity issues.
  5. Automatic scaling:  Trigger a script to scale up or down resources based on health rule violations whenever the tool detects a high traffic load on a web server.
  6. Garbage collection: Trigger a script to analyze the garbage collection patterns and take appropriate actions such as optimizing memory usage.
  7. Security breaches: Trigger a script to alert the security team and take appropriate actions such as blocking the attacker's IP address.

Let me know your thoughts.

Regards,
Sunil Agarwal

Get Updates on the Splunk Community!

Good Sourcetype Naming

When it comes to getting data in, one of the earliest decisions made is what to use as a sourcetype. Often, ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Splunk App for Anomaly Detection End of Life Announcement

Q: What is happening to the Splunk App for Anomaly Detection?A: Splunk is officially announcing the ...