For straming data what should be configuration


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.

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.