# Logstash not loading csv file to elasticsearch

**URL:** <https://discuss.elastic.co/t/logstash-not-loading-csv-file-to-elasticsearch/206651>\
**Category:** Logstash\
**Created:** [November 5, 2019, 5:30pm UTC](https://discuss.elastic.co/t/logstash-not-loading-csv-file-to-elasticsearch/206651 "2019-11-05T17:30:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gowtham\_Gandham](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gowtham_gandham/32/45582_2.png) [@Gowtham\_Gandham](https://discuss.elastic.co/u/Gowtham_Gandham)\
**Post date:** [November 5, 2019, 5:30pm UTC](https://discuss.elastic.co/t/logstash-not-loading-csv-file-to-elasticsearch/206651/1 "2019-11-05T17:30:08Z")

</div>

```
input {
	file {
path => "/home/sigma/Desktop/docker-elk/logstash/*.csv"
start_position => "beginning"
	sincedb_path => "/dev/null"
  }
}

## Add your filters / logstash plugins configuration here
filter {
  csv {
		separator => ","
    columns => ["record_id", "duration", "src_bytes", "dest_bytes"]
 }
}

output {
	elasticsearch {
		hosts => ["http://elasticsearch:9200"]
		action => "index"
		index => "network"
	}
}
```

---

<div class="post-metadata">

**Author:** ![Prashant\_Kumar3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashant_kumar3/32/48977_2.png) [@Prashant\_Kumar3](https://discuss.elastic.co/u/Prashant_Kumar3)\
**Post date:** [November 8, 2019, 2:56pm UTC](https://discuss.elastic.co/t/logstash-not-loading-csv-file-to-elasticsearch/206651/2 "2019-11-08T14:56:49Z")

</div>

Hello @Gowtham_Gandham ,  
As I can see you haven't mentioned the csv name. I can see 2 mistakes in your conf file.

1. Please provide the name of csv file,
2. Please include csv codec in your output stdout.  
also you don't need to mention action

---

<div class="post-metadata">

**Author:** ![Gowtham\_Gandham](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gowtham_gandham/32/45582_2.png) [@Gowtham\_Gandham](https://discuss.elastic.co/u/Gowtham_Gandham)\
**Post date:** [November 9, 2019, 5:17pm UTC](https://discuss.elastic.co/t/logstash-not-loading-csv-file-to-elasticsearch/206651/3 "2019-11-09T17:17:25Z")

</div>

1. i have given csv file name and running docker compose it is not giving any error but data is not creating index to elastic search

---

<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 7, 2019, 5:29pm UTC](https://discuss.elastic.co/t/logstash-not-loading-csv-file-to-elasticsearch/206651/4 "2019-12-07T17:29:49Z")

</div>

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