Skip to content

Commit

Permalink
fix(logsToEs): Stripping extra parens from apigw_request_id
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-cottone committed Sep 13, 2018
1 parent ff95a2e commit b9f74b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/code/logsToEs.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function buildSource(message, extractedFields) {
source['$' + key] = JSON.parse(jsonSubString);
}

source[key] = value;
source[key] = (key === 'apigw_request_id') ? value.slice(1, value.length - 1) : value;
}
}
return source;
Expand Down

0 comments on commit b9f74b6

Please sign in to comment.