# For straming data what should be configuration

**URL:** <https://discuss.elastic.co/t/for-straming-data-what-should-be-configuration/56136>\
**Category:** Logstash\
**Created:** [July 21, 2016, 8:30pm UTC](https://discuss.elastic.co/t/for-straming-data-what-should-be-configuration/56136 "2016-07-21T20:30:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit2015](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@Amit2015](https://discuss.elastic.co/u/Amit2015)\
**Post date:** [July 21, 2016, 8:30pm UTC](https://discuss.elastic.co/t/for-straming-data-what-should-be-configuration/56136/1 "2016-07-21T20:30:04Z")

</div>

Hi,

I have tried batch processing using logstach and indexed data into Elasticsearch (from text file) . If I want to realtime streaming data index into ES what should I do?

Please suggest.

---

<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:** [July 29, 2016, 10:28am UTC](https://discuss.elastic.co/t/for-straming-data-what-should-be-configuration/56136/2 "2016-07-29T10:28:27Z")

</div>

The default behavior of Logstash's file input is to process data continuously, so no special configuration is required. It's batch processing that's the special case here.

---

<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:** [July 6, 2017, 4:45am UTC](https://discuss.elastic.co/t/for-straming-data-what-should-be-configuration/56136/3 "2017-07-06T04:45:59Z")

</div>


