ctrl A separated csv file elasticsearch not indexing using logstash

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

ctrl A separated csv file elasticsearch not indexing using logstash

Avinash Garg
This post has NOT been accepted by the mailing list yet.
I am using the config:

input {  
      file {
          path => "/tmp/test12.csv"
          type => "Sample"
          start_position => "beginning"
      }
}

filter {  
    csv {
        columns => ["col1","col2,"col3","col4"]
        separator => '\u0001'
    }
}

output {  
    elasticsearch {
        action => "index"
        host => "localhost"
        index => "t2"
        document_id => "%{col1}"
    }




For separator using '\u0001' but its not working