Heroku Log Drain
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.