AppDynamics Alerting Extension for use with Logstash


Use of custom actions for HTTP based integrations is no longer supported. Please look at HTTP Request Templates on how HTTP based integrations can be done. For sample HTTP templates, please check this article.

Use Case

The Logstash Alerting Extension enables AppDynamics to post custom notifications to Logstash in JSON format. Logstash is an open source tool which is part of the ElasticSearch family, used for managing events and logs. It comes with different plugins for collecting, parsing and outputting logs. It also comes with a web interface for searching and drilling into your logs. For more info, see



  1. You have a running instance of logstash.

  2. You have configured your logstash to use the tcp input plugin in server mode, see For examples:

    Non-SSL TCP config:

    input {                                                                                                                                           
     tcp {
      host => "localhost"
      mode => "server"
      port => 3333
      type => "AppDynamics Alert"

    SSL TCP config with Self Signed Certificate:

    input {                                                                                                                                         
     tcp {
      host => ""
      mode => "server"
      port => 3334
      ssl_enable => true
      ssl_key => "/my/path/to/ssl-key/privkey.pem"
      ssl_cert => "/my/path/to/ssl-cert/newcert.pem"
      ssl_key_passphrase => "nopassphrase"
      type => "AppDynamics Alert"


Installation Steps


  1. Download the zip file and unzip it into <CONTROLLER_HOME_DIR>/custom/actions/. You should have <CONTROLLER_HOME_DIR>/custom/actions/logstash-alert created.

  2. Check if you have custom.xml file in <CONTROLLER_HOME_DIR>/custom/actions/ directory. If yes, add the following xml to the <custom-actions> element.

          <!-- For Linux/Unix *.sh -->
          <!-- For windows *.bat -->

    If you don't have custom.xml already, create one with the below xml content

            <!-- For Linux/Unix *.sh -->
            <!-- For windows *.bat -->

    Uncomment the appropriate executable tag based on windows or linux/unix machine.

  3. Update the config.yaml file in <CONTROLLER_HOME_DIR>/custom/actions/logstash-alert/conf/.



1. config.yml

Note: Please make sure to not use tab (\t) while editing yaml files. You may want to validate the yaml file using a yaml validator.

hostThe TCP hostname, i.e. host value specified in logstash's tcp config
portThe TCP port number, i.e. port value specified in logstash's tcp config
showEvaluationDetailsIf set to true, the message posted will contain the evaluation details that triggered the alert
sslThis section includes all SSL related config
enableIf set to true, SSL connection is used - must provide all other SSL info below
allowSelfSignedCertIf set to true, Self Signed Certificate used by Logstash is accepted without the need to import the certificate in your truststore (no need to provide any details about keystore and truststore).
keystorePathThe keystore's path (absolute path and relative path from logstash-alert extension install dir are accepted)
keystorePasswordThe keystore password
keystorePathThe truststore's path (absolute path and relative path from logstash-alert extension install dir are accepted)
truststorePasswordThe truststore password

Below is an example config using SSL:

host: localhost

port: 3334

showEvaluationDetails: true

  enable: true
  allowSelfSignedCert: false
  keystorePath: "conf/client_cert/keystore.jks" #example of relative path
  keystorePassword: "password"
  truststorePath: "/home/fsarmiento/AppDynamics/Controller/custom/actions/logstash-alert/conf/client_cert/keystore.jks" #example of absolute path
  truststorePassword: "password"

2. Creating Custom Actions:

  1. To create a Custom Action, first refer to the the following topics (requires login):

  2. Now you are ready to use this extension as a custom action. In the AppDynamics UI, go to Alert & Respond -> Actions. Click Create Action. Select Custom Action and click OK. In the drop-down menu you can find the action called 'logstash-alert'.

  3. You can now check the newly created event in Logstash web interface for example.




Find out more in the AppDynamics Exchange



For any questions or feature request, please contact AppDynamics Center of Excellence.


Version: 1.0.2 Controller Compatibility: 3.7+

Version: 1.0.3 Updated Licenses