码迷,mamicode.com
首页 > 其他好文 > 详细

Logstash怎么导入csv

时间:2016-03-11 20:35:03      阅读:1579      评论:0      收藏:0      [点我收藏+]

标签:

Logstash.Conf

input { file { type => "SSRCode" path => "E:/FTPRootWorkSpace/SD/2016*/2016*/*.txt" start_position => "beginning" } } filter { csv { columns => ["Code","Source"] separator => "," } } # output logs to console and to elasticsearch output { stdout {} elasticsearch { hosts => ["132.16.1.86:9200"] } }

 

Logstash怎么导入csv

标签:

原文地址:http://www.cnblogs.com/haoliansheng/p/5266826.html

(1)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!