My app is hosted on an Amazon EC2 cluster. Each instance writes events to log files. I need to collect (and data mine) over these logs at the end of each day. What\'s a reco
I've not tried it for this purpose, but Amazon appear to recommend using SimpleDB:
http://aws.amazon.com/simpledb/usecases_logging/
Here's a package that you might find useful - it says you can use it to capture stdout/stderr into SimpleDB:
http://code.google.com/p/simpledb-appender/
We use Logstash on each host (deployed via Puppet) to gather and ship log events to a message queue (RabbitMQ, but could be Redis) on a central host. Another Logstash instance retrieves the events, processes them and stuffs the result into ElasticSearch. A Kibana web interface is used to search through this database.
It's very capable, scales easily and is very flexible. Logstash has tons of filters to process events from various inputs, and can output to lots of services, ElasticSearch being one of them. We currently ship about 1,2 million log events per day from our EC2 instances, on light hardware. The latency for a log event from event to searchable is about 1 second in our setup.
Here's some documentation on this kind of setup: https://www.elastic.co/guide/en/logstash/current/getting-started-with-logstash.html, and a demo of the Kibana search interface with some live data.
*Disclaimer: I work at Sumo:
Sumo Logic Free is a relatively easy option as well:
https://www.sumologic.com/pricing/
Have a look at the free version of Splunk - it will handle the remote log file collection and also give you some really nice search and analysis tools.
I've been using Loggly and it seems to do the trick
http://loggly.com/
It allows me to send all my logs through tcp to their service and have a central place to monitor all my log files,
It also allows me to archive my log files to S3 which is nice too
I haven't implemented it yet, but I came across Facebook Scribe, and it seems like a good idea. https://github.com/facebookarchive/scribe
Until I get that going I've been doing just what you mention for #1 - I have a cron job which uses sftp to pull the files. I chose this because even if I did #2, I've had instances where the ec2 machine crashes and I ended up having to pull the logfiles off anyway.