import csv into elasticsearch : <p>I'm doing "elastic search getting started" tutorial. Unfortunatelly this tutorial doesn't cover first step which is importing <code>csv</code> database into elasticsearch.</p>

<p>I googled to find solution but it doesn't work unfortunatelly. Here is what I want to achieve and what I have:</p>

<p>I have a file with data which I want to import (simplified)</p>

<pre><code>id,title
10,Homer's Night Out
12,Krusty Gets Busted
</code></pre>

<p>I would like to import it using <code>logstash</code>. After research over the internet I end up with following config:</p>

<pre><code>input {
    file {
        path =&gt; ["simpsons_episodes.csv"]
        start_position =&gt; "beginning"
    }
}

filter {
    csv {
        columns =&gt; [
            "id",
            "title"
        ]
    }
}

output {
    stdout { codec =&gt; rubydebug }
    elasticsearch {
        action =&gt; "index"
        hosts =&gt; ["127.0.0.1:9200"]
        index =&gt; "simpsons"
        document_type =&gt; "episode"
        workers =&gt; 1
    }
}
</code></pre>

<p>I have a trouble with specifying document type so once data is imported and I navigate to <a href="http://localhost:9200/simpsons/episode/10" rel="noreferrer">http://localhost:9200/simpsons/episode/10</a> I expect to see result with episode 10.</p>
