title: How can a Elasticsearch client be notified of a new indexed document?
body: <p>I am using Elasticsearch, and I am building a client (using the Java Client API) to export logs indexed via Logstash.</p>
  
  <p>I would like to be able to be notified (by adding a listener somewhere) when a new document is index (= a new log line have been added) instead of querying the last X documents.</p>
  
  <p>Is it possible ?</p>