elastic / elastic/logstash

Passing CSV data to logstash in windows 10 is not working

Open
#7,906 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
14.9k
Forks
3.5k
Avg merge
19h 14m
Merged PRs (30d)
63

Description

Installed elasticsearch, logstash and kibana
Elasticsearch running, proved with different data inputs
Logstash is working, could display messages using STDOUT
Kibana is running, I can monitor other messages

- Version: 5.5.1
- Operating System: Windows 10
- Config File: see bellow
- Sample Data: attached
- Steps to Reproduce: rename d.csv.txt to d.csv and just run logstash with this configuration

**Config file:**
input {
file {
path => "C:/Users/Public/elasticsearch/d.csv"
start_position => "beginning"
#sincedb_path => "C:/Elastic/logstash-5.5.1/data/plugins/inputs/file/.sincedb"
}
}
filter {
csv {
separator => ","
columns => ["Name"]
}
}
output {
elasticsearch {
hosts => "http://localhost:9200"
index => "demo"
#manage_template => false
}
#stdout { codec => rubydebug }
}

Sample data
[d.csv.txt](https://github.com/elastic/logstash/files/1200430/d.csv.txt)

Logstash log

[log.tmp.txt](https://github.com/elastic/logstash/files/1200460/log.tmp.txt)

And the error is all about:
Error in reactor loop escaped: Bad file descriptor - Bad file descriptor (Errno::EBADF)
[2017-08-04T15:10:50,671][DEBUG][logstash.agent ] 2017-08-04 15:10:50 +0200: Listen loop error: #

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.