Home > Back-end >  Process Daily Logs from Cloudwatch using lambda
Process Daily Logs from Cloudwatch using lambda

Time:07-12

I dont have much code to show.

I want to process all cloudwatch logs that are generated in last 1 day using lambda. I want to execute lambda 6 am in the morning to extract some information from cloudwatch logs that are generated on previous day and put it in a table.

CodePudding user response:

Instead of your 6 AM idea, you could also use a CloudWatch Logs subscription filter and trigger a Lambda function to process and store the log entries as described in a step-by-step example here cwlogs-subscription-filter-lambda

Before that, you should prepare a Lambda function that has functionalities to help you to put your extracted data into DynamoDB table.

References:

  • Related