Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

exec sidekiq log on heroku

Tags:

heroku

sidekiq

I want to exec the sidekiq log file on my heroku environment but I cannot find anything in the documentation nor google helps me here. I am sure it has to be sth like exec sidekiq -L log/sidekiq.logbut that command fails on heroku. How can I access my sidekiq log file on a heroku environment?

like image 890
DonMB Avatar asked Jun 22 '16 13:06

DonMB


2 Answers

I grabbed the worker logger on heroku

heroku logs -t -a eventbaxx-production | grep worker.1

so I could see sidekiq activity.

like image 177
DonMB Avatar answered Nov 13 '22 23:11

DonMB


The easiest way would be

heroku logs --tail --app app_name --dyno worker

This will only show worker logs.

like image 12
javed.hussain Avatar answered Nov 13 '22 23:11

javed.hussain