Skip to content

Commit 5e936b6

Browse files
committed
parse logs
1 parent 5c7bb0b commit 5e936b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cloudwatch-logs.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ async function processLines () {
2121
}
2222

2323
export function lambda (e) {
24-
console.log(e)
24+
const payload = Buffer.from(e.awslogs.data, 'base64')
25+
console.log(payload)
2526
setTimeout(rabbit.close, 10000)
2627
}
2728

0 commit comments

Comments
 (0)