# How to get shards from elasticsearch to logstash?

**URL:** <https://discuss.elastic.co/t/how-to-get-shards-from-elasticsearch-to-logstash/140449>\
**Category:** Logstash\
**Created:** [July 18, 2018, 5:53am UTC](https://discuss.elastic.co/t/how-to-get-shards-from-elasticsearch-to-logstash/140449 "2018-07-18T05:53:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deok](https://avatars.discourse-cdn.com/v4/letter/d/5fc32e/32.png) [@deok](https://discuss.elastic.co/u/deok)\
**Post date:** [July 18, 2018, 5:53am UTC](https://discuss.elastic.co/t/how-to-get-shards-from-elasticsearch-to-logstash/140449/1 "2018-07-18T05:53:26Z")

</div>

i need to convert shards(elasticsearch)data to logFile..

how to set logstash config file ?

ex)  
input {  
elasticsearch {  
hosts =\> " ~~ip : port~~"  
??  
}  
output{  
file{  
path =\> ["/ ~~~~~path/~~~.log"]  
}

plz help me...

---

<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:** [August 15, 2018, 5:53am UTC](https://discuss.elastic.co/t/how-to-get-shards-from-elasticsearch-to-logstash/140449/2 "2018-08-15T05:53:28Z")

</div>

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