我是在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?

发布评论
评论(1)
工作有效:
可以在此处找到更多信息:
This worked:
More information can be found here: