title: Logstash Multiple index based on multiple path
body: <p>I'm using following configuration file for Logstash to create multiple indices, but they are not visible in Kibana. Logs are parsed, but index is not created. What do I need to change for this to work?</p>
  <pre><code>input {
      stdin{
          type =&gt; &quot;stdin-type&quot;
          }
      file{
          tags =&gt; [&quot;prod&quot;]
          type =&gt; [&quot;json&quot;]
          path =&gt; [&quot;C:/Users/DELL/Downloads/log/prod/*.log&quot;]
          }
      file{
          tags =&gt; [&quot;dev&quot;]
          type =&gt; [&quot;json&quot;]
          path =&gt; [&quot;C:/Users/DELL/Downloads/log/test/*.log&quot;]
          }
  }
  output {
    stdout {
      codec =&gt; rubydebug
    }
    if &quot;prod&quot; in [tags] {
      elasticsearch {
        hosts =&gt; [&quot;localhost:9200&quot;]
        index =&gt; [&quot;prod-log&quot;]
      }
    }
    if &quot;dev&quot; in [tags] {
      elasticsearch {
        hosts =&gt; [&quot;localhost:9200&quot;]
        index =&gt; [&quot;dev-log&quot;]
      }
    }
  }
  </code></pre>