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

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

its working as converted to UTF-8.

Thanks

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