List dynamic field mapping

Hello, for my main index I have pre-defined fields using ECS and defining my own expanded fields.

There are however some fields in there that I did not define and they get in via dynamic mapping and get mapped as keyword. I wanna keep defining things, is there any simple way for me to get a list of fields in an index that were created dynamically ?

If not, I guess I will just be writing some software to compare the index template and the response from the mapping API

Not having found a solution I sat down and wrote some dirty code for this.

If anyone needs to solve the same issue, here you go:

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