From 65a9a9d5d3b65f79d9eadb96304b0e7603b88219 Mon Sep 17 00:00:00 2001 From: Pallavi-D-Bhat Date: Tue, 25 Feb 2025 23:58:49 +0530 Subject: [PATCH] cloudwatch-loginsights-connect-contactid query --- .../README.md | 10 ++++++ .../snippet-data.json | 31 +++++++++++++++++++ .../snippet.txt | 4 +++ 3 files changed, 45 insertions(+) create mode 100644 cloudwatch-loginsights-connect-contactid/README.md create mode 100644 cloudwatch-loginsights-connect-contactid/snippet-data.json create mode 100644 cloudwatch-loginsights-connect-contactid/snippet.txt diff --git a/cloudwatch-loginsights-connect-contactid/README.md b/cloudwatch-loginsights-connect-contactid/README.md new file mode 100644 index 0000000..3727219 --- /dev/null +++ b/cloudwatch-loginsights-connect-contactid/README.md @@ -0,0 +1,10 @@ +
+ +

Explore ServerlessLand

+ + +![ServerlessLand.com](../serverlessland.png) +[Explore 700+ patterns](https://serverlessland.com/patterns?ref=github-snippets) | [Explore 50+ guides](https://serverlessland.com/learn?ref=github-snippets) | [Explore 80+ guides](https://serverlessland.com/snippets?ref=github-snippets) + +
+ diff --git a/cloudwatch-loginsights-connect-contactid/snippet-data.json b/cloudwatch-loginsights-connect-contactid/snippet-data.json new file mode 100644 index 0000000..c1a1b39 --- /dev/null +++ b/cloudwatch-loginsights-connect-contactid/snippet-data.json @@ -0,0 +1,31 @@ +{ + "title": "Find the Contact Flow logs of specific contact ID in Amazon Connect", + "description": "Returns the contact flow logs for the specific Contact ID and if it returned any error", + "type": "CloudWatch Logs Insights", + "services": ["connect", "lambda"], + "tags": ["Testing"], + "introBox": { + "headline": "How it works", + "text": ["Cloudwatch Log Insights snippet that provides the logs of the specific contact ID if it resulted in any error" + ] + }, + "gitHub": { + "template": { + "repoURL": "https://github.com/aws-samples/serverless-snippets/tree/main/cloudwatch-loginsights-connect-contactid" + } + }, + "snippets": [ + { + "title": "Copy the code into CloudWatch log insights", + "snippetPath": "snippet.txt", + "language": "css" + } + ], + "authors": { + "headline": "Presented by Pallavi Bhat", + "name": "Pallavi Bhat", + "imageURL": "https://drive.google.com/file/d/1xYr8HfVnLZOMmhAc9hSsyj_O85yyznF7/view?usp=sharing", + "linkedin": "https://www.linkedin.com/in/pallavi-bhat11/", + "bio": "Cloud Support Engineer at AWS." + } +} diff --git a/cloudwatch-loginsights-connect-contactid/snippet.txt b/cloudwatch-loginsights-connect-contactid/snippet.txt new file mode 100644 index 0000000..122cd23 --- /dev/null +++ b/cloudwatch-loginsights-connect-contactid/snippet.txt @@ -0,0 +1,4 @@ +fields @timestamp, @message +| sort @timestamp desc +| filter ContactId = "1234abc-456d-4ef-ghi-96c9631f2a95" +| filter Results LIKE "Error" \ No newline at end of file