标签:conf highlight art tput tar star path web rsyslog
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‘ } }
标签:conf highlight art tput tar star path web rsyslog
原文地址:https://www.cnblogs.com/winnerREN/p/9899848.html