Skip to content

Commit

Permalink
[Hunt Tuning] Fixing Sort Logic in Aviatrix Hunting Query (#4432)
Browse files Browse the repository at this point in the history
* fixing sort logic error

* Update hunting/aws/queries/iam_unusual_default_aviatrix_role_activity.toml

Co-authored-by: Ruben Groenewoud <78494512+Aegrah@users.noreply.github.com>

---------

Co-authored-by: Ruben Groenewoud <78494512+Aegrah@users.noreply.github.com>

(cherry picked from commit f1dee06)
  • Loading branch information
terrancedejesus authored and tradebot-elastic committed Feb 4, 2025
1 parent 05b43dc commit b8b209b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ from logs-aws.cloudtrail-*
and aws.cloudtrail.user_identity.arn like "*aviatrix-role*"
| stats activity_counts = count(*) by event.provider, event.action, aws.cloudtrail.user_identity.arn
| where activity_counts < 10
| sort by activity_counts asc
| sort activity_counts asc
```

## Notes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ from logs-aws.cloudtrail-*
and aws.cloudtrail.user_identity.arn like "*aviatrix-role*"
| stats activity_counts = count(*) by event.provider, event.action, aws.cloudtrail.user_identity.arn
| where activity_counts < 10
| sort by activity_counts asc
''']
| sort activity_counts asc
''']

0 comments on commit b8b209b

Please sign in to comment.