1 Answer
- Newest
- Most votes
- Most comments
0
Hello,
CloudWatch Logs agent works watching log files from Amazon EC2 instances running Linux or Windows Server. According to your question, I understand that you have an application written in Python 3.8.10 and you would like to ingest logs into Cloudwatch Logs. You must write the log entries in files and setup CloudWatch Logs agent to watch the logs files and ingest the content published. Here some docs that can guide you:
- Use the unified CloudWatch agent to get started with CloudWatch Logs
- Create the CloudWatch Agent Configuration File with the Wizard
You will need to add a section like the following (described here), in your config file:
"collect_list": [
{
"file_path": "/opt/aws/amazon-cloudwatch-agent/logs/test.log",
"log_group_name": "test.log",
"log_stream_name": "test.log"
},
.....
]
Best regards!
answered a year ago
Relevant content
- asked a year ago
- asked 2 years ago
- Accepted Answerasked 2 years ago
- asked 6 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 5 months ago