python/example_code/cloudwatch-logs/README.md
Shows how to use the AWS SDK for Python (Boto3) to work with Amazon CloudWatch Logs.
<!--custom.overview.start--> <!--custom.overview.end-->CloudWatch Logs monitor, store, and access your log files from Amazon Elastic Compute Cloud instances, AWS CloudTrail, or other sources.
For prerequisites, see the README in the python folder.
Install the packages required by these examples by running the following in a virtual environment:
python -m pip install -r requirements.txt
Code excerpts that show you how to call individual service functions.
Code examples that show you how to accomplish a specific task by calling multiple functions within the same service.
<!--custom.examples.start--> <!--custom.examples.end-->This example shows you how to use CloudWatch Logs to query more than 10,000 records.
<!--custom.scenario_prereqs.cloudwatch-logs_Scenario_BigQuery.start--> <!--custom.scenario_prereqs.cloudwatch-logs_Scenario_BigQuery.end-->Start the example by running the following at a command prompt:
python scenarios/large-query/exec.py
This example shows you how to create an AWS Lambda function invoked by an Amazon EventBridge scheduled event.
<!--custom.scenario_prereqs.cross_LambdaScheduledEvents.start--> <!--custom.scenario_prereqs.cross_LambdaScheduledEvents.end--> <!--custom.scenarios.cross_LambdaScheduledEvents.start--> <!--custom.scenarios.cross_LambdaScheduledEvents.end-->⚠ Running tests might result in charges to your AWS account.
To find instructions for running these tests, see the README
in the python folder.
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0