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

前端 未结 8 2219
野的像风
野的像风 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:34

    Use syslog-ng, a popular tool that transfers log messages over TCP, optionally encrypted.

    http://www.balabit.com/network-security/syslog-ng/

    0 讨论(0)
  • 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/

    0 讨论(0)
提交回复
热议问题