# Heroku

App logs through a log drain.

Logs Available

[Open the Connect card in Epok](https://app.epok.cloud/#/connect?source=heroku) [Full setup guide](https://epok.cloud/docs/install/drains)

## What you get

Logs, arriving through Heroku HTTPS log drain.

## Set it up

1. Create an ingest key in Epok: Settings, then API keys.
2. Add the Epok Heroku drain URL from the setup page to your app with heroku drains:add. Heroku cannot send headers, so the key goes in the URL.
3. Make a request to your app so its router writes a log line.
4. Search for the app's logs in Explore.

The commands and configuration for each step are on the [setup guide](https://epok.cloud/docs/install/drains).

## What was tested

- Code tests of the ingest route or the sender: 2 tests.
- No run against the hosted service is recorded yet.

## What you see in Epok

- Explore and Live tail: search, patterns and new errors.

## Troubleshooting

- Treat the drain URL like a password: it contains the key.
- Router lines arrive with every request; a quiet app sends nothing to drain.

## More in Hosting platforms

[Vercel](https://epok.cloud/integrations/vercel)
