Skip to content

Commit

Permalink
simplify regex for org & custom prefix in aws/cloudtrail (elastic#23204)
Browse files Browse the repository at this point in the history
- only match on /CloudTrail/, /CloudTrail-Digest/ and
  /CloudTrail-Insight/, ignore variable prefix

Closes elastic#23203
  • Loading branch information
leehinman committed Dec 17, 2020
1 parent 4cbb168 commit 6935dc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Fix aws s3 overview dashboard. {pull}23045[23045]
- Fix bad `network.direction` values in Fortinet/firewall fileset. {pull}23072[23072]
- Add support for organization and custom prefix in AWS/CloudTrail fileset. {issue}23109[23109] {pull}23126[23126]
- Simplify regex for organization custom prefix in AWS/CloudTrail fileset. {issue}23203[23203] {pull}23204[23204]

*Heartbeat*

Expand Down
6 changes: 3 additions & 3 deletions x-pack/filebeat/module/aws/cloudtrail/config/s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ type: s3
queue_url: {{ .queue_url }}
file_selectors:
{{ if .process_cloudtrail_logs }}
- regex: 'AWSLogs/\d+/CloudTrail/'
- regex: '/CloudTrail/'
expand_event_list_from_field: 'Records'
{{ end }}

{{ if .process_digest_logs }}
- regex: 'AWSLogs/\d+/CloudTrail-Digest/'
- regex: '/CloudTrail-Digest/'
{{ end }}

{{ if .process_insight_logs }}
- regex: 'AWSLogs/\d+/CloudTrail-Insight/'
- regex: '/CloudTrail-Insight/'
expand_event_list_from_field: 'Records'
{{ end }}

Expand Down

0 comments on commit 6935dc6

Please sign in to comment.