Skip to content

Commit e9d19df

Browse files
authored
add support for node10/12 in kinesis handler
1 parent 07e7f77 commit e9d19df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kinesis/node.js/k2sl_lambda.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var includeLogInfo = true; // default is true
2424
// Regex used to detect logs coming from lambda functions.
2525
// The regex will parse out the requestID and strip the timestamp
2626
// Example: 2016-11-10T23:11:54.523Z 108af3bb-a79b-11e6-8bd7-91c363cc05d9 some message
27-
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/;
27+
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)?/;
2828

2929
// Used to extract RequestID
3030
var requestIdRegex = /(?:RequestId:|Z)\s+([\w\d\-]+)/;

0 commit comments

Comments
 (0)