# Where are shard relocations and failures logged?

**URL:** <https://discuss.elastic.co/t/where-are-shard-relocations-and-failures-logged/269942>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring\
**Created:** [April 12, 2021, 7:16pm UTC](https://discuss.elastic.co/t/where-are-shard-relocations-and-failures-logged/269942 "2021-04-12T19:16:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_Merritt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scott_merritt/32/80579_2.png) [@Scott\_Merritt](https://discuss.elastic.co/u/Scott_Merritt)\
**Post date:** [April 12, 2021, 7:16pm UTC](https://discuss.elastic.co/t/where-are-shard-relocations-and-failures-logged/269942/1 "2021-04-12T19:16:27Z")

</div>

Hi,

We would like to detect when a shard fails, begins relocating off of a node, and finishes relocating. We do use the metrics that show the count of these active operations, but would like to additionally know the specific shard, index, and nodes involved.

I am aware that we can enable logging at a per-java-package level, but I don't know which logs might have this information. Are there any specific logs that capture this information?

We're using ES 5.6 temporarily, and will be on 7.9 soon.

Thank you!

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [April 12, 2021, 7:26pm UTC](https://discuss.elastic.co/t/where-are-shard-relocations-and-failures-logged/269942/2 "2021-04-12T19:26:21Z")

</div>

Shard failures are logged at `WARN` in the usual server logs. I don't know of any logging specifically for the start/stop of relocations, although you might be able to deduce something from `DEBUG` or `TRACE` logging. The usual practice seems to be to poll `GET _recovery?active_only`. See also this open issue:

> <https://github.com/elastic/elasticsearch/issues/60747>
>
> Sometimes it is useful to know how shards have moved around the cluster on the way to their current locations. Today...

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 10, 2021, 7:27pm UTC](https://discuss.elastic.co/t/where-are-shard-relocations-and-failures-logged/269942/3 "2021-05-10T19:27:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
