Is it possible to know the weight of a document in terms of bytes, to know the impact index in terms of indexing?
All this in order to better optimize, to know how to configure a mapping of fields in such and such a way?
in my case I have a log which is in JSON format, one line one log.
Not knowing at the beginning the various possible fields that will be in this log, I have it parsed by logstash to convert the json line into fields in elasticsearch, I leave elasticsearch in dynamic mode for the mapping for a trial period so that it make me the basis of all the fields during this period of time.
It will therefore create a mapping for me on the fly.
Then I would like to know if what it generated is wise, see if I can't improve because such and such an element should not be searchable, or put it only keyword etc...
sorry for my bad English