如何仅在 Graylog 中搜索今天的数据

问题描述

我发现在 Graylog 中搜索“仅限今天”的消息非常困难。这是我迄今为止尝试过的:

  1. 使用 keywordtoday 00:00:00 +0800 to today 23:59:59 +0800
  2. 查询中使用 timestamp:["Now/d" to "Now+1d/d"] 并选择 search all messages

None of them 正在工作! :(

有没有人有可以挽救我一天的有效解决方案?谢谢!

解决方法

关键字由 Natty 解析。您可以使用关键字 today midnight 来实现您想要的。

,

使用绝对时间。

类似于:

http://10.10.10.10:9000/search?q=&rangetype=absolute&from=2020-12-23T20%3A31%3A58.620Z&to=2020-12-23T20%3A36%3A58.621Z

当然,如果您使用 GUI 会容易得多。