DEV Community 👩‍💻👨‍💻

vivek atwal
vivek atwal

Posted on

_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)

Join the One Year Club

You can earn this badge by being a registered member of the DEV Community for at least one year. Create an account and get started today.