3 ms·
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
by ai09 16y 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.
- knodi 16y agoYou can use MongoDB Logger which works pretty good https://github.com/peburrows/mongo_db_logger https://github.com/peburrows/mongo_db_logger Although I'm not sure if its still being maintained.
- sync 16y agocentral_logger is the new mongo_db_logger: https://github.com/customink/central_logger https://github.com/customink/central_logger We use it in production on heroku and it works great.
- blasdel 16y agoS3 is not the best AWS for the functionality you seek: http://aws.amazon.com/simpledb/usecases_logging/ http://aws.amazon.com/simpledb/usecases_logging/