Hi
Sorry if this has been covered elsewhere and for the wall of text below, but I’ve been trying to figure this out over the last few days and trawling various forums along the way and haven’t seen anything specific to my experience.
Simply stated, are there any other special characters aside from what is covered via:
https://docs.graylog.org/en/3.1/pages/queries.html#search-query-language
Advising - & | : \ / + - ! ( ) { } ^ " ~ * ? - need to be slashed out.
The reason I ask is I’m having difficulty matching search strings such as email address (*@domain.tld) for example. I’ve enabled the front wildcard in the config and played with slashing it out as well. But casting that aside, I then just looked for the string @domain.tld, whilst this works, when I reviewed my results I saw that it was matching messages more broadly than anticipated. For example, I was matching email based logs as well as DNS based logs, where the ampersand (@) definitely doesn’t feature within the log line even if the domain.tld component did.
Note the wild card does appear to work as expected, so long as it’s not mixed with the @. For example *domain.tld does appear to match the expected messages. Insert the @ - nothing, even though the scope was exactly the same.
Another search I was attempting was based on Postfix logs, similar to to=*@domain.tld And no matter where I put slashes or don’t, I get unintended or no results. When the initial searches didn’t work, I then assumed that the < > = symbols needed to be slashed out and I went as far as to try the @ as well. Whenever I refer to < or > symbols, the search seems to apply the context in ranges (for lack of any other explaination). Even if I slash or quote them, they seem to do “something”
In my searches I found a post on this forum, mentioning that the period (.) represents a separator between tokens, so in the above case domain.tld is seen as 2 distinct strings - true? If so that’s not really covered in the above article - unless I’ve skipped over that!
Regardless this led me to setting allow_highlighting = true. When I did and played with the same sorts of searches, I found that the @ < > chars never get highlighted, so that leads me to conclude, they are not treated the way I assuming they are via search and they seem to have a special meaning.
It might be asked/suggested, whether or not I’ve enabled pipelines or extractors - the answer is not in any great deal. Rather I had intended to work through the logs and develop them as needed.
Any ideas?
Thanks