Dear all =)
If I want to search for the following
host:"10.250.11.11" and custom4:"errors occurred"
then match-query and simple-query-string both looks like possible candidates.
I will end up creating Kibana Rules, and since JSON requires use of " it isn't possible to use query-string.
Question 1
If I attempt Match Query:
GET _search
{
"query": {
"match": {
"host": {
"query": "10.250.11.11"
}
},
"match": {
"custom4": {
"query": "errors occurred"
}
}
}
}
then how can I specify that the two match should be "anded" together?
Question 2
If I attempt Simple Query:
GET /_search
{
"query": {
"simple_query_string" : {
"query": "\"10.250.11.11\" +\"errors occurred\"",
}
}
}
How can I specify that the first string is from field host and the second is from field custom4?
Hugs,
Sandra =)

