# Courier Fetch: 30 of 50 shards failed

**URL:** <https://discuss.elastic.co/t/courier-fetch-30-of-50-shards-failed/93466>\
**Category:** Elasticsearch\
**Created:** [July 17, 2017, 10:31pm UTC](https://discuss.elastic.co/t/courier-fetch-30-of-50-shards-failed/93466 "2017-07-17T22:31:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![austinyu0922](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@austinyu0922](https://discuss.elastic.co/u/austinyu0922)\
**Post date:** [July 17, 2017, 10:31pm UTC](https://discuss.elastic.co/t/courier-fetch-30-of-50-shards-failed/93466/1 "2017-07-17T22:31:16Z")

</div>

Hi,

I'm trying to create a scripted field where if the source IP host name is available, that will be shown, otherwise the IP itself will be displayed. Currently, if I were to set the term to just the source IP or just the source host, I do not run into any courier fetch issues. However, when I select my scripted field that contains....

if (doc['srcip\_host.keyword'].value != null)  
return doc['srcip\_host.keyword'].value;  
else return doc['srcip'].value

I'm given a yellow colored notice "Courier Fetch: 30 of 50 shards failed."

My graph is still able to be generated, but now I wonder if the notice means that not all of my data is being visualized. How do I fix this problem?

Thanks!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 17, 2017, 10:33pm UTC](https://discuss.elastic.co/t/courier-fetch-30-of-50-shards-failed/93466/2 "2017-07-17T22:33:05Z")

</div>

Check the logs, it should state why it's failing./

---

<div class="post-metadata">

**Author:** ![austinyu0922](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@austinyu0922](https://discuss.elastic.co/u/austinyu0922)\
**Post date:** [July 18, 2017, 12:37am UTC](https://discuss.elastic.co/t/courier-fetch-30-of-50-shards-failed/93466/3 "2017-07-18T00:37:54Z")

</div>

Hi Mark,

I've checked the logs for both kibana and elasticsearch and there doesn't seem to be any error. The only message generated is....

[2017-07-18T00:34:25,366][WARN][org.elasticsearch.deprecation.common.ParseField] Deprecated field [valueType] used, expected [value\_type] instead

For some reason, this warning message is also affecting one of my other visualizations on another dashboard.  
Thank you

---

<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:** [August 15, 2017, 12:38am UTC](https://discuss.elastic.co/t/courier-fetch-30-of-50-shards-failed/93466/4 "2017-08-15T00:38:04Z")

</div>

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