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.