Stream cloudwatch logs to lambda

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.พ. 2025

ความคิดเห็น • 46

  • @SrceCde
    @SrceCde  4 ปีที่แล้ว +4

    Note: The CloudWatch UI is updated, hence you will not find the option of "Create Lambda subscription filter" by right-clicking on log group. To create a subscription filter, click/open the log group (on which you want to create the subscription filter). After opening, click on Actions followed by a click on "Create Lambda subscription filter".

  • @ADV-IT
    @ADV-IT 8 หลายเดือนก่อน

    Thank you!

    • @SrceCde
      @SrceCde  7 หลายเดือนก่อน

      You're welcome! Please like, share & subscribe :)

  • @JustinRiley1987
    @JustinRiley1987 2 ปีที่แล้ว

    Thanks a ton, this was exactly what i was looking for!

    • @SrceCde
      @SrceCde  2 ปีที่แล้ว

      Glad it was helpful, Justin! Please like, share & subscribe :)

  • @BullishBuddy
    @BullishBuddy 3 ปีที่แล้ว

    Awesome tutorial! Simple and effective!!

    • @SrceCde
      @SrceCde  3 ปีที่แล้ว

      Glad it was helpful Jeff! Please like, share & subscribe. :)

  • @SrinivasaRaoGurram
    @SrinivasaRaoGurram 4 ปีที่แล้ว +1

    Thanks for helping me understand log group with subscription filter.
    Can u create a serverless script for the same to add subscription filter for a lambda

  • @kathirjay9168
    @kathirjay9168 3 ปีที่แล้ว

    Good info .. is there a way to stream those as individual events instead of as an array .. JSON prints it as array of events .. If you notice the 3 events as part of the payload were concatenated in a array removing the line breaks .. This might impact third party search engines when querying for an error .i might print out all three events even though is not desirable

  • @MyAnil555
    @MyAnil555 2 ปีที่แล้ว +1

    Hey mate,
    Your video is really help ful to me. Can i also request you to do a video on streaming cloudwatch logs to splunk.
    Thanks in ADVANCE !!!

    • @SrceCde
      @SrceCde  2 ปีที่แล้ว

      Glad it was helpful, Anil! I will check and try to post the tutorial video ASAP. Please stay tuned.
      Please like, share & subscribe :)

  • @krishnashashank6505
    @krishnashashank6505 2 ปีที่แล้ว

    Great work, but I could not find "stream to aws lamda" in actions dropdown in log groups.

    • @SrceCde
      @SrceCde  2 ปีที่แล้ว

      In the updated UI its under Actions --> Subscription filters --> Create Lambda subscription filter.
      I hope this helps. Please like, share & subscribe :)

  • @MandolinSashaank
    @MandolinSashaank 3 ปีที่แล้ว

    I am trying to achieve the same by using terraform but I am facing a permission issue which says to give cloudwatch the permission to trigger your lambda.

  • @dhanabalanrangasamy9462
    @dhanabalanrangasamy9462 2 ปีที่แล้ว

    Can we send cloudwatch logs from Account B to lambda located in Account A...Basically how to proceed when lambda and cloudwatch log group are in different account

  • @arig2519
    @arig2519 3 ปีที่แล้ว

    I understand these Log groups are being created based on the IAM permissions you have assigned and they are named automatically based on the Lambda functions we create. What if I create the Log group from the Cloudwatch console manually and then want to point my Lambda function to that Log group directly? Is it possible? If yes, any reference to that?

  • @neoknows-r6b
    @neoknows-r6b 5 ปีที่แล้ว

    Nice tutorial, I have some filters applied to my log group, how do I export only the filtered logs?

    • @SrceCde
      @SrceCde  5 ปีที่แล้ว

      Thanks for stopping by.
      I believe you can set filters while creating the subscription and test the outcome on the same screen itself.
      Hope this helps.

    • @rachitmishra5299
      @rachitmishra5299 3 ปีที่แล้ว

      @@SrceCde 10:57 , at this minute of the video inside log groups of /aws/lambda/lambdaStreamTarget , one file is generated which is to be zipped, why didn't it generated in my case ..I have followed the same steps as your.
      This file:
      {'awslogs' : {'data' : .....so on}}

  • @aishwaryatadaki4090
    @aishwaryatadaki4090 4 ปีที่แล้ว

    Hi,
    Thank you for making this video to understand the subscription filters with AWS lambda function. It is very helpful.
    But now im trying to generate the cloud watch logs from Dynamo DB streams instead of the first invocation lamda function and the second target lambda function has subscription to this cloud watch logs generated by the Dynamo Db item modifications. But now im unable to read only particular attributes from log data in the target lambda function. The data format is still json. Please help me in solving this issue.
    Im happy for any suggestions!!
    Thank you,

    • @SrceCde
      @SrceCde  4 ปีที่แล้ว +2

      Thanks for stopping by aishwarya tadaki. I am not sure if I am able to understand the exact issue. But based on my understanding, are you getting the data you need within JSON? If yes, then you can parse the relevant data from the same. Also, you can handle log format while creating the subscription filter. Feel free to correct me on my understanding. Also, let me know if you have any further queries. Please like, share & subscribe. :)

    • @aishwaryatadaki4090
      @aishwaryatadaki4090 4 ปีที่แล้ว

      @@SrceCde Hello,
      Thank you for your suggestions. As you asked, Im getting the data what i need within the JSON. But Im unable to parse it properly. Please provide me a means to contact you offline....so that i can probably ask my further queries to you ( only if you are ok with it) or please drop me a mail at aishusnowwhite25@gmail.com . Thank you again for your help!!

    • @SrceCde
      @SrceCde  4 ปีที่แล้ว

      You can connect with me via Twitter, LinkedIn. The links are in the video description. I hope this helps. Please like, share & subscribe. :)

  • @shamstabrez2986
    @shamstabrez2986 2 ปีที่แล้ว

    could u plz tell me wht is the use case of this topic m waiting for ur rply

  • @BiranchiNarayanNayak
    @BiranchiNarayanNayak 5 ปีที่แล้ว

    How to subscribe to AWS Sagemaker logs ? The sagemaker log groups and log streams are created at the run time.

    • @SrceCde
      @SrceCde  5 ปีที่แล้ว

      Thanks for stopping by.
      You can use the same methodology to for subscription. For example, you have /aws/sagemaker/TrainingJobs as a log group. So you can go ahead and select the log group as shown in the video tutorial and create the subscription.
      Hope this helps.

  • @kamalah1304
    @kamalah1304 4 ปีที่แล้ว

    I don't see stream to aws lambda option in log group's action

    • @SrceCde
      @SrceCde  4 ปีที่แล้ว

      Thanks for stopping by kamala hanchinal. I believe that you are using updated/new CloudWatch UI. In order to get that option, open the log group on which you want to set filter. Once you open it, click on Actions and you will be able to see Create Lambda subscription filter. I hope this helps. Let me know in case you have any further queries. Please like, share & subscribe. :)

  • @The-SmilinG-kukO
    @The-SmilinG-kukO ปีที่แล้ว

    Good content , one suggestion, please don't use 'right' 1000 times in a 15 min of speech .

    • @SrceCde
      @SrceCde  ปีที่แล้ว

      Thank you for the feedback. I have incorporated the feedback from quite sometime in my latest videos.
      Please like, share & subscribe:)

  • @akshitshah7298
    @akshitshah7298 5 ปีที่แล้ว

    Hi,
    Thank you so much for amazing tutorial, Is there any way where we can directly send logs to DynamoDB

    • @SrceCde
      @SrceCde  5 ปีที่แล้ว

      Thanks for stopping by Akshit.
      AFAIK, we cannot directly stream logs to DynamoDB. I think you can achieve this functionality via lambda function.
      I hope this helps.
      Please like, share and subscribe :)

    • @SrinivasaRaoGurram
      @SrinivasaRaoGurram 4 ปีที่แล้ว

      You can create a table in Dynamo and save the log to Dynamo

  • @rajkumar-oy3ni
    @rajkumar-oy3ni 4 ปีที่แล้ว

    please make video to log cloud watch logs to Elastic search

    • @SrceCde
      @SrceCde  4 ปีที่แล้ว

      Thanks for stopping by raj kumar. I have noted your tutorial request and I will work on the same soon. Please stay tuned. Please like, share & subscribe. :)

  • @djBulba
    @djBulba 2 ปีที่แล้ว

    not relevant to the topic but you said the word "right" 138 times in the 20 minute video :)

  • @ricardosida8457
    @ricardosida8457 2 ปีที่แล้ว

    ily

  • @alexpaes9161
    @alexpaes9161 4 ปีที่แล้ว +2

    Hi dude! Thanks for the video! Just stop saying RIGHT all the time coz it's really annoying! Sorry! Thanks!

    • @SrceCde
      @SrceCde  4 ปีที่แล้ว +1

      Thanks for stopping by Alex. Thanks for the feedback. I have improved on the same in the latest videos and I will certainly make sure to incorporate your feedback in the upcoming videos too. Thanks again. Please like, share & subscribe. :)

    • @rossalcazar2334
      @rossalcazar2334 3 ปีที่แล้ว

      I like the video it helps a lot but I noticed every sentence, I kept on hearing "right?" word too. I don't know why you need to say "right" for every sentence.

  • @balachandarmohan9389
    @balachandarmohan9389 5 ปีที่แล้ว

    Hi Can you pls post .. how to send docker startup logs to cloudwatch

    • @SrceCde
      @SrceCde  5 ปีที่แล้ว

      Thanks for stopping by.
      Where are you running the docker? EC2?