如何使用log.attribute.attribute在监视器中显示日志属性的值

发布于 2025-02-03 23:42:11 字数 626 浏览 1 评论 0 原文

我是在datadog中创建的监视器。我想从日志中的日志中提取电子邮件,该日志可在 limitedsessiondata.user.email 中提取。

当我键入显示器时,下面的屏幕截图是出现的提示。但是,我尝试了以下功能,但对它们没有起作用:

  • “ {{log.attributes.limitedsessiondata.user.email}}}}” - 通过电子邮件发送电子邮件,询问他是否需要帮助。
  • {log {log {log 。
  • ​询问他是否需要帮助。
  • “ {{log.attributes [@limitedsessiondata.user.email]}}}}}}}}}}}}}}}}}}}}}}}}}}询问他是否需要帮助。

任何想法?是否需要对日志属性进行刻度?

I am created a monitor in Datadog. I want to extract email from the log which is available in the JSON of the log at limitedSessionData.user.email.

When I'm typing the monitor, the screenshot below is of the hint that comes up. However I tried the following but not of them work:

  • "{{log.attributes.limitedSessionData.user.email}}" - email this guy asking if he needs help.
  • "{{log.attributes.[limitedSessionData.user.email]}}" - email this guy asking if he needs help.
  • "{{log.attributes[limitedSessionData.user.email]}}" - email this guy asking if he needs help.
  • "{{log.attributes[@limitedSessionData.user.email]}}" - email this guy asking if he needs help.

Any ideas how to do this? Does the log attribute need to be faceted?

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

千寻… 2025-02-10 23:42:11

工作有效:

"{{log.attributes.[params.body.fullName]}}" - email this guy

可以在此处找到更多信息:

This worked:

"{{log.attributes.[params.body.fullName]}}" - email this guy

More information can be found here:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文