Hi !
Based on Wildcard search question i have tried to figure out the exact problem what we have with wildcardsearches on fields.
I will try to explain the behaviour.
Environment: Graylog 2.1.3
We send via gelf two messages with a field called application with the values “jto” and “JCR”.
If we search now
application:jto → Result
application:jT* → Result !
As i understand, the field will not be analyzed so the value should be stored as it comes and therefore jT* should bring no results.
Is it true that graylog will lower the search value if you put a * on the end of the value ?
If i perform following search direct via ElasticSearch i get no results.
{
“query”: {
“bool”: {
“must”: [
{
“wildcard”: {
“application”: “jT*”
}
}
],
“must_not”: ,
“should”:
}
},
“from”: 0,
“size”: 10,
“sort”: ,
“aggs”: { }
}
The second search:
application:JCR → Result
application:JC* → No Result
Also here it looks like that graylog will lower the value and therefore the search will get no results.
If i perform following search direct via ElasticSearch i get results.
{
“query”: {
“bool”: {
“must”: [
{
“wildcard”: {
“application”: “JC*”
}
}
],
“must_not”: ,
“should”:
}
},
“from”: 0,
“size”: 10,
“sort”: ,
“aggs”: { }
}
but if i try this search i get No Results
{
“query”: {
“bool”: {
“must”: [
{
“wildcard”: {
“application”: “jc*”
}
}
],
“must_not”: ,
“should”:
}
},
“from”: 0,
“size”: 10,
“sort”: ,
“aggs”: { }
}
Can somebody give some feedback please to my assumption.
Thanks
Claus