How to change index pattern used by visualization/widget in kibana dashboard in kibana 7.17.9?


  1. click on All type>>>Aggregation based>>>data table>>
  2. select index pattern(index-pattern1) from the list(index-pattern1, index-pattern2, index-pattern3)
  3. save the widget.

Now I want to change the index-pattern1 used by the widget. It should use index pattern2.

Hi @Daemon1

unfortunately Aggregation Based visualization editor doesn't let the user change its datasource so easily.
You can use Lens (which is available since 7.10.x) who let you switch any datasource on the fly.

Hi @Daemon1 ,
I'm not able to provide you with an example at the moment, but when you go to saved objects and export the visualisation, you will see the id of the index-pattern used. Replace this id with the id of your preferred index-patterns and upload it to your saved objects.
This should do the trick.