Expected one of #, input, filter, output at line 1, column 1 (byte 1) after


(Aniket) #1

Hello, Please help me to solve this issue

I am getting below error message while running logstash-test.conf

Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of #, input, filter, output at line 1, column 1 (byte 1) after ",

logstash-test.conf

input {
file {
path => "C:\Users\aniket\Downloads\logstash-6.4.1\logstash-6.4.1\bin\test.csv"
start_position => "beginning"
sincedb_path => "nul"
}
}
filter {
csv {
separator => ","
columns => ["name","id"]
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
user => "username"
password => "password"
index => "test"
document_type => "test"
}
}

test.csv

name,id
aniket,101


(Aniket) #2

its working as converted to UTF-8.

Thanks


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.