How to obtain _type for Canvas?

Hi! I have 5 different Elasticsearch indices in a Kibana index pattern. I made a pie chart visualization according to their _type (that's how I distinguish them). Now I'm trying to recreate the same pie chart in Canvas, but Canvas will display all the available columns but the _type column.

Is there any way to obtain _type ? maybe lucene query language or ESSQL?

Canvas does not support the _type field. Mapping types were deprecated in v6.0 and will be removed in v7.0 (see https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html).

There's a great example showing how you can create a custom type field and re-index your documents here: https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html#_custom_type_field_2. Then you can use your new custom type field with Canvas.

1 Like

Thanks a lot! I'll just have to create the dashboards, visualizations with the new indices.

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