This is a Nodejs ES6 based AWS lambda function. You can upload it to your AWS lambda function and then link this function in cloudwatch via Stream logs. This function will add the ability to parse and export your cloudwatch logs from aws architecutre to where ever you want in a serverless fashion.
In this case we are exporting all our logs in Keen.io.
Read the original article over here via forkgeeks.com