Programmatically Change Kibana Index Pattern Format Type

Good day,

I am trying to find a way to programmatically change a field type in Kibana from a String to a Url format (not a elasticsearch index pattern).

This means I need a way to define the "URL template" as well as the "Label template".

Is anyone aware of a way to accomplish this via the API, I haven't been able to find it on the forums or via Google.

I am running Elastic 7.4 and here is a link to the field formatters in question:

Thanks for any help!

There isn't an officially provided way to do this but there might be another way -

Index patterns are stored as saved objects (documents) in the .kibana index on your elasticsearch cluster. If you look through these documents you'll find one related to your index pattern. You could also look at exporting your saved objects and examine them with a text editor. If you're patient and clever you might be able to find a programmatic way to modify these documents.

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