What's a good way to collect logs from Amazon EC2 instances?

前端 未结 8 2477
野的像风
野的像风 2020-12-24 06:02

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

8条回答
  •  失恋的感觉
    2020-12-24 06:38

    This question is old now (December 2014) but still ranks highly during a Google search on this topic.

    Amazon now provides a way to do some of this through CloudWatch. It has the capability to pattern-match the log message and trigger alarms based on things happening in the application. Depending on the nature of the data-mining that needs to be done, it may be possible to use their API to fetch the desired, aggregate events. See http://aws.amazon.com/blogs/aws/cloudwatch-log-service/

提交回复
热议问题