# Filebeat / Logstash pipeline exception parsing csv

**URL:** <https://discuss.elastic.co/t/filebeat-logstash-pipeline-exception-parsing-csv/212896>\
**Category:** Logstash\
**Created:** [December 23, 2019, 9:06pm UTC](https://discuss.elastic.co/t/filebeat-logstash-pipeline-exception-parsing-csv/212896 "2019-12-23T21:06:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![galexander87](https://avatars.discourse-cdn.com/v4/letter/g/ea666f/32.png) [@galexander87](https://discuss.elastic.co/u/galexander87)\
**Post date:** [December 23, 2019, 9:06pm UTC](https://discuss.elastic.co/t/filebeat-logstash-pipeline-exception-parsing-csv/212896/1 "2019-12-23T21:06:01Z")

</div>

I am trying to send some reports in CSV format to logstash and then Elasticsearch. I am getting this pipeline error:

> ```
> [WARN] [io.netty.channel.DefaultChannelPipeline] An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means he last handler in the pipeline did not handle the exception. 
> java.net.SocketEception: Connection reset
> ...
> 
> ```

sample.csv

> ```
> Title,Author,Subject,Pages,Publication Date
> Test,John,Shipping,42,16 Dec 2018
> 
> ```

filebeat.yml

> ```
> filebeat.inputs:
> - type: log
> paths:
> - /path/to/input.csv
> fields: 
> report_type: book
> output.logstash:
> hosts: ["10.0.0.1:5044"]
> processors:
> - decode_csv_fields:
> fields:
> message: decoded.csv
> 
> ```

logstast-pipeline.conf

> ```
> input {
> beats {
> port => "5044"
> host => "10.0.0.1"
> }
> }
> filter {
> csv {
> autodetect_column_names => true
> separator => ","
> }
> }
> output {
> elasticsearch {
> hosts => ["http://10.0.0.1:9200"]
> index => bookreports-%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYY.MM.dd}"
> }
> }
> 
> ```

---

<div class="post-metadata">

**Author:** ![galexander87](https://avatars.discourse-cdn.com/v4/letter/g/ea666f/32.png) [@galexander87](https://discuss.elastic.co/u/galexander87)\
**Post date:** [January 13, 2020, 3:14pm UTC](https://discuss.elastic.co/t/filebeat-logstash-pipeline-exception-parsing-csv/212896/2 "2020-01-13T15:14:31Z")

</div>

Solved this. Was a network issue. The firewall was closing the socket.

---

<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:** [February 10, 2020, 3:14pm UTC](https://discuss.elastic.co/t/filebeat-logstash-pipeline-exception-parsing-csv/212896/3 "2020-02-10T15:14:36Z")

</div>

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