[{"data":1,"prerenderedAt":31},["ShallowReactive",2],{"snippet-lambda-loginsights-duration":3},{"id":4,"title":5,"contributors":6,"description":8,"extension":9,"gitHub":10,"introBox":13,"languages":17,"meta":18,"resources":17,"services":19,"snippets":21,"stem":26,"tags":27,"type":29,"__hash__":30},"snippets\u002Fsnippets\u002Flambda-loginsights-duration.json","Lambda invocations with duration greater than a specific threshold",[7],"content\u002Fcontributors\u002Fpallavi-bhat.json","Returns the list of Lambda invocations with duration greater than specific thereshold","json",{"template":11},{"repoURL":12},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-snippets\u002Ftree\u002Fmain\u002Flambda-loginsights-duration",{"headline":14,"text":15},"How it works",[16],"Cloudwatch Log Insights snippet that lists the invocations with duration greater than the specified thereshold of your Lambda Lambda function.",null,{},[20],"lambda-event-functions",[22],{"title":23,"language":24,"code":25},"Copy the code into CloudWatch log insights","css","fields @timestamp, @message\n|filter @type = \"REPORT\" \n| parse @message \u002FDuration: (?&#60;duration&#62;.*?) ms\u002F\n| filter duration &#62; 1000\n| sort by duration desc","snippets\u002Flambda-loginsights-duration",[28],"Testing","CloudWatch Logs Insights","tQ5V7dBcucHAR8BPWrmsfHvPdRwOpk9fQXXc-6U4T_o",1792578864453]