Difference between revisions of "Aws cloudtrail lookup-events"
Jump to navigation
Jump to search
(19 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
* https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudtrail/lookup-events.html | * https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudtrail/lookup-events.html | ||
− | + | * <code>aws cloudtrail lookup-events</code> | |
− | + | * <code>aws cloudtrail lookup-events --max-results 1</code> | |
+ | * <code>aws cloudtrail lookup-events --max-results 1000 | egrep "EventName|EventTime"</code> | ||
+ | * <code>[[aws cloudtrail]] lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=[[ConsoleLogin]]</code> | ||
+ | * <code>aws cloudtrail lookup-events --lookup-attributes AttributeKey=[[EventName]],AttributeValue=[[CreateBucket]] --max-items 1</code> | ||
− | aws cloudtrail lookup-events --lookup-attributes AttributeKey=ResourceType,AttributeValue=[[AWS::S3]] --max-items 1 | + | |
− | aws cloudtrail lookup-events --lookup-attributes AttributeKey=ResourceType,AttributeValue=[[AWS:: | + | [[ChatGPT]] (pending validation) |
+ | aws cloudtrail lookup-events \ | ||
+ | --start-time <start-time> \ | ||
+ | --end-time <end-time> \ | ||
+ | --lookup-attributes AttributeKey=[[ResourceName]],[[AttributeValue]]=<instance-id> | ||
+ | |||
+ | |||
+ | |||
+ | aws cloudtrail lookup-events --lookup-attributes AttributeKey=ResourceType,AttributeValue=[[AWS::S3::Bucket]] --max-items 1 --output text | ||
+ | (no output) | ||
+ | |||
+ | aws cloudtrail lookup-events --lookup-attributes AttributeKey=ResourceType,AttributeValue=NOT_a_valid_attribute --max-items 1 --output text | ||
+ | (no output) | ||
+ | |||
+ | == Related == | ||
+ | * [[CloudTrail Events]] | ||
+ | * <code>[[AWS::]]</code> | ||
== See also == | == See also == | ||
+ | * {{aws cloudtrail lookup-events}} | ||
+ | * {{AWS CloudTrail Events}} | ||
* {{aws cloudtrail}} | * {{aws cloudtrail}} | ||
[[Category:AWS]] | [[Category:AWS]] |
Latest revision as of 15:11, 24 September 2024
aws cloudtrail lookup-events
aws cloudtrail lookup-events --max-results 1
aws cloudtrail lookup-events --max-results 1000 | egrep "EventName|EventTime"
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=ConsoleLogin
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=CreateBucket --max-items 1
ChatGPT (pending validation)
aws cloudtrail lookup-events \ --start-time <start-time> \ --end-time <end-time> \ --lookup-attributes AttributeKey=ResourceName,AttributeValue=<instance-id>
aws cloudtrail lookup-events --lookup-attributes AttributeKey=ResourceType,AttributeValue=AWS::S3::Bucket --max-items 1 --output text (no output)
aws cloudtrail lookup-events --lookup-attributes AttributeKey=ResourceType,AttributeValue=NOT_a_valid_attribute --max-items 1 --output text (no output)
Related[edit]
See also[edit]
aws cloudtrail lookup-events
,ResourceName, ResourceType
- AWS CloudTrail Events: management events, data events, insights events,
aws cloudtrail lookup-events, TerminateInstances, StopInstances
aws cloudtrail
[get-event-selectors | lookup-events | list-trails | create-trail | add-tags | delete-trail | describe-trails | get-trail-status | put-event-selectors | put-insight-selectors | remove-tags | start-logging | stop-logging | update-trail | validate-logs | create-event-data-store | list-public-keys | list-tags
], Terraform,enable-federation
,AWS CloudTrail, Events
Advertising: