Skip to content

Commit

Permalink
fix mapping error for cloudtrail additonalEventData field (#16088) (#…
Browse files Browse the repository at this point in the history
…16098)

(cherry picked from commit 03d62cc)
  • Loading branch information
leehinman committed Feb 18, 2020
1 parent 783999a commit d0f02c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d


*Filebeat*

- Fix a connection error in httpjson input. {pull}16123[16123]
- Fix mapping error for cloudtrail additionalEventData field {pull}16088[16088]

*Heartbeat*

Expand Down
4 changes: 2 additions & 2 deletions x-pack/filebeat/module/aws/cloudtrail/ingest/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ processors:
- script:
lang: painless
source: |
if (ctx.json.additionalEventdata != null) {
ctx.aws.cloudtrail.additional_eventdata = ctx.json.additionalEventdata.toString();
if (ctx.json.additionalEventData != null) {
ctx.aws.cloudtrail.additional_eventdata = ctx.json.additionalEventData.toString();
}
ignore_failure: true
- rename:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[
{
"@timestamp": "2014-07-16T15:49:27.000Z",
"aws.cloudtrail.additional_eventdata": "{LoginTo=https://console.aws.amazon.com/s3/, MobileVersion=No, MFAUsed=No}",
"aws.cloudtrail.event_version": "1.05",
"aws.cloudtrail.response_elements": "{ConsoleLogin=Success}",
"aws.cloudtrail.user_identity.arn": "arn:aws:iam::111122223333:user/JohnDoe",
Expand Down Expand Up @@ -34,6 +35,7 @@
},
{
"@timestamp": "2014-07-08T17:35:27.000Z",
"aws.cloudtrail.additional_eventdata": "{LoginTo=https://console.aws.amazon.com/sns, MobileVersion=No, MFAUsed=No}",
"aws.cloudtrail.error_message": "Failed authentication",
"aws.cloudtrail.event_version": "1.05",
"aws.cloudtrail.response_elements": "{ConsoleLogin=Failure}",
Expand Down

0 comments on commit d0f02c0

Please sign in to comment.