# Logstash plugin error

**URL:** <https://discuss.elastic.co/t/logstash-plugin-error/139231>\
**Category:** Logstash\
**Created:** [July 9, 2018, 7:38pm UTC](https://discuss.elastic.co/t/logstash-plugin-error/139231 "2018-07-09T19:38:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xpaths](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xpaths/32/33170_2.png) [@xpaths](https://discuss.elastic.co/u/xpaths)\
**Post date:** [July 9, 2018, 7:38pm UTC](https://discuss.elastic.co/t/logstash-plugin-error/139231/1 "2018-07-09T19:38:54Z")

</div>

This is the error I was getting:

```
[ERROR][logstash.pipeline] A plugin had an unrecoverable error. Will restart this plugin.
Plugin: <LogStash::Inputs::Elasticsearch hosts=

```

But now that error isn't even showing up, it just keep looping this:

```
[INFO][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"/usr/share/logstash/modules/fb_apache/configuration"}
[INFO][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"/usr/share/logstash/modules/netflow/configuration"}
[INFO][logstash.modules.scaffold] Initializing module {:module_name=>"arcsight", :directory=>"/usr/share/logstash/vendor/bundle/jruby/1.9/gems/x-pack-5.6.4-java/modules/arcsight/configuration"}
[INFO][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[http://logstash_system:xxxxxx@localhost:9200/]}}
[INFO][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://logstash_system:xxxxxx@localhost:9200/, :path=>"/"}
[WARN][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=>"http://logstash_system:xxxxxx@localhost:9200/"}
[INFO][logstash.outputs.elasticsearch] New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>["http://localhost:9200"]}
[INFO][logstash.pipeline] Starting pipeline {"id"=>".monitoring-logstash", "pipeline.workers"=>1, "pipeline.batch.size"=>2, "pipeline.batch.delay"=>5, "pipeline.max_inflight"=>2}
[INFO][logstash.licensechecker.licensereader] Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[http://logstash_system:xxxxxx@localhost:9200/]}}
[INFO][logstash.licensechecker.licensereader] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://logstash_system:xxxxxx@localhost:9200/, :path=>"/"}
[WARN][logstash.licensechecker.licensereader] Restored connection to ES instance {:url=>"http://logstash_system:xxxxxx@localhost:9200/"}
[INFO][logstash.pipeline] Pipeline .monitoring-logstash started
[INFO][logstash.pipeline] Starting pipeline {"id"=>"main", "pipeline.workers"=>8, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>5, "pipeline.max_inflight"=>1000}
[INFO][logstash.pipeline] Pipeline main started
[INFO][logstash.agent] Successfully started Logstash API endpoint {:port=>9600}
[WARN][logstash.agent] stopping pipeline {:id=>".monitoring-logstash"}
[WARN][logstash.agent] stopping pipeline {:id=>"main"}

```

I'm trying to get data from an index using a logstash input file and then use rsyslog after to tag it and send it. Here's the input file (with a couple placeholders and not real values so i can post it here):

```
input {  
elasticsearch {    
hosts => "host:9300"    
#ssl => true    
#ca_file => "/app/elasticsearch-5.2.0/config/x-pack/ca.crt"    
user => "elastic"    
password => "password"    
index => "index"    
query =>'{
    "query":                  
        {"range":{"time" :                               
            {"gte" : "now-15m","lt" : "now"}                           
            }                 
        },
"_source" ["time","alert_name","payload.hits.hits._source.as1","payload.hits.hits._source.ipSrc","payload.hits.hits._source.portSrc",
"payload.hits.hits._source.g1","payload.hits.hits._source.ipDst","payload.hits.hits._source.p2"]
             }'    
size => 5000    
scroll => "2000m"
codec => "json"  
    }
}
filter{
split { field => "[payload][hits][hits]" }
}
 
output {
stdout { codec => line { format => "%{[payload][hits][hits]} %{[alert_name]}"}}
   }
```

---

<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 6, 2018, 7:39pm UTC](https://discuss.elastic.co/t/logstash-plugin-error/139231/2 "2018-08-06T19:39:03Z")

</div>

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