Skip to content

DOCS-1663 - Add examples and refresh screenshots for event extraction rules#6851

Open
JV0812 wants to merge 1 commit into
mainfrom
DOCS-1663-event-extraction-rules
Open

DOCS-1663 - Add examples and refresh screenshots for event extraction rules#6851
JV0812 wants to merge 1 commit into
mainfrom
DOCS-1663-event-extraction-rules

Conversation

@JV0812

@JV0812 JV0812 commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Purpose of this pull request

This pull request adds an Examples section to the Event Extraction Rules doc with three AWS CloudTrail use cases (IAM role deletions, S3 bucket policy changes, and production instance terminations), documents the Internal Cache Cleanup in Progress delete status, and refreshes the page screenshots.

Select the type of change

  • Minor Changes - Typos, formatting, slight revisions
  • Update Content - Revisions, updating sections
  • New Content - New features, sections, pages, tutorials
  • Site and Tools - .clabot, version updates, maintenance, dependencies, new packages for the site (Docusaurus, Gatsby, React, etc.)

Ticket (if applicable)

https://sumologic.atlassian.net/browse/DOCS-1663

🤖 Generated with Claude Code

… rules

Add an Examples section with AWS CloudTrail use cases (IAM role deletions,
S3 bucket policy changes, production instance terminations), document the
Internal Cache Cleanup in Progress status, and update screenshots.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@JV0812 JV0812 requested review from kimsauce and mafsumo as code owners June 26, 2026 16:39
@JV0812 JV0812 self-assigned this Jun 26, 2026
@JV0812 JV0812 requested a review from amee-sumo as a code owner June 26, 2026 16:39
@cla-bot cla-bot Bot added the cla-signed Contributor approved, listed in .clabot file label Jun 26, 2026
```json
{
"eventName": "PutBucketPolicy",
"bucketName": "customer-prod-data"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In real CloudTrail logs, bucketName is not a top-level field — it lives at requestParameters.bucketName. A parse expression like | json "bucketName" written against this example would return null on real logs. Please either correct the sample to the actual nested structure (e.g. "requestParameters": { "bucketName": "customer-prod-data" }) or add a note that the JSON is simplified for illustration.

```json
{
"eventName": "TerminateInstances",
"instanceId": "i-123456"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In real CloudTrail TerminateInstances events, the instance ID is not a top-level field — it lives at requestParameters.instancesSet.items[0].instanceId (an array, since the API accepts multiple instances in one call). A parse expression based on this example would miss on real logs. Please correct to the actual nested structure or note the JSON is simplified.


The following examples use AWS CloudTrail logs to show how a rule turns a raw audit log into a meaningful, queryable event.

### Detect IAM role deletions

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The examples show the raw log input and the extracted event output, but omit the Log Query — the one thing users need to actually configure the rule. Without a parse/json/where expression, these can't be used as working references. Even a minimal example like | json "eventName" as eventName | where eventName = "DeleteRole" for the IAM case would make each example end-to-end actionable.

"eventName": "DeleteRole",
"eventSource": "iam.amazonaws.com",
"userIdentity": {
"userName": "***.***"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"userName": "***.***" reads like a redacted real value rather than a documentation placeholder, and the extracted event repeats it literally as user = ***.***. Readers may think this is a format or mask the system applies. A generic illustrative value like alice or john.doe would be clearer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed Contributor approved, listed in .clabot file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants