标签:
0> yum install redis 0> /etc/init.d/redis start 0> netstat -antlp | grep redis tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 2700/redis-server
input { file { path => ‘/data/logs/nginx/access.log‘ start_position => beginning } } output { stdout { codec => rubydebug } redis { host => "127.0.0.1" data_type => "list" key => "key_count" } }
input { redis { host => localhost port => 6379 type => "redis-cluster-input" data_type => "list" key => "key_count" } } output { elasticsearch { host => localhost protocol => http } stdout { codec => rubydebug } }
标签:
原文地址:http://my.oschina.net/moonly/blog/508065