# Exception logging, shard failures multisearch

**URL:** <https://discuss.elastic.co/t/exception-logging-shard-failures-multisearch/13953>\
**Category:** Elasticsearch\
**Created:** [October 15, 2013, 12:23pm UTC](https://discuss.elastic.co/t/exception-logging-shard-failures-multisearch/13953 "2013-10-15T12:23:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_van\_der\_Weerd](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@Peter\_van\_der\_Weerd](https://discuss.elastic.co/u/Peter_van_der_Weerd)\
**Post date:** [October 15, 2013, 12:23pm UTC](https://discuss.elastic.co/t/exception-logging-shard-failures-multisearch/13953/1 "2013-10-15T12:23:47Z")

</div>

Hi All,

Main problem:  
Recently we started testing the #succesful shards==#total shards while  
doing a multisearch.  
After some time the application alarms that a multisearch had failing  
shards.

It seems to be time related, since, if we repeat the query, it succeeds.  
No errors in the logs, just 1 failed shard was mentioned in the response.  
The cluster is green at the time of query.

Exception logging  
I noticed that I have to set the log level to TRACE to get exception  
logging.  
To me this seems a bit weird, because exception logging is very important,  
and TRACE has the same level as DEBUG...  
So, now I not only get my errors logged, but also I also get lots of  
messages that I didn't ask for ☹

After putting the log level to TRACE, we still don't see errors in the log.  
There is only the #failed shards==1 in the response...

Any ideas?

Kind regards,  
Peter

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Peter\_van\_der\_Weerd](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@Peter\_van\_der\_Weerd](https://discuss.elastic.co/u/Peter_van_der_Weerd)\
**Post date:** [October 15, 2013, 2:33pm UTC](https://discuss.elastic.co/t/exception-logging-shard-failures-multisearch/13953/2 "2013-10-15T14:33:28Z")

</div>

> Update: I can reproduce the behavior with a multisearch with only 1 query.  
> (with a lot of requesting clients)
> 
> I know the #hits that the query returns when it doesn't fail: 44  
> When the multisearch reports 1 failing shard, the #total hits is correct  
> number. (44)  
> When I set the size of the query to be \>= the #total hits, I see the  
> results from the last shard missing.
> 
> Also: there is no "failures": element in the ressponse.
> 
> I forgot to mention: I'm using ES 0.90.1

Peter

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 2:12am UTC](https://discuss.elastic.co/t/exception-logging-shard-failures-multisearch/13953/3 "2017-07-06T02:12:23Z")

</div>


