如何将Ec2日志发送到S3,然后使用Cloudwatch对其进行监视 [英] How to send Ec2 logs to S3 and then monitoring it using Cloudwatch
问题描述
我正在经历一种情况,我不知道哪种方法是正确的,怎么做。
I am going through a situation where i do not know which is the correct way and how to do it.
我的目标是:
ec2应该在S3中上载日志,并应使用cloudwatch查看日志并监视
是否有不需要的事件。
ec2 Logs should be uploaded in S3 and logs should be reviewed and monitored using cloudwatch for any unwanted events.
场景1:
1)上传ec2日志到s3,然后到cloudwatch进行安全性审查
和监视
1) Upload ec2 logs to s3 and then to cloudwatch for security review and monitoring
方案2:
1)将ec2日志上传到cloudwatch并发送数据,然后发送s3
1) Upload ec2 logs to cloudwatch and send data then s3
场景3:
1)将ec2日志同时上传到s3和cloudwatch
1) Upload ec2 logs to both s3 and cloudwatch simultaneously
请帮助我实现正确的方法。
Please help me to achieve what is correct way.
感谢&问候
推荐答案
您可以将日志发送到cloudwatch,然后使用cloudwatch将它们上传到S3。检查此解决方案:> https://aws.amazon.com/blogs/mt/how-to-export-ec2-instance-execution-logs-to-an-s3-bucket -using-cloudwatch-logs-lambda-cloud-formation /
You can send the logs to cloudwatch and then use cloudwatch to upload them to S3. Check this solution: https://aws.amazon.com/blogs/mt/how-to-export-ec2-instance-execution-logs-to-an-s3-bucket-using-cloudwatch-logs-lambda-and-cloudformation/
这篇关于如何将Ec2日志发送到S3,然后使用Cloudwatch对其进行监视的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!