I try to understand escaping and wildcards but seem to miss something very basic.
For example I do not even manage to search for a “.” or “-“ character in the message field.
Neither one of the following expressions returns all messages, that contain the character:
.
“.”
“\.”
or
-
“-”
“\-”
Thanks for your help
Kirt
(I am using the virtual appliance Graylog 3.2.4+a407287)
your leading wildcard search will only work if you have that enabled in Graylog. When you search for the string - you should quote that string. Like described in the docs.
Thanks Jan! This explains what I see. I do indeed search the full_message and message fields.
After having a short look at the tokenizer: Wouldn’t it be better to use the whitespace tokenzier when dealing with log messages? While “test” and “test.” might be very close in a spoken language, it’s likely to be completely different in a log file. This is just asking your opinion.
Will there be another way to search for “test…” in analyzed field?
Thanks again, as I finally know the reason why my search is not working as expected.
Kirt
you could change the tokenizer and check if that is better for you. We did not change the default tokenizer to not change/break the behaviour and make it inconsistence for running setups.