logstash5配置kafka的topic和elasticseach

 vim config/log4j_es.conf

input {
  kafka {
    bootstrap_servers => "192.168.95.150:9092,192.168.95.151:9092,192.168.95.152:9092"
    topics => ["test"]
  }
}
output {
  elasticsearch {
    hosts => ["192.168.95.150:9200","192.168.95.151:9200","192.168.95.152:9200"]
    index => "logstash-tomcat"
  }
}

配置redis数据到logstash


input {

    redis {

        data_type => "list" #logstash redis插件工作方式

        key => "logstash-test-list" #监听的键值

        host => "127.0.0.1" #redis地址

        port => 6379 #redis端口号

    }

}

Please do not keep adding +1 type comments. I (we, the Logstash team) are not yet able to code for Redis Clustering at the moment. We are in the process of defining the Java Plugin mechanism and selecting suitable plugins to move to Java - this plugin is one candidate - its just not a high priority one at the moment.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值