Hola a todos , tengo un problema , logstash funciono bien pude ver los datos en Kibana pero apague logstash y cuando lo vuelvo a correr me tira este error .
Error: Expected one of #, input, filter, output at line 1, column 1 (byte 1) after {:level=>:error}
Este es el codigo
input{
file{
path => "/home/rack/bolsa.csv"
start_position =>"beginning"
type => "stock"
sincedb_path => "NUL"
}
}
filter {
csv {
columns => ["date_of_record","open","high","low","close","volume","adj_close","company","ip"]
separator => ","
}
date{
match => ["date_of_record", "yyyy-MM-dd"]
locale => "es-ES"
target => "@timestamp"
}
mutate {
convert => ["open","float"]
convert => ["high","float"]
convert => ["low","float"]
convert => ["close","float"]
convert => ["volume","integer"]
convert => ["adj_close","float"]
convert => ["company","string"]
}
}
output{
elasticsearch {
index => ["logstash-bolsa-%{+yyyy}"]
hosts => ["localhost:9200"]
}
stdout { codec => rubydebug }
}