Skip to content

Commit

Permalink
fix(kibana): Updating event field prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-cottone committed Oct 19, 2018
1 parent 9cac9a3 commit ffd9af0
Show file tree
Hide file tree
Showing 2 changed files with 744 additions and 10 deletions.
2 changes: 1 addition & 1 deletion templates/code/logsToEs.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function buildSource(message, extractedFields) {

jsonSubString = extractJson(value);
if (jsonSubString !== null) {
source['$' + key] = JSON.parse(jsonSubString);
source['@' + key] = JSON.parse(jsonSubString);
}

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

0 comments on commit ffd9af0

Please sign in to comment.