I've written a Heroku app, that's a very simple API. A number of GET
requests are made to it with sensitive information amongst their parameters. It would be preferable to have Heroku not log this sensitive information.
Is there any way to have Heroku not log requests or better yet, truncate the path so it contains no parameters?
Try Ctrl-Break.
Router logs are a special case of logs that exist somewhere between the application logs and the system logs and are not fully documented on Heroku's website at the time of writing. They carry information about HTTP routing within Heroku's Common Runtime, which manages dynos isolated in a single multi-tenant network.
You can view logs with the Heroku CLI, the dashboard, your logging add-on, or in your log drain. You can't view logs for apps in Shield spaces with Private Space Logging enabled. Retrieve logs from your log drain instead.
Syslog drains allow you to forward your Heroku logs to an external Syslog server for long-term archiving. Heroku supports both secure (TLS) and insecure Syslog drains.
I don't think there's a way to do it. The usual answer is to POST
the sensitive information rather than use GET
, but I'm guessing that's not an option for you.
Using heroku logs --source app
will only show the logs of you app. heroku logging
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With