# Logstash can't load the logs to ES, just looping and do nothing

**URL:** <https://discuss.elastic.co/t/logstash-cant-load-the-logs-to-es-just-looping-and-do-nothing/155282>\
**Category:** Logstash\
**Created:** [November 4, 2018, 3:50am UTC](https://discuss.elastic.co/t/logstash-cant-load-the-logs-to-es-just-looping-and-do-nothing/155282 "2018-11-04T03:50:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KWLam](https://avatars.discourse-cdn.com/v4/letter/k/90ced4/32.png) [@KWLam](https://discuss.elastic.co/u/KWLam)\
**Post date:** [November 4, 2018, 3:50am UTC](https://discuss.elastic.co/t/logstash-cant-load-the-logs-to-es-just-looping-and-do-nothing/155282/1 "2018-11-04T03:50:08Z")

</div>

Hi,

I am a beginner, try to load logs using logstash 6.2.4, sometime work, sometime just loop there and do nothing, normal log as below:

no error message at all, is my logstash issue? .conf file issue? (but it work before). or ES problem? ES setup as default setting only.

[2018-11-04T11:20:21,530][INFO][logstash.modules.scaffold] Initializing module {:module\_name=\>"fb\_apache", :directory=\>"C:/elastic/logstash-6.2.4/modules/fb\_apache/configuration"}  
[2018-11-04T11:20:21,560][INFO][logstash.modules.scaffold] Initializing module {:module\_name=\>"netflow", :directory=\>"C:/elastic/logstash-6.2.4/modules/netflow/configuration"}  
[2018-11-04T11:20:21,905][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[2018-11-04T11:20:22,990][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"6.2.4"}  
[2018-11-04T11:20:23,920][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}  
[2018-11-04T11:20:32,048][INFO][logstash.pipeline] Starting pipeline {:pipeline\_id=\>"main", "pipeline.workers"=\>4, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>50}  
[2018-11-04T11:20:32,572][INFO][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=\>{:removed=\>, :added=\>[[http://localhost:9200/](http://localhost:9200/)]}}  
[2018-11-04T11:20:32,587][INFO][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck\_url=\>[http://localhost:9200/](http://localhost:9200/), :path=\>"/"}  
[2018-11-04T11:20:32,806][WARN][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=\>"[http://localhost:9200/](http://localhost:9200/)"}  
[2018-11-04T11:20:32,939][INFO][logstash.outputs.elasticsearch] ES Output version determined {:es\_version=\>6}  
[2018-11-04T11:20:32,955][WARN][logstash.outputs.elasticsearch] Detected a 6.x and above cluster: the `type` event field won't be used to determine the document \_type {:es\_version=\>6}  
[2018-11-04T11:20:32,970][INFO][logstash.outputs.elasticsearch] Using mapping template from {:path=\>nil}  
[2018-11-04T11:20:33,002][INFO][logstash.outputs.elasticsearch] Attempting to install template {:manage\_template=\>{"template"=\>"logstash-_", "version"=\>60001, "settings"=\>{"index.refresh\_interval"=\>"5s"}, "mappings"=\>{"default"=\>{"dynamic\_templates"=\>[{"message\_field"=\>{"path\_match"=\>"message", "match\_mapping\_type"=\>"string", "mapping"=\>{"type"=\>"text", "norms"=\>false}}}, {"string\_fields"=\>{"match"=\>"_", "match\_mapping\_type"=\>"string", "mapping"=\>{"type"=\>"text", "norms"=\>false, "fields"=\>{"keyword"=\>{"type"=\>"keyword", "ignore\_above"=\>256}}}}}], "properties"=\>{"@timestamp"=\>{"type"=\>"date"}, "@version"=\>{"type"=\>"keyword"}, "geoip"=\>{"dynamic"=\>true, "properties"=\>{"ip"=\>{"type"=\>"ip"}, "location"=\>{"type"=\>"geo\_point"}, "latitude"=\>{"type"=\>"half\_float"}, "longitude"=\>{"type"=\>"half\_float"}}}}}}}}  
[2018-11-04T11:20:33,062][INFO][logstash.outputs.elasticsearch] New Elasticsearch output {:class=\>"LogStash::Outputs::ElasticSearch", :hosts=\>["[http://localhost:9200](http://localhost:9200)"]}  
[2018-11-04T11:20:33,417][INFO][logstash.filters.geoip] Using geoip database {:path=\>"C:/elastic/logstash-6.2.4/vendor/bundle/jruby/2.3.0/gems/logstash-filter-geoip-5.0.3-java/vendor/GeoLite2-City.mmdb"}  
[2018-11-04T11:20:34,992][INFO][logstash.pipeline] Pipeline started successfully {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x56c9ad8b run\>"}  
[2018-11-04T11:20:35,101][INFO][logstash.agent] Pipelines running {:count=\>1, :pipelines=\>["main"]}

---

<div class="post-metadata">

**Author:** ![KWLam](https://avatars.discourse-cdn.com/v4/letter/k/90ced4/32.png) [@KWLam](https://discuss.elastic.co/u/KWLam)\
**Post date:** [November 4, 2018, 3:52am UTC](https://discuss.elastic.co/t/logstash-cant-load-the-logs-to-es-just-looping-and-do-nothing/155282/2 "2018-11-04T03:52:53Z")

</div>

here is the debug logs :

==== loop here - do nothing =====

[2018-11-03T17:53:55,467][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ParNew"}  
[2018-11-03T17:53:55,467][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ConcurrentMarkSweep"}  
[2018-11-03T17:53:58,186][DEBUG][logstash.pipeline] Pushing flush onto pipeline {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x21acfc92 sleep\>"}  
[2018-11-03T17:54:00,497][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ParNew"}  
[2018-11-03T17:54:00,497][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ConcurrentMarkSweep"}  
[2018-11-03T17:54:03,200][DEBUG][logstash.pipeline] Pushing flush onto pipeline {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x21acfc92 sleep\>"}  
[2018-11-03T17:54:05,529][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ParNew"}  
[2018-11-03T17:54:05,544][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ConcurrentMarkSweep"}  
[2018-11-03T17:54:08,109][DEBUG][logstash.inputs.file] \_globbed\_files: C:/elastic/ddilogs/threats2018\*.csv: glob is: ["C:/elastic/ddilogs/threats201807.csv", "C:/elastic/ddilogs/threats201808.csv", "C:/elastic/ddilogs/threats201809.csv", "C:/elastic/ddilogs/threats201810.csv"]  
[2018-11-03T17:54:08,200][DEBUG][logstash.pipeline] Pushing flush onto pipeline {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x21acfc92 sleep\>"}  
[2018-11-03T17:54:10,560][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ParNew"}  
[2018-11-03T17:54:10,562][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ConcurrentMarkSweep"}  
[2018-11-03T17:54:13,200][DEBUG][logstash.pipeline] Pushing flush onto pipeline {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x21acfc92 sleep\>"}  
[2018-11-03T17:54:15,569][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ParNew"}  
[2018-11-03T17:54:15,570][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ConcurrentMarkSweep"}  
[2018-11-03T17:54:18,201][DEBUG][logstash.pipeline] Pushing flush onto pipeline {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x21acfc92 sleep\>"}  
[2018-11-03T17:54:20,577][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ParNew"}  
[2018-11-03T17:54:20,578][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ConcurrentMarkSweep"}  
[2018-11-03T17:54:23,217][DEBUG][logstash.pipeline] Pushing flush onto pipeline {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x21acfc92 sleep\>"}  
[2018-11-03T17:54:23,567][DEBUG][logstash.inputs.file] \_globbed\_files: C:/elastic/ddilogs/threats2018\*.csv: glob is: ["C:/elastic/ddilogs/threats201807.csv", "C:/elastic/ddilogs/threats201808.csv", "C:/elastic/ddilogs/threats201809.csv", "C:/elastic/ddilogs/threats201810.csv"]  
[2018-11-03T17:54:25,591][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ParNew"}  
[2018-11-03T17:54:25,591][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ConcurrentMarkSweep"}  
[2018-11-03T17:54:28,218][DEBUG][logstash.pipeline] Pushing flush onto pipeline {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x21acfc92 sleep\>"}  
[2018-11-03T17:54:30,602][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ParNew"}  
[2018-11-03T17:54:30,602][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ConcurrentMarkSweep"}  
[2018-11-03T17:54:33,228][DEBUG][logstash.pipeline] Pushing flush onto pipeline {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x21acfc92 sleep\>"}  
[2018-11-03T17:54:35,623][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ParNew"}  
[2018-11-03T17:54:35,624][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ConcurrentMarkSweep"}  
[2018-11-03T17:54:38,229][DEBUG][logstash.pipeline] Pushing flush onto pipeline {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x21acfc92 sleep\>"}  
[2018-11-03T17:54:38,883][DEBUG][logstash.inputs.file] \_globbed\_files: C:/elastic/ddilogs/threats2018\*.csv: glob is: ["C:/elastic/ddilogs/threats201807.csv", "C:/elastic/ddilogs/threats201808.csv", "C:/elastic/ddilogs/threats201809.csv", "C:/elastic/ddilogs/threats201810.csv"]  
[2018-11-03T17:54:40,633][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ParNew"}  
[2018-11-03T17:54:40,633][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ConcurrentMarkSweep"}  
[2018-11-03T17:54:43,234][DEBUG][logstash.pipeline] Pushing flush onto pipeline {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x21acfc92 sleep\>"}  
[2018-11-03T17:54:45,641][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ParNew"}  
[2018-11-03T17:54:45,641][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ConcurrentMarkSweep"}  
[2018-11-03T17:54:48,241][DEBUG][logstash.pipeline] Pushing flush onto pipeline {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x21acfc92 sleep\>"}  
[2018-11-03T17:54:50,655][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ParNew"}  
[2018-11-03T17:54:50,655][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ConcurrentMarkSweep"}  
[2018-11-03T17:54:53,255][DEBUG][logstash.pipeline] Pushing flush onto pipeline {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x21acfc92 sleep\>"}  
[2018-11-03T17:54:54,196][DEBUG][logstash.inputs.file] \_globbed\_files: C:/elastic/ddilogs/threats2018\*.csv: glob is: ["C:/elastic/ddilogs/threats201807.csv", "C:/elastic/ddilogs/threats201808.csv", "C:/elastic/ddilogs/threats201809.csv", "C:/elastic/ddilogs/threats201810.csv"]  
[2018-11-03T17:54:55,675][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ParNew"}  
[2018-11-03T17:54:55,675][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ConcurrentMarkSweep"}  
[2018-11-03T17:54:58,268][DEBUG][logstash.pipeline] Pushing flush onto pipeline {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x21acfc92 sleep\>"}

---

<div class="post-metadata">

**Author:** ![KWLam](https://avatars.discourse-cdn.com/v4/letter/k/90ced4/32.png) [@KWLam](https://discuss.elastic.co/u/KWLam)\
**Post date:** [November 4, 2018, 6:08am UTC](https://discuss.elastic.co/t/logstash-cant-load-the-logs-to-es-just-looping-and-do-nothing/155282/3 "2018-11-04T06:08:24Z")

</div>

switch from logstash version 6.2.4 to version 6.4.2, it work.  
However, I was using 6.4.2, it didn't work out. someone suggest to switch 6.2.4.

something wrong somewhere? any advise?

---

<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 2, 2018, 6:08am UTC](https://discuss.elastic.co/t/logstash-cant-load-the-logs-to-es-just-looping-and-do-nothing/155282/4 "2018-12-02T06:08:41Z")

</div>

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