Using alias indice in visualization

Hi Guys,

I am trying to use alias indice in visualization, but something weird happens.
My version is 7.10, and my data are sample data " kibana_sample_data_flights" and "kibana_sample_data_ecommerce" .
I create a alias to point these 2 real indices and use the new alias index in horizontal bar. But I cannot visualize the data in "kibana_sample_data_ecommerce" . My alias operations are like:

PUT kibana_sample_data_flights/_aliases
{
  "actions":[
    {"add":{"index":"kibana_sample_data_ecommerce","alias":"data_flights"}}
    ]
}
PUT kibana_sample_data_flights/_aliases
{
  "actions":[
    {"add":{"index":"kibana_sample_data_flights","alias":"data_flights"}}
    ]
}

The result of the alias is in the screen shot.

After the alias, I created horizontal bar with the new alias index "data_flights". I found I cannot get any visualize from the data from "kibana_sample_data_flights". Pls check my screen shots.

This is for the terms visualization for data from "kibana_sample_data_flights"

This is for the terms visualization for data from "kibana_sample_data_ecommerce"

Is there anything wrong for my configurations?

-Roger

I fixed the problem. My command to create alias is not correct. I changed to:
POST /_aliases
After that, the problem is fixed

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