How to add _size mapping to index legacy template in elasticsearch?

Hi friends

I have installed size mapping plugin and I added it to Kibana meta fields too

I could successfully enable "_size" in Elasticsearch via bellow command and see the result in kibana

PUT logstash-2023-06-06
{
  "mappings": {
    "_size": {
      "enabled": true
    }
  }
} 

but I could just enable size field in a single upcoming index, how to enable _size mapping in all of my upcoming indices and legacy index template?
should I add it in Kibana legacy index template or elasticsearch?

Hi @Amirhossein_eidy

Duplicate Question. This question has already been answered.

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