# An unexpected error occurred! {:error=\>#\<Errno::EPIPE: Broken pipe - \<STDOUT\>\>

**URL:** <https://discuss.elastic.co/t/an-unexpected-error-occurred-error-errno-broken-pipe-stdout/138373>\
**Category:** Logstash\
**Created:** [July 3, 2018, 12:00pm UTC](https://discuss.elastic.co/t/an-unexpected-error-occurred-error-errno-broken-pipe-stdout/138373 "2018-07-03T12:00:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunilkumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sunilkumar/32/28675_2.png) [@sunilkumar](https://discuss.elastic.co/u/sunilkumar)\
**Post date:** [July 3, 2018, 12:00pm UTC](https://discuss.elastic.co/t/an-unexpected-error-occurred-error-errno-broken-pipe-stdout/138373/1 "2018-07-03T12:00:59Z")

</div>

Im getting a fatal error while running logstash . this is my logstash log file

[2018-07-03T17:14:51,463][INFO][logstash.modules.scaffold] Initializing module {:module\_name=\>"fb\_apache", :directory=\>"/home/automaton/logtesting/logstash-6.1.0/modules/fb\_apache/configuration"}  
[2018-07-03T17:14:51,482][INFO][logstash.modules.scaffold] Initializing module {:module\_name=\>"netflow", :directory=\>"/home/automaton/logtesting/logstash-6.1.0/modules/netflow/configuration"}  
[2018-07-03T17:14:52,659][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[2018-07-03T17:14:53,865][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"6.1.0"}  
[2018-07-03T17:14:54,772][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>13002}  
[2018-07-03T17:15:05,816][INFO][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=\>{:removed=\>[], :added=\>[[http://localhost:13003/](http://localhost:13003/)]}}  
[2018-07-03T17:15:05,838][INFO][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck\_url=\>[http://localhost:13003/](http://localhost:13003/), :path=\>"/"}  
[2018-07-03T17:15:06,143][WARN][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=\>"[http://localhost:13003/](http://localhost:13003/)"}  
[2018-07-03T17:15:06,206][INFO][logstash.outputs.elasticsearch] ES Output version determined {:es\_version=\>nil}  
[2018-07-03T17:15:06,228][INFO][logstash.outputs.elasticsearch] Using mapping template from {:path=\>nil}  
[2018-07-03T17:15:06,261][INFO][logstash.outputs.elasticsearch] Attempting to install template {:manage\_template=\>{"template"=\>"logstash-_", "settings"=\>{"index.refresh\_interval"=\>"5s"}, "mappings"=\>{"default"=\>{"\_all"=\>{"enabled"=\>true, "omit\_norms"=\>true}, "dynamic\_templates"=\>[{"message\_field"=\>{"path\_match"=\>"message", "match\_mapping\_type"=\>"string", "mapping"=\>{"type"=\>"string", "index"=\>"analyzed", "omit\_norms"=\>true, "fielddata"=\>{"format"=\>"disabled"}}}}, {"string\_fields"=\>{"match"=\>"_", "match\_mapping\_type"=\>"string", "mapping"=\>{"type"=\>"string", "index"=\>"analyzed", "omit\_norms"=\>true, "fielddata"=\>{"format"=\>"disabled"}, "fields"=\>{"raw"=\>{"type"=\>"string", "index"=\>"not\_analyzed", "doc\_values"=\>true, "ignore\_above"=\>256}}}}}, {"float\_fields"=\>{"match"=\>"_", "match\_mapping\_type"=\>"float", "mapping"=\>{"type"=\>"float", "doc\_values"=\>true}}}, {"double\_fields"=\>{"match"=\>"_", "match\_mapping\_type"=\>"double", "mapping"=\>{"type"=\>"double", "doc\_values"=\>true}}}, {"byte\_fields"=\>{"match"=\>"_", "match\_mapping\_type"=\>"byte", "mapping"=\>{"type"=\>"byte", "doc\_values"=\>true}}}, {"short\_fields"=\>{"match"=\>"_", "match\_mapping\_type"=\>"short", "mapping"=\>{"type"=\>"short", "doc\_values"=\>true}}}, {"integer\_fields"=\>{"match"=\>"_", "match\_mapping\_type"=\>"integer", "mapping"=\>{"type"=\>"integer", "doc\_values"=\>true}}}, {"long\_fields"=\>{"match"=\>"_", "match\_mapping\_type"=\>"long", "mapping"=\>{"type"=\>"long", "doc\_values"=\>true}}}, {"date\_fields"=\>{"match"=\>"_", "match\_mapping\_type"=\>"date", "mapping"=\>{"type"=\>"date", "doc\_values"=\>true}}}, {"geo\_point\_fields"=\>{"match"=\>"_", "match\_mapping\_type"=\>"geo\_point", "mapping"=\>{"type"=\>"geo\_point", "doc\_values"=\>true}}}], "properties"=\>{"@timestamp"=\>{"type"=\>"date", "doc\_values"=\>true}, "@version"=\>{"type"=\>"string", "index"=\>"not\_analyzed", "doc\_values"=\>true}, "geoip"=\>{"type"=\>"object", "dynamic"=\>true, "properties"=\>{"ip"=\>{"type"=\>"ip", "doc\_values"=\>true}, "location"=\>{"type"=\>"geo\_point", "doc\_values"=\>true}, "latitude"=\>{"type"=\>"float", "doc\_values"=\>true}, "longitude"=\>{"type"=\>"float", "doc\_values"=\>true}}}}}}}}  
[2018-07-03T17:15:06,315][INFO][logstash.outputs.elasticsearch] New Elasticsearch output {:class=\>"LogStash::Outputs::ElasticSearch", :hosts=\>["[//localhost:13003](https://localhost:13003)"]}  
[2018-07-03T17:15:06,514][INFO][logstash.pipeline] Starting pipeline {:pipeline\_id=\>"main", "pipeline.workers"=\>1, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>5, "pipeline.max\_inflight"=\>125, :thread=\>"#\<Thread:0x1a6c8e2b run\>"}  
[2018-07-03T17:15:07,070][INFO][logstash.pipeline] Pipeline started {"pipeline.id"=\>"main"}  
[2018-07-03T17:15:07,262][INFO][logstash.agent] Pipelines running {:count=\>1, :pipelines=\>["main"]}  
[2018-07-03T17:16:04,121][FATAL][logstash.runner] An unexpected error occurred! {:error=\>#\<Errno::EPIPE: Broken pipe - \>, :backtrace=\>["org/jruby/RubyIO.java:1457:in `write'", "org/jruby/RubyIO.java:1428:in`write'", "/home/automaton/logtesting/logstash-6.1.0/vendor/bundle/jruby/2.3.0/gems/logstash-output-stdout-3.1.3/lib/logstash/outputs/stdout.rb:44:in `block in multi_receive_encoded'", "org/jruby/RubyArray.java:1734:in`each'", "/home/automaton/logtesting/logstash-6.1.0/vendor/bundle/jruby/2.3.0/gems/logstash-output-stdout-3.1.3/lib/logstash/outputs/stdout.rb:43:in `multi_receive_encoded'", "/home/automaton/logtesting/logstash-6.1.0/logstash-core/lib/logstash/outputs/base.rb:90:in`multi\_receive'", "/home/automaton/logtesting/logstash-6.1.0/logstash-core/lib/logstash/output\_delegator\_strategies/single.rb:15:in `block in multi_receive'", "org/jruby/ext/thread/Mutex.java:148:in`synchronize'", "/home/automaton/logtesting/logstash-6.1.0/logstash-core/lib/logstash/output\_delegator\_strategies/single.rb:14:in `multi_receive'", "/home/automaton/logtesting/logstash-6.1.0/logstash-core/lib/logstash/output_delegator.rb:50:in`multi\_receive'", "/home/automaton/logtesting/logstash-6.1.0/logstash-core/lib/logstash/pipeline.rb:487:in `block in output_batch'", "org/jruby/RubyHash.java:1343:in`each'", "/home/automaton/logtesting/logstash-6.1.0/logstash-core/lib/logstash/pipeline.rb:486:in `output_batch'", "/home/automaton/logtesting/logstash-6.1.0/logstash-core/lib/logstash/pipeline.rb:438:in`worker\_loop'", "/home/automaton/logtesting/logstash-6.1.0/logstash-core/lib/logstash/pipeline.rb:393:in `block in start\_workers'"]}

My config file is :

input {  
file {  
path =\> "/home/automaton/logtesting/logstash-6.1.0/bin/repoprolog.log"  
start\_position =\> "beginning"  
codec =\> multiline  
{  
pattern =\> "%{DATE}\_%{TIME} - "  
negate =\> true  
what =\> "previous"  
auto\_flush\_interval =\> 1  
charset =\> "ISO-8859-1"  
}  
sincedb\_path =\> "/dev/null"  
ignore\_older =\> 0  
}  
}

filter {

grok {  
match =\> {"message" =\> "%{DATE}\_%{TIME} - %{POSINT:value} %{DATA:status} %{WORD:result} %{GREEDYDATA:final}"}  
}  
}

output {

elasticsearch {  
hosts =\> ["localhost:13003"]  
}

stdout {  
codec =\> rubydebug  
}  
}

---

<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 31, 2018, 12:01pm UTC](https://discuss.elastic.co/t/an-unexpected-error-occurred-error-errno-broken-pipe-stdout/138373/2 "2018-07-31T12:01:03Z")

</div>

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