Amazon Cloudwatch Logs Insights with JSON fields

后端 未结 5 757
执笔经年
执笔经年 2020-12-28 13:18

I am trying to use Logs Insights with data containing JSON in one of the fields, and to parse the JSON fields

My data looks like the following when I put it in insig

5条回答
  •  自闭症患者
    2020-12-28 14:07

    Would this regex query within the parse command help you?

    filter @message like / \"path\":\"/
    | parse @message /(?<@endpt>((\/[a-zA-Z0-9_{}()-?]+){1,}))/
    

    Good luck!

提交回复
热议问题