# Sending CSV data to Logstash

**URL:** <https://discuss.elastic.co/t/sending-csv-data-to-logstash/79376>\
**Category:** Logstash\
**Created:** [March 21, 2017, 9:51am UTC](https://discuss.elastic.co/t/sending-csv-data-to-logstash/79376 "2017-03-21T09:51:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prakash1243](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@prakash1243](https://discuss.elastic.co/u/prakash1243)\
**Post date:** [March 21, 2017, 9:51am UTC](https://discuss.elastic.co/t/sending-csv-data-to-logstash/79376/1 "2017-03-21T09:51:13Z")

</div>

Hi -  
I have a CSV data, I'd need to publish them to the Logstash and then to the Elastic Search, and may be visualize them on the Kibana.

Could some one please help me in doing this. Am pretty much new to the Logstash. Thanks !

Regards,  
Prakash

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 21, 2017, 10:21am UTC](https://discuss.elastic.co/t/sending-csv-data-to-logstash/79376/2 "2017-03-21T10:21:05Z")

</div>

You need a configuration file with

- a file input,
- a csv filter, and
- an elasticsearch output.

I'm sure there are plenty of examples of such a setup. Build your configuration gradually, i.e. add one piece at a time. Start with a `stdout { codec => rubydebug }` output to verify that you're reading the input data correctly. Then start adding filters and finally enable the elasticsearch output.

---

<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:** [April 18, 2017, 10:21am UTC](https://discuss.elastic.co/t/sending-csv-data-to-logstash/79376/3 "2017-04-18T10:21:45Z")

</div>

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