Heroku Log Drain

Your log data must not contain any personal data, such as names, email addresses, etc. It is your responsibility to ensure this data is filtered out before being sent to AppSignal, and when identifying a person is necessary that your application uses alternative forms of identification such as a user ID, hash, or pseudonym.

AppSignal can automatically ingest logs via Heroku Log Drain. We recommend using Logfmt as your log format, but we also accept JSON and Plaintext logs. You can find more information on formatting in our Log Formatting Documentation.

Remove old log drains

Before creating a new log drain for AppSignal, you need to remove any pre-existing log drains. You can check for any existing active log drains using the command below:

heroku drains

If there are any active log drains, you can remove them using the following command:

heroku drains:remove syslog+tls://logs.example.com:12345/#insecure -a myapp

Replace the example data above with the log drain you are trying to remove.

Add new log drain

Once any active log drains have been removed, use the command below to create a new log drain.

heroku drains:add "https://appsignal-endpoint.net/logplex?api_key=YOUR_LOG_SOURCE_API_KEY"

Replace YOUR_LOG_SOURCE_API_KEY with the key provided when creating a log source.

Read more about Heroku Log Drain in our Heroku Integrations Documentation.

When connected, logs should appear in AppSignal. If you still cannot see any logs, please contact us for support.

Need more help?

Contact us and speak directly with the engineers working on AppSignal. They will help you get set up, tweak your code and make sure you get the most out of using AppSignal.

Contact us

Start a trial - 30 days free

AppSignal is a great way to monitor your Ruby, Elixir & Node.js applications. Works great with Rails, Phoenix, Express and other frameworks, with support for background jobs too. Let's improve your apps together.

Start a trial