Rename all index pattern name

Hello All,

I'd like to rename my index pattern,what would be best way to do it correctly.I just want that duplicate dashboards or visuals are not created.

current index pattern cahnged index pattern(Rename to this)
tcs-monitor-usecase1-> tcs-monitoring-usecase1
tcs-monitor=usecase2-> tcs-monitoring-usecase2

I'm not sure how this can be done in saved object,does it require me to export both index pattern and dashboard and update or only index pattern should only be exported and updated with current name?

Any guidance or help would be appriciated.



You could do this with the reindex API

After that you have to update your dashboards with the new name.

Hi @mverbeek ,

Thanx for looking into this,below steps worked without any conflicts.

1)Downloading the export file with index pattern and dashboard.
2)Open the export file and edit
3)replace/rename -monitor- (old index pattern) with -monitoring-(new index pattern)
4)After renaming save the object
5)now import the ndjson file

Note :The latest Index template refering the latest index pattern is to be executed in devtools before above steps.

Useful Link: How to rename index patterns in Kibana

Ah, I thought you wanted to change the name of the index :sweat_smile:

You can also put a alias on top of the index so you can move stuff behind the screen without the need to change your visualizations.

Glad it all worked out.

Hi @mverbeek ,

Going forward for prod and quality I'd like to have my index pattern to be cahnged like:



Will the same approch as above will work fine?,whts ur opinion. Is this the way its actually done
,or this is just work around.
This might be quite common and not sure whts the best way its done.For now the link was saviour.Going fwd all the Enviorments would have specific index pattern ex:Test,Quality,Prod with there index patterns.

I didnt get what exactly you meant by this:
You can also put a alias on top of the index so you can move stuff behind the screen without the need to change your visualizations


Naming is very much a thing that is decided internally by the team or company.

You can create a alias, which gives you the option to point searches and visualizations. The alias will redirect it to the indexes. So it makes changing things behind the alias much simpler if you ever decide to do so again.

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