title: logstash 5.0.1: setup elasticsearch multiple indexes ouput for multiple kafka input topics
body: <p>I have a logstash input setup as </p>
  
  <pre><code>input {
    kafka {
    bootstrap_servers =&gt; "zookeper_address"
    topics =&gt; ["topic1","topic2"]
    }
  }
  </code></pre>
  
  <p>I need to feed the topics into two different indexes in elasticsearch. Can anyone help me with how the ouput should be setup for such a task. At this time I am only able to setup</p>
  
  <pre><code>output {
    elasticsearch {
      hosts =&gt; ["localhost:9200"]
      index =&gt; "my_index"
      codec =&gt; "json"
      document_id =&gt; "%{id}"
    }
  }
  </code></pre>
  
  <p>I need two indexes on the same elasticsearch instance say <code>index1</code> and <code>index2</code> which will be fed by messages coming in on <code>topic1</code> and <code>topic2</code></p>