- Newest
- Most votes
- Most comments
Hello.
How about configuring to send logs in EC2 to S3 using fluentd?
With this method, you can send logs to S3 just by configuring fluentd without using other AWS services (Lambda, Systems Manager, etc.).
https://docs.fluentd.org/how-to-guides/apache-to-s3
https://docs.fluentd.org/output/s3
You can access S3 logs using AWS Transfer for SFTP, or if you can issue an access key for an IAM user, you can access S3 using WinSCP, etc.
https://aws.amazon.com/blogs/aws/new-aws-transfer-for-sftp-fully-managed-sftp-service-for-amazon-s3/
https://winscp.net/eng/docs/guide_amazon_s3
Alternatively, if you are using the OS to configure log rotation settings, it may be a good idea to create a shell script that determines only log files with a rotation date and send them to S3, and run it using cron. yeah.
Relevant content
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 11 days ago