This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Cloudwatch logs to loggly not working.

Hi All,

I was working to export cloudwatch's loggroup's logs to loggly using official documentation ( But somehow its not working. It seems there are some code errors in Lambda function. Please find the Lambda function logs as below. 

{ "errorType": "SyntaxError", "errorMessage": "Unexpected token < in JSON at position 0", "stack": [ "SyntaxError: Unexpected token < in JSON at position 0", " at JSON.parse (<anonymous>)", " at IncomingMessage.<anonymous> (/var/task/index.js:95:41)", " at IncomingMessage.emit (events.js:400:28)", " at IncomingMessage.emit (domain.js:475:12)", " at (internal/streams/readable.js:504:10)", " at flow (internal/streams/readable.js:986:34)", " at resume_ (internal/streams/readable.js:967:3)", " at processTicksAndRejections (internal/process/task_queues.js:82:21)" ] }

Unknown application error occurred