aws.cloudtrail.lookup_events
Example SQL Queries
SELECT * FROMaws.cloudtrail.lookup_events;Description
Looks up management events or CloudTrail Insights events that are captured by CloudTrail. You can look up events that occurred in a Region within the last 90 days.
LookupEvents returns recent Insights events for trails that enable Insights. To view Insights events for an event data store, you can run queries on your Insights event data store, and you can also view the Lake dashboard for Insights.
Lookup supports the following attributes for management events:
Amazon Web Services access key
Event ID
Event name
Event source
Read only
Resource name
Resource type
User name
Lookup supports the following attributes for Insights events:
Event ID
Event name
Event source
All attributes are optional. The default number of results returned is 50, with a maximum of 50 possible. The response includes a token that you can use to get the next page of results.
The rate of lookup requests is limited to two per second, per account, per Region. If this limit is exceeded, a throttling error occurs.
Table Definition
| Column Name | Column Data Type |
|---|---|
| end_time Input Column Specifies that only events that occur before or at the specified time are returned. If the specified end time is before the specified start time, an error is returned. | TIMESTAMP_S |
| event_category Input Column Specifies the event category. If you do not specify an event category, events of the category are not returned in the response. For example, if you do not specify insight as the value of EventCategory, no Insights events are returned. | VARCHAR |
| lookup_attributes Input Column Contains a list of lookup attributes. Currently the list can contain only one item. | STRUCT( |
Show child fields
| |
| start_time Input Column Specifies that only events that occur after or at the specified time are returned. If the specified start time is after the specified end time, an error is returned. | TIMESTAMP_S |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| access_key_id The Amazon Web Services access key ID that was used to sign the request. If the request was made with temporary security credentials, this is the access key ID of the temporary credentials. | VARCHAR |
| cloud_trail_event A JSON string that contains a representation of the event returned. | VARCHAR |
| event_id The CloudTrail ID of the event returned. | VARCHAR |
| event_name The name of the event returned. | VARCHAR |
| event_source The Amazon Web Services service to which the request was made. | VARCHAR |
| event_time The date and time of the event returned. | TIMESTAMP_S |
| read_only Information about whether the event is a write event or a read event. | VARCHAR |
| resources A list of resources referenced by the event returned. | STRUCT( |
Show child fields
| |
| username A user name or role name of the requester that called the API in the event returned. | VARCHAR |