logstash-shipper.conf
Posted winnerren
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了logstash-shipper.conf相关的知识,希望对你有一定的参考价值。
input { file { path => ‘/data/rsyslog/*/*/*.log‘ start_position => ‘beginning‘ sincedb_path => ‘/data/rsyslog/sincedb/.db‘ } } filter { grok { match => { path => "%{GREEDYDATA}/%{GREEDYDATA:type}.log" } } mutate { gsub => [ "type", "-web[0-9]+", "" ] } } output { redis { host => ‘127.0.0.1‘ db => ‘0‘ key => ‘logs‘ data_type => ‘list‘ } }
以上是关于logstash-shipper.conf的主要内容,如果未能解决你的问题,请参考以下文章