Sum index size based on unique identifier

Kibana visualizations can't access the meta information about indices directly. A workaround for that I can think of is to have a script running somewhere via cronjob which is fetching the index information (documents, size, customer id, ...) and indexing them again as regular documents into a separate index. Then Kibana will be able to build visualizations based on this new index.