在 graylog 中搜索带有破折号和数字的字符串?

Search graylog for string with dash and numerals?

我在寻找正确的查询语法以在我的 graylog 消息中搜索以下字符串时遇到问题:

示例字符串:

/path-one/12/status
/path-one/18/status
/path-one/103/status
/path-one/9821/status

这些在 request_url 字段中。

我试过以下方法:

request_url:"/path\-one/.+/status" => Returns No results
request_url:/path-one/.+/status => Malformed in the following location and points to "/path-one/"
request_url:/path\-one/.+/status => Malformed in the following location and points to "/path\-one/"
request_url:/path-one/[0-9]+/status => Malformed in the following location and points to "[0-9]"

在中间部分可以是正数的情况下,找到我想要的字符串的正确语法是什么?

你可以试试

\/path-one\/[0-9]+\/status

a demo on regex101.com