I have URI like
../discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now%2Fd,to:now%2Fd))&_a=(columns:!(_source),filters:!(),index:{index},interval:auto,query:(language:kuery,query:%27%27),sort:!(!(created_at,desc)))
at Kibana and it returns me hits total
and hits per every half hour printed at bar graph.
If I'm right every bar returns difference between values per half hour.
I want to get plain data about it via command line.
What API Elasticsearch endpoint I should use to get such data?
I've tried to store ${index_name}/_stats/docs
data but it doesn't match with Kibana graph data.
Endpoint /metrics
has been used but it has different from Kibana graph values too.