1 Answer
- Newest
- Most votes
- Most comments
1
Hi,
To download the log events to your local machine, specifically using Python, you can use the "get_log_events" API using boto3 to run as a script. You can then write the response received to a file (in any format of your choice).
You can also choose to simply use AWS CLI to achieve the same [2].
References:
[1] https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/logs/client/get_log_events.html
[2] https://docs.aws.amazon.com/cli/latest/reference/logs/get-log-events.html#examples
Thanks,
Atul
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated a year ago