Accessing _meta (in _mapping) on Kibana

Viewed 120

In my team, the developers store some information about the fields of an index in _meta, inside _mapping. I need to access this info from inside kibana (preferably not using dev tools). Is it possible, and if yes, how? We use ElasticSearch 6.8.

1 Answers

The _meta fields within the mapping are just that -- restricted to the index mapping. The docs themselves don't have access to them -- neither in Kibana Discover/Visualize nor in the Dev Tools.


What I'd do is fill (periodically update, if required) the individual docs' meta fields using, for example, update by query. It's of course data duplication but that's almost inevitable in NOSQL.

Alternatively, if your mapping's meta attributes don't change too often and your indexing approach doesn't include them, you could set up an ingest pipeline which'll update your docs ... upon ingest.

Related