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 Heroku App for Splunk
SHA256 checksum (heroku-app-for-splunk_11.tgz) 1023619facbd1cf6c47ed5b759b77852ebc45d3ed58d6c273d1bf58da4a4473e SHA256 checksum (heroku-app-for-splunk_10.tgz) 594c85f9a73386076ab5562f3de69611799598d4cec0741d16c490322f99757f
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

splunk

Heroku App for Splunk

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 Heroku App for Splunk uses syslog drains to collect the logs generated by your Heroku apps into Splunk for powerful analysis.

To help you get started this app comes prebuilt with searches powering a number of dashboards and alerts for analytics, performance, and errors.

Heroku App for Splunk

Thanks for downloading the Heroku App for Splunk!

The Heroku App for Splunk uses Heroku syslog drains to collect the logs generated by your apps into Splunk for powerful analysis.

To help you get started this app comes prebuilt with searches powering a number of dashboards and alerts for the ingested log data.

Important: This app will NOT work unless you follow the setup instructions below - they're super simple to setup, I promise.

What's in the box?

  • 1 x Index (index=heroku)
  • 1 x TCP Input (port:514)
  • 4 x Dashboards (App Analytics, App Performance, App Errors)
  • 3 x Prebuilt Alerts (Response Times, Errors)

Setup

There are 4 steps you will need to get this app working:

  1. Configure logging on Heroku
  2. Enable Splunk input
  3. Point Heroku syslog drain at Splunk
  4. Define app names in lookup
  5. Turn on alerts

1) Configure logging on Heroku

The searches used in this app require some Heroku labs features to be enabled.

Assuming you have the Heroku toolbelt installed, you should run the following commands from the CLI.

Turn on debug logging:

$ heroku config:add LOG_LEVEL=DEBUG --app <YOUR_APP_NAME>

Turn on runtime logging:

$ heroku labs:enable log-runtime-metrics --app <YOUR_APP_NAME>

Restart your app to configure changes:

$ heroku restart --app <YOUR_APP_NAME>

2) Enable Splunk input

When installed this app will create a TCP input for port:514 (switched off by default), and also create a new index called "Heroku".

If you want to enable data collection through this port you can enable this input in the Splunk GUI by navigating to: "Settings" > "Data Inputs" > "TCP".

If you would like to use a different port you can add a new TCP input in the Splunk GUI by navigating to: "Settings" > "Data Inputs" > "TCP". Make sure you set the sourcetype="syslog", and index="Heroku".

Sanity checkpoint: It is essential the port you recieve data is open and traffic is not blocked.

3) Point Heroku syslog drain at Splunk

In the CLI you can do this by running the following commands:

$ heroku drains:add syslog://<YOUR_INDEXER'S_IP>:<PORT_FOR_INPUT> --app <YOUR_APP_NAME>

4) Define app names in lookup

To get the "Lookups" tab working correctly you first need to install the app Lookup File Editor App for Splunk Enterprise.

$ /lookups/app_name.csv

Once this is installed in the Splunk interface navigate to: "Lookups" > "View Lookup Files" > "app_data.csv"

In the host column you will need to specify the application identifier provided by Heroku. You can find this identifier in the "host" field of your Heroku event logs in Splunk.

You can then set a more user friendly name for searching in the "app_name" column. If desired, you can also specify a URL for the application to in the "app_url" column.

Note: If you cannot install the "Lookup Editor" app you can perform this process manually. Stop Splunk and open the following file to edit:

$ SPLUNK_HOME/etc/apps/splunk-heroku-app/lookups/app_name.csv

5) Turn on alerts

This app comes with 2 prebuilt alerts for response time and errors. y default they are disabled.

To view them in Splunk navigate to "Heroku" > "Alerts". You can click on each alert to view to amend the alert triggers, modify the search, or enable the alert.

Getting Started

If everything has worked well, a simple search for "index=heroku" should return some results. You might need to restart Splunk first.

Should some of the dashboards be empty, run a search in Splunk to see if the fields used are in your logs. If you're still suspicious, check Heroku logging has been set correctly at step 1.

In some cases you may not have any logs that populate the search just yet - this is usually a good thing where errors are concerened.

Where Can I Go For Help?

In the first instance any problems or issues with this app should be posted on Splunk Answers here. I follow all new threads and will aim to reply within 1 working day.

Should the problem need a more in-depth solution I will reach out directly via email for a solution from your thread.

If you have any feature requests for this app these can be directed to me via email.

You can find and fork the latest codebase of this app on Github, you can fork the code here. I'll happily accept new pull requests.

Current Feature Requests

  • Support for drains over SSL (Heroku beta feature) - coming v2

Release Notes

Version 1.1
April 17, 2015

Now includes support for editing lookups in the Splunk interface.

Version 1.0
April 10, 2015

Stable release


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 Inc. in the United States and other countries. All other brand names,product names,or trademarks belong to their respective owners.