Hi all,
I'm trying to get my cluster stats out of the .monitoring-* index with NEST and I can't get a result out so I was wondering if it does not allow querying system indices?
TermQuery termQuery = new TermQuery
{
Field = "type",
Value = "cluster_stats"
};
response = await _client.SearchAsync<ElasticClusterStat>(s => s
.From(0)
.Size(1)
.Index(".monitoring-*")
.Query(q => q
.Term(tq => termQuery)
)
);
I set my connection to provide details (from OnRequestCompleted) and I can see the request (JSON) passed and there no hits in the result. When I copy paste my request in my kibana console, I get thousands of hits...
Thanks,