How do I get Apache-style server logs with Heroku? I'm using Rails on the Cedar stack.
"Apache-style" meaning, I'd like to see each individual HTTP request like this (I don't actually care if the format is exactly like Apache's):
66.249.71.85 - - [22/Jan/2012:15:15:04 +0000] "GET /robots.txt HTTP/1.1" 200 149 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
I considered using a Rack-middleware logger like Clogger, but I'm not sure if there is an easy way to get the log files off the (ephemeral) dynos to a central (permanent) storage location.
Heroku supports syslog drains, so you can just set one up to push requests to another location and read them there.
You can read more about syslog drains here in their documentation.
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