title: Measuring time taken by logstash to output into elastic
body: <p>I am looking for a way to measure the time logstash takes to output data into elastic search. 
  -   There is this elapsed filter 
      <a href="https://www.elastic.co/guide/en/logstash/current/plugins-filters-elapsed.html" rel="nofollow">https://www.elastic.co/guide/en/logstash/current/plugins-filters-elapsed.html</a>, which I think  can be used to measure the time taken to process the message through all the configured filters but not to measure the time taken to output to elastic search
  -   I also tried with a batch file with something like </p>
  
  <pre><code>echo starttime =  %time%
  cd c:\Temp\POC\Mattias\logstash-2.0.0\logstash-2.0.0\bin
  logstash agent -f first-pipeline.conf
  echo endtime = %time%
  </code></pre>
  
  <p>The problem with this approach is logstash doesn’t stop/exit after finishing a given input file.
  Any help is highly appreciated!</p>
  
  <p>Thanks and regards,
  Priya</p>