Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clear Heroku logs (command)

How could I clear heroku logs?

like image 911
Lamp Avatar asked Apr 05 '11 20:04

Lamp


People also ask

How can I see heroku logs in CMD?

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.

How do I run heroku commands?

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.

How do I check heroku dashboard logs?

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'.

What is the purpose of the command heroku 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.


2 Answers

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

like image 192
McStretch Avatar answered Sep 21 '22 19:09

McStretch


The current command to clear logs is

heroku drains 
like image 36
Kennedy Nyaga Avatar answered Sep 21 '22 19:09

Kennedy Nyaga