Get Total Records Count

Hi,

How do I get the count of the number of records under my account? Also, counts for individual indices? This is through Java API.

Thanks in Advance.

Hi there,

you can use the monitoring API. More specifically you want to use the usage and usage per index endpoints. To be able to use those rest endpoints you need to use the monitoring API key that you can find on your dashboard:

However there are no Java client, but the API is pretty accessible. We use it to display the charts on the dashboard and it’s fairly easy to use.

Cheers,

1 Like