Monitor and log with AWS CloudTrail
AWS CloudTrail is a service that provides a record of actions taken by a user, role, or an AWS service. CloudTrail records all API calls as events. You can use Amazon Location Service with CloudTrail to monitor your API calls, which include calls from the Amazon Location Service console and AWS SDK calls to the Amazon Location Service API operations.
CloudTrail is automatically enabled when you create your AWS account. When activity occurs in Amazon Location Service, that activity is recorded in a CloudTrail event along with other AWS service events in Event history. You can view, search, and download event history for the past 90 days per AWS Region.
For more information about CloudTrail, see the AWS CloudTrail User Guide. There are no CloudTrail charges for viewing the Event history.
For an ongoing records of events in your AWS account past 90 days, including events from Amazon Location Service, create a trail or a CloudTrail Lake data store.
CloudTrail trails
A trail enables CloudTrail to deliver log files to an Amazon S3 bucket. When you create a trail in AWS Management Console, the trail applies to all AWS Regions. The trail logs events from all regions in the AWS Partition and delivers the log files to the S3 bucket that you specify. Additionally, you can configure other AWS services to further analyze and act upon the event data collected in CloudTrail logs.
For more information on how to create a trail, see Overview for Creating a Trail.
For a list of CloudTrail supported services and integrations, see CloudTrail Supported Services and Integrations.
You can deliver one copy of your ongoing management events to your Amazon S3 bucket at no charge from CloudTrail by creating a trail. However, there are Amazon S3 storage charges.
For more information about CloudTrail pricing, see AWS CloudTrail pricing
For information about Amazon S3 pricing, see Amazon S3 pricing
CloudTrail Lake event data stores
CloudTrail Lake lets you run SQL-based queries on your events. Events are aggregated into event data stores, which are immutable collections of events based on criteria that you select by applying advanced event selectors. The selectors that you apply to an event data store control which events persist and are available for you to query.
For more information about CloudTrail Lake, see Working with AWS CloudTrail Lake.
CloudTrail Lake event data stores and queries incur costs. When you create an event data store, you choose the pricing option you want to use for the event data store. The pricing option determines the cost for ingesting and storing events, and the default and maximum retention period for the event data store.
For more information about CloudTrail pricing, see AWS CloudTrail pricing