Hacker News new | ask | show | jobs
by ai09 5665 days ago
Until the Advanced functionality is rolled out publicly, does anyone have suggestions for logging all requests to something like S3? I was going to write my own this afternoon since I couldn't find anything.

I see the market currently providing two options, neither of which encompass my use case.

1) Exception Logging via existing Heroku addons like Exceptional

2) Tracking via javascript, e.g. Google Analytics

The problem I'm experiencing is that I have successful ajax calls to a Sinatra app that I'd like to log. Running 'heroku logs' will give me the last couple hundred but I'm generating many thousands. The new new Heroku logging functionality will expand that tail to showing me a few thousand queries across my dynos but as I understand it, it won't write out to S3 (nor a file since Heroku is write-only).

I planned on writing a custom logger that will output to S3. If anyone has suggestions in lieu of rolling my own, please advise. Otherwise I can post the code I create on github for others in my situation.

2 comments

You can use MongoDB Logger which works pretty good https://github.com/peburrows/mongo_db_logger

Although I'm not sure if its still being maintained.

central_logger is the new mongo_db_logger: https://github.com/customink/central_logger

We use it in production on heroku and it works great.

S3 is not the best AWS for the functionality you seek: http://aws.amazon.com/simpledb/usecases_logging/