Datadog 的 lambda 日志转发器将函数名称更改为小写
我已按照 Datadog 的文档(此处)手动配置 AWS 账户与数据狗。设置包括 Datadog 提供的 Lambda 函数 (此处)由 Cloudwatch 日志组触发,并且 lambda 将日志推送到 Datadog。
问题是,当推送日志时,Datadog 的日志转发器 lambda 会将函数名称、标签和其余部分更改为小写。现在,当我使用 Cloudformation 为 Datadog 监视器创建查询时使用“!Ref”时,查询包含自动生成的 lambda 名称,该名称是小写和大写字母的混合。但查询不起作用,因为 Datadog 在推送日志时更改了函数名称。
有人可以建议这里的工作吗?
I have followed the Datadog's documentation (here) for manually configure AWS account with Datadog. Set-up includes a Lambda function provided by Datadog (here) which is triggered by Cloudwatch log group and lambda pushes logs to Datadog.
Problem is that when logs are pushed, Datadog's log forwarder lambda changes name of function, tags and rest of the to small case. Now, when I use '!Ref ' while creating query for Datadog monitor using Cloudformation, then query contains autogenerated name of lambda which is mixture of small and upper case alphabets. But query does not work as Datadog changes name of the function while pushing logs.
Can someone suggest the work around here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 Cloudformation 宏 转换模板中的字符串,在本例中使用
Lower
操作将!Ref
变为小写。请记住,您需要定义宏并将其部署为 lambda< /a>.You could use a Cloudformation macro to transform strings in your template, in this case using the
Lower
operation to make your!Ref
s lowercase. Keep in mind that you need to define and deploy macros as lambdas.