Heroku Log Drain
AppSignal can automatically ingest logs via Heroku Log Drain. We recommend using
Logfmt as your log format, but we also accept
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 AppSignal log drains. You can check for any existing active log drains using the command below, where
myapp is the name of your Heroku application:
heroku drains -a myapp
If there are any active AppSignal log drains, you can remove them using the following command:
heroku drains:remove -a myapp <url>
<url> above with the URL of the log drain you are trying to remove
Add new log drain
Once any active log drains have been removed, follow the instructions to create a Heroku log source.
Once you have created a log source, 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"
YOUR_LOG_SOURCE_API_KEY with the key provided when creating a log source.
When connected, logs should appear in AppSignal. If you still cannot see any logs, please contact us for support.