Get a DemoStart Free TrialSign In

Heroku Logging Configuration

Ship logs from Heroku to logstash

Send Your DataLogsPlatformsHeroku Logging Configuration Guide

Follow this step by step guide to get 'logs' from your system to

Step 1 - Setup

By setting up a log drain on your Heroku app, you can send all of your app's generated logs, as well as all Heroku platform logs (including those generated from the build and deployment process), to Logstash.

All you need to do is add this endpoint as a drain in your Heroku app using the Heroku CLI:

heroku drains:add -a appname

Make sure to replace appname with the name of your app you previously created on your Heroku dashboard, or via the CLI.

We automatically parse the logs into a structured format for you, so all you need to do is analyse them.

For more information, see Heroku's official documentation on log drains.

Step 2 - Check for your logs

Data should now have been sent to your Stack.

View my data

If you don't see logs take a look at How to diagnose no data in Stack below for how to diagnose common issues.

Step 3 - how to diagnose no data in Stack

If you don't see data appearing in your Stack after following the steps, visit the Help Centre guide for steps to diagnose no data appearing in your Stack or Chat to support now.

Step 4 - Heroku Logging Overview

Heroku is a platform as a service (PaaS) owned by Salesforce. Heroku supports applications built in Java, Python, & Go as well as a variety of other popular programming languages. Heroku can be used by developers to build, run and scale applications making it a widely used and popular cloud-based platform.

The Heroku app’s various logs levels including; App logs, System logs, API logs & Add-on logs. App logs are generated when your application throws an exception, e.gsuch as when a missing dependency is discovered. System logs, on the other hand, will allow you to see when an application is restarted due to issues with your infrastructure.

Being able to tail both application and system logs in Heroku will allow you to see issues as they occur in real-time within your production environment. Monitoring these will help enable your teams to make changes fast to preserve the health of your infrastructure and resolve errors found in production.

The platform allows you to tail Heroku logs with ease using our highly available enterprise-grade ELK (Elasticsearch, Logstash & Kibana) Stack for fast troubleshooting & analysis. Our platform also provides a comprehensive solution for centralising your log streams & outputs from many other applications including Docker, Kubernetes & Amazon Flow Logs.

If you need any additional assistance help with sending your Heroku log messages to Logstash our team are here to help. Feel free to visit our Help Centre or get in contact with our support team by sending us a message via live chat & we'll be happy to assist.

Return to Search
Sign Up

© 2024 Ltd, All rights reserved.