title: Fluentd Elasticsearch target index
body: <p>I'm using <a href="http://www.fluentd.org/" rel="noreferrer">Fluentd</a> to transfer the data into Elasticsearch. </p>
  
  <p><strong>td-agent.conf</strong></p>
  
  <pre><code>## ElasticSearch
  &lt;match es.**&gt;
    type elasticsearch
    target_index_key @target_index  
    logstash_format true
    flush_interval 5s
  &lt;/match&gt;
  </code></pre>
  
  <p><strong>Elasticsearch index :</strong> </p>
  
  <pre><code>"logstash-2016.02.24" : {
      "aliases" : { },
      "mappings" : {
        "fluentd" : {
          "dynamic" : "strict",
          "properties" : {
            "@timestamp" : {
              "type" : "date",
              "format" : "strict_date_optional_time||epoch_millis"
            },
            "dummy" : {
              "type" : "string"
            }
  
          }
        }
      },
  </code></pre>
  
  <p><strong>Transmit json data :</strong></p>
  
  <pre><code>$ curl -X POST -d 'json={"@target_index": "logstash-2016.02.24","dummy":"test"}' http://localhost:8888/es.test
  </code></pre>
  
  <p>It should write the data to the given index instead of that It creates new index - logstash-2016.02.25 and it will write data into that. I want to write data to the given index.</p>
  
  <p>Here is the Fluentd elasticsearch github link :
  <a href="https://github.com/uken/fluent-plugin-elasticsearch" rel="noreferrer">https://github.com/uken/fluent-plugin-elasticsearch</a></p>
  
  <p>Please correct me if I'm missing something.</p>