Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Heroku Router Logs

Tags:

heroku

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?

like image 827
Nick Q. Avatar asked Mar 22 '14 19:03

Nick Q.


People also ask

How do I turn off Heroku logs?

Try Ctrl-Break.

What are Heroku router logs?

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.

Where do I find Heroku logs?

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.

What is Heroku drain?

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.


2 Answers

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.

like image 159
Mark Pundsack Avatar answered Oct 26 '22 19:10

Mark Pundsack


Using heroku logs --source app will only show the logs of you app. heroku logging

like image 34
Lili Avatar answered Oct 26 '22 18:10

Lili