icon/x Created with Sketch.

Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website. Learn more (including how to update your settings) here.
Accept Cookie Policy

We are working on something new...

A Fresh New Splunkbase
We are designing a New Splunkbase to improve search and discoverability of apps. Check out our new and improved features like Categories and Collections. New Splunkbase is currently in preview mode, as it is under active development. We welcome you to navigate New Splunkbase and give us feedback.

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the license provided by that third-party licensor. Splunk is not responsible for any third-party apps and does not provide any warranty or support. If you have any questions, complaints or claims with respect to this app, please contact the licensor directly.

Thank You

Downloading AppDynamics
SHA256 checksum (appdynamics_431.tgz) 2851349dedf1efc71046e591297cbd587c5fa95b72aafd0157ce066def159c36 SHA256 checksum (appdynamics_43.tgz) c5c17d5ec8594db3aac56ca4c01e4ad4118b9af92e62dea1808bdb321d608995 SHA256 checksum (appdynamics_425.tgz) d070ce488291a0bd551768e656c2e112c8019d34ef319dda728d19879e43bfde SHA256 checksum (appdynamics_42.zip) 7b20f2386e703debec4c693712a921b6733559da67201b57e87da0cda27e7586 SHA256 checksum (appdynamics_41.tgz) 2c9b3cb4a15e88385df533a972de84546960e71be404326bb7a7126b214247b7 SHA256 checksum (appdynamics_371.tgz) 9d45b16ee27631b6a1b87dbacd02bbae54ed91a4467a1eec6f2ba6392668042e SHA256 checksum (appdynamics_36.tgz) e9d09defb9e247127e7232d41c3f6b98d5994621940fd5c11c13c23c131c0e73
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

splunk

AppDynamics

Splunk Cloud
This app has been archived. Learn more about app archiving.
This app is NOT supported by Splunk. Please read about what that means for you here.
Overview
Details
The AppDynamics app allows you to mine application performance monitoring data from AppDynamics using its REST API. You can then slice and dice the data within Splunk using Search Processing Language (SPL). It also contains a notification client that can be extracted to an AppDynamics controller that will relay event and policy violation notifications in AppDynamics to Splunk and has the ability to cross-launch into AppDynamics from Splunk.

How To Use the AppDynamics App in Splunk

What is AppDynamics?

AppDynamics is an application performance monitoring solution that helps you:
Identify problems such as slow and stalled user requests and errors in a production environment.
Troubleshoot and isolate the root cause of such problems by:
Mining performance data from AppDynamics and viewing it in Splunk using the AppDynamics Controller REST API.
Pushing notifications on policy violations and events from AppDynamics to Splunk so that a Splunk user can use those to launch deep dives in AppDynamics. See Getting Notifications From and Launching AppDynamics in Splunk.

Installation

These instructions assume that you are familiar with using both AppDynamics and Splunk.

Links within this file go to AppDynamics 4.2 documentation. If you are running an earlier version, use the Search feature to find the associated topics.

Prerequisites

  • You have installed AppDynamics version 4.0 or newer. If you do not already have a license, you can sign up for a trial license. You can choose either a SaaS solution or an On-Premise installation.
  • You have installed Splunk version 6.x or newer.
  • You have installed the AppDynamics App for Splunk from Splunkbase.
  • You have access to the following AppDynamics Controller information, which is required to set up the integration:
  • hostname/IP address
  • port number
  • account name
  • user name
  • password

    If you use a SaaS account, AppDynamics provides you with the required information.
    - You have access to the AppDynamics documentation. When you trial or buy the product, AppDynamics provides access credentials to you.
    - $SPLUNK_HOME is set to the directory where Splunk is installed.

Steps

  1. Install the appdynamics app from splunkbase and before restarting perform steps 2 and 3.
  2. Locate and edit the files: $SPLUNK_HOME/etc/apps/appdynamics/default/metrics.conf and $SPLUNK_HOME/etc/apps/appdynamics/default/events.conf
  3. In the metrics.conf file, add one section for each individual metric you want to mine from AppDynamics. You need the following:

    • AppDynamics metric name, to name the section in the metrics.conf file, and for use as as unique identifier in Splunk
    • REST URL of the metric from the AppDynamics Metric Browser, see the AppDynamics REST documentation (login required).
    • polling interval - how frequently, in seconds, Splunk will run the script to get this metric

    For example, if you want to mine a metric called AverageResponseTime for the ViewCart.sendItems business transaction, the entry would be similar to this:

    [ViewCart.sendItems_AverageResponseTime]  
    url = http://<controller-host>:<port>/controller/rest/applications/Acme%20Online%20Book%20Store/metric-data?metricpath=Business%20Transaction%20Performance%7CBusiness%20Transactions%7CECommerce%7CViewCart.sendItems%7CAverage%20Response%20Time%20(ms)&time-range-type=BEFORE_NOW&duration-in-mins=15  
    interval = 60
    
  4. In the events.conf file, add one section for each individual event type you want to mine from AppDynamics. You need the following:

    • AppDynamics event type, to name the section in the events.conf file, specify the event query for the REST URL, and for use as as unique identifier in Splunk
    • AppDynamics event severity, to specify the event query for the REST URL
    • REST URL of the event type from the AppDynamics Metric Browser, see the AppDynamics REST documentation (login required).
    • polling interval - how frequently, in seconds, Splunk will run the script to get this metric

    For example, if you want to mine events caused by application changes, the entry would look similar to this:

    [Server.application_Changes]  
    url = http://<controller-host>:<port>/controller/rest/applications/Acme%20Online%20Book%20Store/events?time-range-type=BEFORE_NOW&duration-in-mins=15&event-types=APP_SERVER_RESTART,APPLICATION_CONFIG_CHANGE,APPLICATION_DEPLOYMENT&severities=INFO,WARN,ERROR  
    interval = 60
    
  5. Restart splunk.

  6. You will be prompted to setup the AppDynamics App. Please click on setup and configure the AppDynamics credentials. Using this view, splunk will store AppDynamics credentials in encrypted mode.
  7. If you want to add more entries to the events.conf or metrics.conf without restarting splunk, please find the python
    processes running for metrics.py and events.py and kill them. It will automatically get restarted and it will pick up the new configurations in the conf files.

Splunk Indexes

For metrics, an index called "appdynamics" is created.
For events, an index called "appdynamics_events" is created.

Metrics

  1. Launch the AppDynamics App in Splunk.
  2. Enter index=appdynamics in the Search field of the AppDynamics App in Splunk.

AppDMetricsOnSplunk.png

Events

  1. Launch the AppDynamics App in Splunk.
  2. Enter index=appdynamics_events in the Search field of the AppDynamics App in Splunk.

AppDEventsOnSplunk.PNG

Proxy Support

If the connection to the AppDynamics controller has to go through a proxy, you need to replace the following line
from the metrics.py and events.py

myhttp = httplib2.Http(timeout=10)

Replace the above line with

myhttp = httplib2.Http(timeout=10,proxy_info = httplib2.ProxyInfo(httplib2.socks.PROXY_TYPE_HTTP, 'localhost', 8000))

Please make sure to replace 'localhost' and 8000 with the correct proxy settings.

SSL Support

If the connection to the AppDynamics controller is over SSL, you can import the certificates by replacing the following
line from the metrics.py and events.py

myhttp = httplib2.Http(timeout=10)

Replace the above line with

myhttp = httplib2.Http(timeout=10,ca_certs = '<path_to_certificate>')

Please make sure to replace '<path_to_certificate>' with the correct path in your environment.

Cross App linking to AppDynamics

  1. Add the following field extraction section to your $SPLUNK_HOME/etc/apps/search/default/props.conf file:

    [source::http-simple]  
    EXTRACT-AppD = url="http[s]?:\/\/(?<nurl>[^"|]+)"
    
  2. Add the following workflow action to your $SPLUNK_HOME/etc/apps/search/default/workflow_actions.conf file:

    [LaunchAppD]  
    display_location = both  
    fields = url  
    label = Launch in AppDynamics  
    link.method = get  
    link.target = blank  
    link.uri = http://$!nurl$  
    type = link
    

Dependencies

The appdynamics splunkbase app depend on the open source library httplib2.

Custom Notifications in Splunk from AppDynamics

AppDNotificationsOnSplunk.png

Launching AppDynamics from Splunk

On an event in the Splunk Search App, click the blue pulldown and choose Launch in AppDynamics. See the screenshot above.

Contributing

Always feel free to fork and contribute any changes directly via GitHub

Community

Find out more in the AppSphere community.

Support

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

Release Notes

Version 4.3.1
Sept. 5, 2018
  • Corrected the paths (coldPath and the thawedPath) in index.confT
  • The inputs.conf file monitors the logs created by the app, but because the logs are stored outside the app directory, the app fails the check that apps only monitor their own directory ($SPLUNK_HOME/etc/apps/<app-dir>/*). Stopped monitoring the log file..
Version 4.3
Sept. 4, 2018
  • Corrected the paths (coldPath and the thawedPath) in index.confT
  • The inputs.conf file monitors the logs created by the app, but because the logs are stored outside the app directory, the app fails the check that apps only monitor their own directory ($SPLUNK_HOME/etc/apps/<app-dir>/*). Stopped monitoring the log file..
Version 4.2.5
Nov. 12, 2016

v4.2.5
* added support for ssl.
* cleaned up the path structure to use $SPLUNK_HOME.
* Commented out props.conf,transforms.conf and lookup_app,py and lookup_bt.py functionalities as the controller api in 4.2 now returns entity name information. Keeping it still there for compatibility reasons.
* Added more documentation.
* keeping the versions compatible with the controller releases.

Version 4.2
April 11, 2016
  • Updated the AppD logo
  • Fixed error in events.py
Version 4.1
Dec. 17, 2015
  • Added support for encrypted AppDynamics passwords.
  • Fixed all the bugs that existed in the previous app.
Version 3.7.1
Oct. 18, 2013
  1. Added capability to pull events from AppDynamics into Splunk.
  2. Made the App Splunk 6.0 compatible.
Version 3.6
Jan. 14, 2013
  • Fixed an issue with inputs.conf for Windows users.
  • New version of the splunkClient (3.6) released.

Subscribe Share

Are you a developer?

As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps from Splunk, our partners and our community. Find an app for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
Splunk, Splunk>,Turn Data Into Doing, Data-to-Everything, and D2E are trademarks or registered trademarks of Splunk LLC in the United States and other countries. All other brand names,product names,or trademarks belong to their respective owners.