DonMB
DonMB

Reputation: 2728

exec sidekiq log on heroku

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?

Upvotes: 11

Views: 4508

Answers (2)

javed.hussain
javed.hussain

Reputation: 141

The easiest way would be

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

This will only show worker logs.

Upvotes: 14

DonMB
DonMB

Reputation: 2728

I grabbed the worker logger on heroku

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

so I could see sidekiq activity.

Upvotes: 11

Related Questions