I am new to Kibana and want to import data from Excel. I was told to get Logstash and create a config file (Below is the file). When executing I get this error message. Please advise
Thanks
bin/logstash agent -f logstash.conf
fetched an invalid config {:config=>"\n", :reason=>"Expected one of #, input, filter, output at line 2, column 1 (byte 2) after \n", :level=>:error}
input {
file {
path => "/users/cwp/x.csv"
type => "core"
start_position => "Beginning"
}
}
filter {
csv {
columns => ["@timestamp", "interface", "bytes in", "bytes out"]
separator => ","
}
}
output {
elasticsearch {
action => "index"
host => "localhost"
index => "logstash-%{+YYYY.MM.dd}"
workers => 1
}
# stdout {
# codec => rubydebug
# }