I'm struggling to filter square brackets on my log messages in Kibana. Suppose I have the messages:
[BOOK] The Book 32 was sold
Exception on buying BOOK
And I want to filter only messages having exactly [BOOK]
(so I should get only the first one).
I have tried filtering free text with all kinds of escaping I could think of:
[BOOK]
"[BOOK]"
\[BOOK\]
"\[BOOK\]"
\\[BOOK\\]
And also tried filtering by the message field:
message: [BOOK]*
message: "[BOOK]*"
message: \[BOOK\]*
message: "\[BOOK\]*"
But Kibana seems to simply ignore the square brackets and always brings both messages, highlighting only the BOOK
word.
How can I force it search for the []
?