skip to Main Content

enter image description hereI have been Stocked on how to send Lambda logs(Prints) directly to Amazon Kinesis Data Stream. I have Found the way to send Logs from Cloud watch but I would like to send every single prints to kinesis data streams. I have a doubt if I send data from cloud watch does it stream real time prints records to kinesis or not? On this case I would like to use lambda as producer and through the kinesis data S3 as a consumer .

below I have attached a flow work of my conditions.

2

Answers


  1. You have to create CouldWatch Subscription filter for the Lambda’s log stream you want to save to S3. So you would do:

    CW Logs subscription ---> Firehose ---> S3
    
    Login or Signup to reply.
  2. You can also check the lambda extensions, which helps into direct ingestion of the logs to custom destinations. Its helpful incase you want to avoid cloudwatch costs

    https://aws.amazon.com/blogs/compute/using-aws-lambda-extensions-to-send-logs-to-custom-destinations/

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search