title: ElasticSearch creates unnecessary index
body: <p>I am using logstash to parse some data and feed it to ElasticSearch and it works fine except that ElasticSearch creates an index too much that I would like to avoid.</p>
  
  <p>My Logstash configuration looks like this:</p>
  
  <pre><code>filter {
      date {
          locale =&gt; "en"
          match =&gt; [ "log_timestamp", "dd/MMM/yyyy:HH:mm:ss +0100" ]
          timezone =&gt; "UTC" 
          target =&gt; "@timestamp"
      }
  }
  output {
      elasticsearch {
          hosts =&gt; ["0.0.0.0:9200"]
          index =&gt; "index-%{+YYYY-MM-dd}"
      }
  }
  </code></pre>
  
  <p>And it does indeed create an index for my data using the dates in the data.</p>
  
  <p>So if I process data from 2016-01-14 today (2016-01-20) I get 2 indexes in my elasticSearch directory: <strong>index-2016-01-14</strong> and <strong>index-2016-01-20</strong>.</p>
  
  <p>And I don't really want to have '<strong>index-2016-01-20</strong>', I only want the one for my data, in my case '<strong>index-2016-01-14</strong>'.</p>
  
  <p>I hope I made myself a bit clear :)</p>
  
  <p>Sample input data:</p>
  
  <pre><code>[14/Jan/2016:00:00:00 +0100]|bla|ip|...|200|0|0|
  [14/Jan/2016:02:00:00 +0100]|cla|ip|...|200|0|0|
  [14/Jan/2016:05:00:00 +0100]|dla|ip|...|200|0|0|
  </code></pre>