win10+logstash导入数据坑[转]

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信息,需要改成:"/" 

win10+logstash导入数据坑[转]

上一篇:Web API---体验DOM操作


下一篇:windows下nginx中配置端口转发 ----本文来自转载