Ctrl A separated csv file elasticsearch not indexing using logstash


(Avinash Garg) #1

0
down vote
favorite
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


Logstash CSV Filter Using Unicode delimiter ( SOH )
(Magnus Bäck) #2

I don't think such escape sequences are supported. Have you tried inserting a literal \u0001 byte in the file instead?


(Avinash Garg) #3

its not working


(Avinash Garg) #4

@magnusbaeck any solution for this?


(Magnus Bäck) #5

No, I don't have a solution.


(system) #6