My team would like to keep track of occurrences of shard failures. Is there any way to enable logging of such events?
To clarify, the event that I would like to log is the occurrence of "failed" in the _shards block of the search response.
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},```