title: Issue importing CSV file with Logstash
body: <p>I have a CSV file, and I want to import it in my Elastic Search.</p>
  
  <p>I am on Windows 10 and I also have a Kibana be able to browse data once imported. I use Logstash to try to make this import. </p>
  
  <p><strong>All of my services (Kibana, ES and Logstash) are running on my localhost.</strong></p>
  
  <p>I tried with a the following Logstash configuration file (my csv file is in the correct path):</p>
  
  <pre><code>input {
    file {
      path =&gt; ["E:\Programmes\Logstash\logstash-2.2.0\data\*.csv"]
      start_position =&gt; "beginning"
    }
  }
  
  filter {
    csv {
      columns =&gt; ["billing_entity","invoice","company","username","reference","line_number","recipient_number","zone","network","date","time","country","duration","cost","currency","call_origin","billing_type"]
      separator =&gt; ";"
    }
  
    #grok {
    # match =&gt; { "call" =&gt; "%{WORD:billing_entity} %{WORD:invoice} %{WORD:company} %{WORD:username} %{WORD:reference} %{NUMBER:line_number} %{NUMBER:recipient_number} %{WORD:zone} %{WORD:network} %{DATE:date} %{TIME:time} %{WORD:country} %{WORD:duration} %{NUMBER:cost} %{WORD:currency} %{WORD:call_origin} %{WORD:billing_type}" }
    #}
  }
  
  output {
    elasticsearch {
      action =&gt; "index"
      index =&gt; "call_samples"
      #index =&gt; "call-%{+YYYY.MM.dd}"
      hosts =&gt; "localhost"
      workers =&gt; 1
    }
  }
  </code></pre>
  
  <p>As you can see I tried to use '<em>csv</em>' or '<em>grok</em>' filter.</p>
  
  <p>Then I launched in verbose mode logstash with this configuration file :</p>
  
  <pre><code>logstash.bat -f ..\conf\logstash.conf -v &gt; logfile.txt
  </code></pre>
  
  <p><strong>EDIT</strong> : after each try, I delete the generated sincedb files to simulate changes. But anyway I noticed they are empty</p>
  
  <p>But in the logs I see nothing relevant :</p>
  
  <blockquote>
    <p>message=>"Using mapping template from"
    message=>"Attempting to install template"
    message=>"New Elasticsearch output"
    message=>"Registering file input"
    message=>"No sincedb_path set,generating o.... 
    message=>"Using mapping template from ...
    message=>"Attempting to install template"
    message=>"New Elasticsearch output"
    message=>"Starting pipeline"
    message=>"Pipeline started"</p>
  </blockquote>
  
  <p>Quite alike my file is ignored .... I also tried several indexes , etc ... it will never import data. </p>
  
  <p>To check if data is present I make query on localhost:9200 or I browse Kibana search bar "Index name or pattern" with the index "call_samples".</p>
  
  <p>Can anyone help me on this please ? I'm stuck at this point ... Thanks </p>
  
  <p><strong>EDIT 2</strong> :
  Ok I'm dumb on this one, I just wanted to redirect the logs streams to a file when I was launching logstash :</p>
  
  <pre><code>logstash.bat -f ..\conf\logstash.conf -v &gt; logfile.txt
  </code></pre>
  
  <p>But it was probably breaking the input file from being imported. So I just removed the part where I redirect on file :</p>
  
  <pre><code>logstash.bat -f ..\conf\logstash.conf -v
  </code></pre>
  
  <p>Now, my index is correctly created, but no data is being imported ...</p>