logstash配置output到redis

input {
    stdin {
        type => 'demo-stdin'
        add_field => {"test" => "hello"}
        codec => "plain"
        tags => ["stdin-test"]
    }
}

output {
    redis {
        data_type => "list"
        key => "logstash-demo"
        host => "127.0.0.1"
        port => 6379
    }
}

备注:data_type支持channel、list、pattern_channel 


Tagged , , , . Bookmark the permalink.

Comments are closed.