Passing index name/index pattern dynamically in Kibana 5

Suppose I have created a chart in Kibana 5 and it uses a specific index as as its index pattern (say X).
I want see the same effect on another index using the already created chart.

Can I make the chart configurable so that the index pattern could be passed as a parameter and based on my passed value of the index pattern (X or Y or Z ) the chart display would vary ?

If I had 2 indices that are named with a different pattern but are the same schema, I think what would do to meet the requirement you're looking for is:

  1. Make an alias that is associated with both indices (See
  2. Make an index pattern in Kibana that uses the alias
  3. To make the chart only show data for index X, use a filter for _index:X
  4. To switch the chart to a different index, change the filter to _index:Y or _index:Z

This will only work if all the indices have the same schema. If they really have the same schema though, why not just put them all in the same index and add a custom type field that you can filter on?

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