Hi,
How do i get the total size of data received at my elasticsearch cluster for last 12 hours?
_stats API give total size of the cluster, but i need to filter out for only last 12 hours data received by elasticsearch
what is the query,or any specific API?
If you are looking for the size in bytes, it's not really doable unless you added previously the mapper size plugin.
If you are using time based indices you can may be try to guess what was the size for the last 2 days using index stats API.
Another basic solution would be to compute the average size of a typical document, count the number of documents during the period you want and multiply by this average size.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.