Trying regex pattern on greylog search

Chris picture Chris · May 26, 2014 · Viewed 13k times · Source

Hej,

I'm trying to query graylog for any message not containing something that would match the regex pattern:

     (\\w+-)*\\d+

For example: some-article-x-12397

But normal regex seems not to be working for graylog. The help page doesn't give me enough information. ( http://support.torch.sh/help/kb/graylog2-web-interface/the-search-bar-explained )

Answer

Raúl Moreno picture Raúl Moreno · Feb 12, 2015

I do not find anywhere that Graylog2 accepts regular expressions in its Search (it does for definig streams, etc.). It just states:

Use ? to replace a single character or * to replace zero or more characters

Source: https://www.graylog.org/documentation/general/queries/