win10+logstash导入数据坑[转]
时间:2019-12-04 12:25:04
收藏:0
阅读:193
input { file { path => ["E:/222/*.csv"] start_position => "beginning" } } filter { csv { separator => "," columns => ["tm","openid","fuwuhao","action","content"] } date { match => ["timestamp", "yyyy-MM-dd HH:mm:ss", "ISO8601"] remove_field => ["tm"] } } output { elasticsearch { hosts => ["http://192.168.222.222:9200"] index => "wx" } }
sincedb_path:可以是一个不存在的文件
path:windows下文件分隔如果"\",不会导入数据,也没有error信息,需要改成:"/"
原文:https://www.cnblogs.com/merseyalma/p/11981031.html
评论(0)