From e9d19df1f3f1c55a26b345c501812904e75ee834 Mon Sep 17 00:00:00 2001 From: Peter McIntyre Date: Thu, 2 Apr 2020 14:32:22 +1100 Subject: [PATCH] add support for node10/12 in kinesis handler --- kinesis/node.js/k2sl_lambda.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kinesis/node.js/k2sl_lambda.js b/kinesis/node.js/k2sl_lambda.js index b83cfc9..e5ca43d 100644 --- a/kinesis/node.js/k2sl_lambda.js +++ b/kinesis/node.js/k2sl_lambda.js @@ -24,7 +24,7 @@ var includeLogInfo = true; // default is true // Regex used to detect logs coming from lambda functions. // The regex will parse out the requestID and strip the timestamp // Example: 2016-11-10T23:11:54.523Z 108af3bb-a79b-11e6-8bd7-91c363cc05d9 some message -var consoleFormatRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z\t(\w+?-\w+?-\w+?-\w+?-\w+)\t/; +var consoleFormatRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z\s(\w+?-\w+?-\w+?-\w+?-\w+)\s(INFO|ERROR|WARN|DEBUG)?/; // Used to extract RequestID var requestIdRegex = /(?:RequestId:|Z)\s+([\w\d\-]+)/;