Skip to main content
Sumo Logic

Collect logs for the AWS CloudTrail App

To configure an AWS CloudTrail Source, perform these steps:

  1. Grant Sumo Logic access to an Amazon S3 bucket.
  2. Configure CloudTrail in your AWS account.
  3. Confirm that logs are being delivered to the Amazon S3 bucket.
  4. Add an AWS CloudTrail Source to Sumo Logic.
  5. Install the Sumo Logic App for AWS CloudTrail.

Sample Log Message

   "userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36",

Field Extraction Template

parse "eventSource\":\"*\"" as event_source 
| parse "\"sourceIPAddress\":\"*\"" as source_ipaddress 
| parse "\"eventName\":\"*\"" as event_name 
| parse "\"eventSource\":\"*\"" as event_source 
| parse "awsRegion\":\"*\"" as aws_Region 
| parse "\"userName\":\"*\"" as user

Query Sample

Created and Deleted Network and Security Events

_sourceCategory=AWS_EAGLE (*Security* OR *Network*) 
| parse "\"userName\":\"*\"" as user 
| parse "\"eventName\":\"*\"" as event
| parse regex field=event "^(?<event_type>[A-Z][a-z]+?)[A-Z]"
| where (event matches "*Security*" OR event matches "*Network*") and event_type in ("Create","Delete") 
| count by event 
| sort _count