首页 > 代码库 > logtash 接收多配置文件
logtash 接收多配置文件
[root@10-19-148-59 etc]# vim front_esb.conf input { beats { type => beats port => 5077 } } filter { if [type] == ‘test-front‘ { grok { overwrite => [‘message‘] } } if [type] == ‘test-esb‘ { grok { overwrite => [‘message‘] } } } output { if [type] == ‘test-front‘ { elasticsearch { hosts => ["10.19.148.59:9200"] index => "test-front-%{+YYYY.MM.dd}" } } if [type] == ‘test-esb‘ { elasticsearch { hosts => ["10.19.148.59:9200"] index => "test-esb-%{+YYYY.MM.dd}" } } }
我这里的日志采集用的是filebeat 来采集日志的
logtash 接收多配置文件
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。