cancel
Showing results for 
Search instead for 
Did you mean: 

tracking shard failures on catalog search

tracking shard failures on catalog search

Is there any way to log the occurrences of  shard failures on catalog search?

When an elasticsearch is configured as the search backend, it sometimes returns a shard failure on a search API request. 

I would like to keep track of this failure as a measurement of service level.

I have already made an inquiry about this matter on elasticsearch and the response was that there is no such feature.

The shard failures are tracked on the elasticsearch api response (see "failed" below), so it should in theory possible to make magento record such api response.

{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 2,
"successful" : 2,
"failed" : 0
}

Anyone know how this could be achieved?