【问题标题】:Google Cloud Logging: show lines above and below the matched linesGoogle Cloud Logging:显示匹配行上方和下方的行
【发布时间】:2023-03-21 08:25:02
【问题描述】:

有时在 Google Cloud Logging 中按关键字或其他条件进行搜索时,我希望不仅显示匹配条件的行,还希望显示匹配行的上下几行,以便更好地理解上下文。

有可能实现吗?怎么样?

【问题讨论】:

    标签: google-cloud-logging


    【解决方案1】:

    我认为在 Google Cloud Logging 上不可能实现这一点。

    我通常运行第一个查询,获取我感兴趣的日志的时间戳,然后使用自定义时间范围运行第二个查询。

    Advanced logs queries

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-12
      • 2010-11-07
      • 1970-01-01
      • 2010-12-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多