Skip to content

Commit

Permalink
SUMO-0: explicitly remove outerfield for guardduty events
Browse files Browse the repository at this point in the history
  • Loading branch information
duchatran committed Nov 30, 2017
1 parent 5211a8d commit 448f815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudwatchevents/cloudwatchevents.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ exports.handler = function (event, context) {
}

//console.log(event);
if ((event.source==="aws.guardduty") && (removeOuterFields)) {
if ((event.source==="aws.guardduty") || (removeOuterFields)) {
final_event =event.detail;
} else {
final_event = event;
Expand Down

0 comments on commit 448f815

Please sign in to comment.