Skip to content

Commit

Permalink
fix(logsToEs): Fixed ES '_type' attribute
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The '_type' attribute is now hardcoded to
'serverless-es-logs' instead of the name of the Cloudwatch
log group.

For any users of Elasticsearch 6.x this change will result
in an error for the current index.

Closes: #65
  • Loading branch information
daniel-cottone committed Oct 2, 2018
1 parent f3fe968 commit dc5b849
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 @@ -77,7 +77,7 @@ function transform(payload) {

var action = { "index": {} };
action.index._index = indexName;
action.index._type = payload.logGroup;
action.index._type = 'serverless-es-logs';
action.index._id = logEvent.id;

bulkRequestBody += [
Expand Down

0 comments on commit dc5b849

Please sign in to comment.