Regex search in message field

Hello,

because I couldn’t find any info in the documentation, is it possible to use regex search in the message field?

Let’s assume we have a message field containing:

This is number 8748343 just for testing purposes.

Now I have tried all possible search syntax:
message:/This is number .+ just for testing purposes./
message: /This is number .+ just for testing purposes./
message:/This is number .+ just for testing purposes.+/
/This is number .+ just for testing purposes.+/
/This\sis\snumber.+just\sfor\stesting\spurposes.+/

But nothing works. What are my options?

Graylog by default uses standard analyzer, so i think, that you can’t use your examples.

https://docs.graylog.org/en/4.0/pages/configuration/index_model.html

I don’t understand the connection between regex search and index configuration. ElasticSearch should support regex search.

This: Search query language — Graylog 4.0.0 documentation

References This: Regexp Query | Elasticsearch Reference [5.6] | Elastic

For help with Elastic Search Regular Expression Syntax

#shrug :slight_smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.