开发者社区 问答 正文

如何在SLS中搜索不含"os30"的日志?

如何在SLS中搜索不含"os30"的日志?

展开
收起
古月虎 2024-08-07 16:38:26 112 分享 版权
1 条回答
写回答
取消 提交回答
  • 要在SLS中搜索不含"os30"的日志,您可以使用以下查询语句:
    sql * | where !(__tag__:__hostname__ contains "os30") 这条语句会筛选出所有不包含"tag:hostname"为"os30"的日志条目。

    2024-08-07 20:30:57
    赞同 3 展开评论
问答分类:
问答地址: