index.js
// converts the event to a valid JSON object with the sufficient infomation required
converts the event to a valid JSON object with the sufficient infomation required
converts the event to a valid JSON object with the sufficient infomation required
function parseEvent(logEvent, logGroupName, logStreamName) {
        return {
            message: logEvent.message.substring(0, logEvent.message.length - 1),
            logGroupName: logGroupName,
            logStreamName: logStreamName,
            timestamp: new Date(logEvent.timestamp).toISOString()
        };
    }
function parseEvent ( logEvent , logGroupName , logStreamName ) { return { message : logEvent . message . substring ( 0 , logEvent . message . length - 1 ) , logGroupName : logGroupName , logStreamName : logStreamName , timestamp : new Date ( logEvent . timestamp ) . toISOString ( ) } ; }
converts the event to a valid JSON object with the sufficient infomation required
converts the event to a valid JSON object with the sufficient infomation required
// remove '\n' character at the end of the event