Free plan available. Set up in minutes with the collectors you already use. Start free
Logthread

Integration

AWS CloudTrail

Every AWS API call and console sign-in: who, what, from where, in which account and region, and whether it failed.

  • Category: Security
  • How data is sent: The service sends its logs (HTTPS, nothing to install)
  • Status: Beta

How it works#

  1. Answer a few questions. They only fill in the setup steps. Logthread never signs in to your AWS CloudTrail account.
  2. Send CloudTrail through CloudWatch Logs and Firehose. The next page shows the endpoint with this connector's ingest key filled in. There is nothing to install.
  3. Data arrives. AWS CloudTrail sends the logs over HTTPS to ingest.logthread.com with this connector's key. The connection page shows what has arrived and turns Active with the first record.

What you answer#

QuestionAnswerNotes
CloudWatch Logs group (optional)TextDefault: aws-cloudtrail-logs.
Service name (optional)TextDefault: aws-cloudtrail.

Setup#

These are the steps for the default answers. In the app, they follow your answers, and the connector's ingest key replaces YOUR_INGEST_KEY.

Step 1. Send CloudTrail to CloudWatch Logs. In the AWS console open CloudTrail, choose your trail (or create one for all regions), then CloudWatch Logs: Edit, Enabled, log group aws-cloudtrail-logs. Each API call becomes one JSON event in the group.

Step 2. Create the Firehose stream. In the AWS console, open Amazon Data Firehose and choose Create Firehose stream with these settings. A 1 MiB buffer keeps each delivery well inside the endpoint's limit and sends logs within a minute. Leave Decompress source records off: Logthread reads the CloudWatch format itself. Records Logthread cannot accept stay in your backup bucket.

Amazon Data Firehose: Create Firehose stream:

Source:                 Direct PUT
Destination:            HTTP Endpoint
Firehose stream name:   logthread
HTTP endpoint URL:      https://ingest.logthread.com/v1/integrations/firehose?service=aws-cloudtrail
Access key:             YOUR_INGEST_KEY
Content encoding:       GZIP
Retry duration:         300 seconds
Buffer hints:           1 MiB, 60 seconds
Backup settings:        Failed data only, to an S3 bucket of yours

Step 3. Send CloudWatch Logs to the stream. With the AWS CLI signed in to the same account and region. Each log group becomes its own service (/aws/lambda/checkout is checkout); Lambda runtime lines are split into time, request id, level and message.

REGION=$(aws configure get region)
ACCOUNT=$(aws sts get-caller-identity --query Account --output text)
STREAM=arn:aws:firehose:$REGION:$ACCOUNT:deliverystream/logthread
# A role CloudWatch Logs uses to put records into the stream (once per account):
aws iam create-role --role-name logthread-cloudwatch-to-firehose \
  --assume-role-policy-document '{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":"logs.amazonaws.com"},"Action":"sts:AssumeRole"}]}'
aws iam put-role-policy --role-name logthread-cloudwatch-to-firehose \
  --policy-name put-into-logthread-stream --policy-document "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"firehose:PutRecord\",\"firehose:PutRecordBatch\"],\"Resource\":\"$STREAM\"}]}"
# Then, for every log group to send (all of its events):
aws logs put-subscription-filter --log-group-name aws-cloudtrail-logs \
  --filter-name logthread --filter-pattern "" --destination-arn $STREAM \
  --role-arn arn:aws:iam::$ACCOUNT:role/logthread-cloudwatch-to-firehose

Step 4. Wait for data. Records arrive within the buffer interval (60 seconds). If none do, the stream's Monitoring tab shows delivery errors from the endpoint.

Step 5. Use the CloudTrail parser. When events arrive, choose Use parser below: the API call, who made it, from where, in which account and region, and whether it failed become fields; failed console sign-ins are errors.

Check that it works#

The connection page under Integrations counts the records sent with the connector's key and turns Active with the first one.

Then add#

Each is one click on the connection page and opens with your data, so you can check it before saving.

  • Parser: aws-cloudtrail (Pipelines → Library)
  • Alert: AWS console sign-in failures: service:aws-cloudtrail event.action:ConsoleLogin event.outcome:failure, at least 3 in 10 minutes
  • Alert: AWS access denied: service:aws-cloudtrail event.outcome:failure, at least 20 in 10 minutes

Security detections#

Turn them on under Security → SIEM (Turn on recommended offers the ones whose data arrives). Each opens one incident per user, address or resource it groups by, and Use opens its query in the rule editor.

DetectionSeverityFires on
Brute force from one addresscriticalMany failed sign-ins from one address in a short time: password guessing against SSH, VPN, a web login or the cloud console.
Password sprayingcriticalFailed sign-ins for many different users from one address: one or two passwords tried against many accounts, which stays under per-user lockouts.
AWS console sign-in failurescriticalSeveral failed AWS Management Console sign-ins for one user: a guessed password or a stolen user name.
AWS IAM permissions grantedwarningA policy is attached to a user, group or role, an inline policy is written, or an access key is created: a new way in, or more power for an existing one.
AWS CloudTrail logging stopped or changedcriticalCloudTrail logging is stopped, a trail is deleted or its settings are changed: the step before acting without an audit record.
Traffic with a known botnet command servercriticalA record involves an address on the botnet command-and-control blocklist (abuse.ch Feodo Tracker): a host may be infected and calling home, or the server is scanning you. Needs threat intel turned on under Enrichment.
Brute force on one account that succeededcriticalTen or more failed sign-ins for one account in a row, then a successful one, within 30 minutes, counted across every address and device: an attacker rotating addresses and devices still adds up on the account they target. Only the failures since the account's previous successful sign-in count, so a person who mistypes, or an old phone with a stale password, stays quiet. An SSH key sign-in never counts as the success.

Price#

The integration itself has no charge. What it sends is billed as data ingested, ₹85 ($0.90) per GB on every plan, like any other data; parsing, detections and the dashboard add nothing. See Prices.

Set it up under Integrations in the app, or from an AI agent with MCP (add_integration). All integrations: Integrations guide. Next: find what it sends in Explore and live tail.