# Elasticsearch to csv through logstash - basic question

**URL:** <https://discuss.elastic.co/t/elasticsearch-to-csv-through-logstash-basic-question/206528>\
**Category:** Logstash\
**Created:** [November 5, 2019, 6:58am UTC](https://discuss.elastic.co/t/elasticsearch-to-csv-through-logstash-basic-question/206528 "2019-11-05T06:58:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomasGreif](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomasgreif/32/57146_2.png) [@TomasGreif](https://discuss.elastic.co/u/TomasGreif)\
**Post date:** [November 5, 2019, 6:58am UTC](https://discuss.elastic.co/t/elasticsearch-to-csv-through-logstash-basic-question/206528/1 "2019-11-05T06:58:57Z")

</div>

I want to use logstash to process data stored in elasticsearch and write output to csv. Do I need to install logstash on the server where elastic runs or I can install it locally only and connect to the server? Or I can do either one?

---

<div class="post-metadata">

**Author:** ![st3inbeiss](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/st3inbeiss/32/55332_2.png) [@st3inbeiss](https://discuss.elastic.co/u/st3inbeiss)\
**Post date:** [November 5, 2019, 9:07am UTC](https://discuss.elastic.co/t/elasticsearch-to-csv-through-logstash-basic-question/206528/2 "2019-11-05T09:07:36Z")

</div>

Hi!

You can do either one. If you're using this sporadically/manually, I would suggest you install it on your local machine. If it has to run as a service and produce files continuously, install it on a server as a service.

---

<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 3, 2019, 9:07am UTC](https://discuss.elastic.co/t/elasticsearch-to-csv-through-logstash-basic-question/206528/3 "2019-12-03T09:07:37Z")

</div>

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