Nested query Cloudwatch Log Insights

0

I use sturctured logs of which the fields are automatically picked up by Insights.
All logs have a field traceId.
One log has the field itemId. This logs also has a traceId field.

I want to view all logs based on the itemId.

So I need to find the traceId related to the itemId.
And use this traceId to view all logs with this traceId.
This feels like a nested query in SQL.
How can I achieve a nested query with Insights?

Does something exist in the likes of :

fields @message
| filter traceId=(fields @traceId | filter itemId="123" | limit 1)
질문됨 5년 전4442회 조회
1개 답변
0

Hi TheNxtra,

The X-Ray team does not own log insights, I would recommend posting this question to the CloudWatch forum: https://forums.aws.amazon.com/forum.jspa?forumID=138

They should be able to help you with this question even though the query involves an X-Ray trace ID. Please follow up if you have any other questions specific to the X-Ray Service!

AWS
답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인