【问题标题】:Graylog Search with strings containing /使用包含 / 的字符串进行 Graylog 搜索
【发布时间】:2019-03-20 22:16:09
【问题描述】:

我有包含在 full_message 中的日志;

  • -EndPoint:example/example/abc
  • -EndPoint:example/example/qfdsf
  • -EndPoint:example/example
  • ..等等

我正在尝试编写一个搜索查询来获取 -EndPoint:example/example。

"-EndPoint:example/example" is not working

我不能使用“and”或“or”,因为有数百个版本

为什么以及如何不能/我只能得到 -EndPoint:example/example 末尾没有 / ?

【问题讨论】:

    标签: regex search graylog


    【解决方案1】:

    您可以使用以下正则表达式:

    "-EndPoint:example/example$"
    

    它搜索字符串,确保它是字符串的结尾。

    【讨论】:

    • 都在屏幕上,还是不能只得到-EndPoint:example/example :(
    • 您确定使用正则表达式而不是字符串进行搜索吗?
    • 是的,我愿意。这很奇怪,我也在graylog社区页面上问过,所以如果那里有任何答案,我也会在这里更新。
    猜你喜欢
    • 2019-05-17
    • 2012-05-07
    • 2021-06-12
    • 2013-06-26
    • 2013-11-10
    • 1970-01-01
    • 1970-01-01
    • 2011-05-25
    • 1970-01-01
    相关资源
    最近更新 更多