DEV Community

vivek atwal
vivek atwal

Posted on

3 3

_stats in elasticsearch

Interpretation of right data give you a lot of insights, and how to fetch those data plays an important role, Here we are going to see how to use _stats API to retrieve stats data.

GET my-index/_stats/
Enter fullscreen mode Exit fullscreen mode

This API presents you with lots of data and interpreting the data and creating a meaning out of it, comes with right learning.

We are mainly going to focus on getting specific data from _stats.

Objects from _stats output can be divided in 3 groups:

  • Indexing includes ==> indexing, merge, refresh, flush, fielddata, segments, translog
  • Searching includes ==> get, search, query_cache, request_cache
  • others ==> docs, store, warmer, completion, recovery

Instead of blindly typing <my-index>/_stats it is very important to access specific data and limited data to focus on interpretation.

To know about indexing, try GET my-index/_stats/indexing

Top comments (0)

Heroku

This site is powered by Heroku

Heroku was created by developers, for developers. Get started today and find out why Heroku has been the platform of choice for brands like DEV for over a decade.

Sign Up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay