# A plugin had an unrecoverable error. Will restart this plugin（logstash input elasicsearch）

**URL:** <https://discuss.elastic.co/t/a-plugin-had-an-unrecoverable-error-will-restart-this-plugin-logstash-input-elasicsearch/157207>\
**Category:** Logstash\
**Created:** [November 18, 2018, 4:21am UTC](https://discuss.elastic.co/t/a-plugin-had-an-unrecoverable-error-will-restart-this-plugin-logstash-input-elasicsearch/157207 "2018-11-18T04:21:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![showmeall](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/showmeall/32/29507_2.png) [@showmeall](https://discuss.elastic.co/u/showmeall)\
**Post date:** [November 18, 2018, 4:21am UTC](https://discuss.elastic.co/t/a-plugin-had-an-unrecoverable-error-will-restart-this-plugin-logstash-input-elasicsearch/157207/1 "2018-11-18T04:21:35Z")

</div>

we use logstash 6.5.0 for ES reindex , reindex ES 2.4 TO ES 6.2; but always get a problem, the detail info as fllow:  
[ERROR] 2018-11-18 12:15:21.938 [[main]\<elasticsearch] pipeline - A plugin had an unrecoverable error. Will restart this plugin.  
Pipeline\_id:main  
Plugin: \<LogStash::Inputs::Elasticsearch size=\>10000, hosts=\>["10.10.10.100:9200"], query=\>"{"query": {"filtered": { "query": {"term": { "\_type": "domain" } },"filter" : {"range": {"lastupdatetime": {"gte": "2015-09-01 00:00:00","lt": "2015-10-01 00:00:00"}}}}}}", scroll=\>"5m", index=\>"test", docinfo=\>true, id=\>"e1dc09e8947eeb59b51f5fabdea40608d484466d84f0d65bcd133b730cd3c18f", enable\_metric=\>true, codec=\>\<LogStash::Codecs::JSON id=\>"json\_226934a8-12cc-4a7c-a2ca-5604407e8e07", enable\_metric=\>true, charset=\>"UTF-8"\>, docinfo\_target=\>"@metadata", docinfo\_fields=\>["\_index", "\_type", "\_id"], ssl=\>false\>  
Error: end of file reached  
Exception: Faraday::ConnectionFailed  
Stack:

due to this issue , can not finished reindex , it always restart and index the old data again and again,  
it is bug for this plugin , or it is ES problem? please help us .  
by the way , the ES have 10 billion docs and 10 TB store data。

---

<div class="post-metadata">

**Author:** ![showmeall](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/showmeall/32/29507_2.png) [@showmeall](https://discuss.elastic.co/u/showmeall)\
**Post date:** [November 18, 2018, 4:25am UTC](https://discuss.elastic.co/t/a-plugin-had-an-unrecoverable-error-will-restart-this-plugin-logstash-input-elasicsearch/157207/2 "2018-11-18T04:25:32Z")

</div>

logstash config as follow  
input {  
elasticsearch {  
hosts =\> ["10.10.10.100:9200"]  
index =\> "test2"  
query =\> '{"query": {"filtered": { "query": {"term": { "\_type": "test2" } },"filter" : {"range": {"lastupdatetime": {"gte": "2015-09-01 00:00:00","lt": "2015-10-01 00:00:00"}}}}}}'  
size =\> 10000  
scroll =\> "5m"  
docinfo =\> true  
}  
}  
filter {  
mutate {  
remove\_field =\> ["@timestamp", "@version"] #过滤掉logstash 自己加上的字段  
}  
}  
output {  
elasticsearch {  
hosts =\> ["10.10.10.200:9200"]  
index =\> "test2"  
document\_type =\> "%{[@metadata][\_type]}"  
document\_id =\> "%{[@metadata][\_id]}"  
}

---

<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:** [December 16, 2018, 4:25am UTC](https://discuss.elastic.co/t/a-plugin-had-an-unrecoverable-error-will-restart-this-plugin-logstash-input-elasicsearch/157207/3 "2018-12-16T04:25:34Z")

</div>

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