0

hOW to view this id in heroku This exception has been logged with id 6ac06o8ho. This exception has been logged with id 4bc06o8ho.

2 Answers2

0

To view logs with heroku use

heroku logs

Play put a line @6ac06o8ho in the logs before the stack trace

Seb Cesbron
  • 3,823
  • 15
  • 18
  • when running "heroku logs", the logs id changed dractically.I want to show both old id and new log id –  May 15 '12 at 08:03
  • I'm not sure of what you mean by the id changed but this might be due to new errors, if you want to see old logs see http://stackoverflow.com/questions/2671454/heroku-how-to-see-all-the-logs – Seb Cesbron May 15 '12 at 09:15
0

Try this command (select lines which starts with exception id):

heroku logs | grep -i "\(\@6ac06o8ho\)\|\(\@4bc06o8ho\)"

or try less specific (select lines which contain id):

heroku logs | grep -i "\(6ac06o8ho\)\|\(4bc06o8ho\)"

or this(same as above but filter through maximum of 1500 lines):

heroku logs -n 1500 | grep -i "\(6ac06o8ho\)\|\(4bc06o8ho\)"

Also i was suprised that it's possible to combine grep with --tail to filter logs in realtime:

heroku logs | grep -i "\@[a-z0-9]\{9\}"
Ilia Akhmadullin
  • 1,573
  • 1
  • 10
  • 16