How could I clear 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.
Running Commands on the Heroku Web InterfaceTo use the web console, navigate to your application in Heroku. The same application that you would pass into --app earlier. In the top-right of the interface, there is a “More” button, pressing it displays a “Run Console” option. Select it to add your command.
We've put streaming logs right inside your Heroku Dashboard so you can enjoy the torrents of tasty data from any web browser. To access them: browse to an app from within Dashboard, then click the actions button (the three dots in the top right), then 'View logs'.
Heroku Release LogsCurl the Platform API for specific releases or to list all releases. Release output can also be retrieved programmatically by making a GET request on the URL.
heroku restart
will clear logs - although if you're running in production you may not want to do this on a whim :D
Other than that you can use the advanced logging addon (Syslog drains), which gives you the ability to clear the logs:
deprecated
heroku logs:drains clear
Update 2019/08/07
heroku drains
More info: http://devcenter.heroku.com/articles/logging
The current command to clear logs is
heroku drains
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