Search in Graylog for "[error]"

2.7k views Asked by At

I have some trouble with searching in the Graylog Webinterface:

Currently i have the following query:

message: "\[error\]"

But the query returns also messages like this:

 [warn] Error while parsing: %MatchError

Any idea how to search for all entries beginning with "[error]" ?

1

There are 1 answers

0
joschi On BEST ANSWER

You probably have to create a custom Elasticsearch index mapping and use another analyzer for the message field if you want to include special characters such as [ or ] in your queries.

References: