I want to use an Index alias with a filter to have an index which only contains documents with a certain property set to a specific value.
I added the following filter:
{
"filebeat-2018.01": {
"aliases": {
"filebeat-GTVMA480-2018.01": {
"filter": {
"term": {
"host": "GTVMA480"
}
}
}
}
}
}
So I want all documents with host:GTVMA480.
When I search in Kibana for host:GTVMA480 in index filebeat-2018.01, i can find the documents, but when I search in the alias index, i don't get any documents.
Here is an excerpt of my mappings:
"host": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
I'm on ES 6.0.0
What do I need to change?
Thanks in advance!