Filtered Alias not working properly

I want to create an alias which points to a certain index pattern but filtered on the basis of a particular field. I ran the following as a curl command.

{
    "actions" : [
        {
            "add" : {
                 "index" : "pa-2018.12.31",
                 "alias" : "pa-logs",
                 "filter" : { "term" : { "tags" : "XXXX" } }
            }
        }
    ]
}

The above curl command gives true in response but the alias can not be seen in the kibana management tab. Although when I remove the filter statement, it seems to be working fine.

{
    "actions" : [
        {
            "add" : {
                 "index" : "pa-2018.12.31",
                 "alias" : "pa-logs"
            }
        }
    ]
}

This seems to be working fine. Is there something I am missing or is there any other way of achieving the same functionality/

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.