我使用csv文件中的logstash将数据添加到了弹性搜索索引中。 我对csv进行了一些更改,现在希望将其反映在弹性索引上。
我该怎么做?
我曾经用Logstash Cofig更新数据以建立索引。
input{
file{
path => "/Users/apple/Desktop/data/gkdata.csv"
start_position =>"beginning"
}
}
filter{
csv{
separator => ","
columns => ["Index", "Category", "Sub category", "Sub Sub Category", "Products", "Measure", "Price", "Description", "Gst"]
}
mutate{convert => ["Index", "float"] }
mutate{convert => ["Price", "float"] }
mutate{convert => ["Gst", "float"] }
}
output{
elasticsearch{
hosts => "host"
user => "elastic"
password => "xyz"
index => "gkdb"
}
}
我使用此命令将数据上传到我的索引
bin/logstash -f /Users/apple/Desktop/data/logstash_db.config