Hello, when I trying to parse a csv file, this error message shows up.
input {
file {
path => "/finance/BTC-USD.csv"
start_position => "beginning"
}
}
The filter part of this file is commented out to indicate that it is
optional.
filter {
csv {
separator => ","
columns => ["Date","Open","High","Low","Close","Adj Close","Volume"]
}
date {match => ["Date", "yyyy-MM-dd"]}
mutate {convert => ["Open", "float"]}
mutate {convert => ["High", "float"]}
mutate {convert => ["Low", "float"]}
mutate {convert => ["Close", "float"]}
mutate {convert => ["Adj Close", "float"]}
mutate {convert => ["Volume", "float"]}
}
[Elasticsearch output plugin]
index into Elasticsearch
output {
elasticsearch {
hosts => "localhost:9200"
manage_template => false
index => "daily-finance-price"
}
stdout {}
}