[英]AWS Cloudwatch Insights: query using multiple log groups
Reading the documentation seems that is possible in AWS Cloudwatch to run queries with multiple log groups but I can not see any example on how to do it.阅读文档似乎可以在 AWS Cloudwatch 中运行多个日志组的查询,但我看不到有关如何执行此操作的任何示例。
I would like to join two log groups using common attributes and select some logs using filter.我想加入两个使用公共属性的日志组和 select 使用过滤器的一些日志。
Has anyone run into the same problem and found a solution?有没有人遇到同样的问题并找到解决方案? Thanks in advance.提前致谢。
Working code:工作代码:
"SOURCE 'abc/application.log' | filter @message not like \"ThrottlingException\"\n| fields logMessage"
Not working code:不工作的代码:
"SOURCE 'abc/application.log' 'abc-onebox/application.log' | filter @message not like \"ThrottlingException\"\n| fields logMessage"
"SOURCE IN ['abc/application.log', 'abc-onebox/application.log'] | filter @message not like \"ThrottlingException\"\n| fields logMessage"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.