你好请问logstash+redis cluster如何配置shipper与indexer
logstash5.6
redis4.0.1cluster
目前shipper配置:
output {
redis {
host => "192.168.31.233:7003"
#port => 7000
#db => 0
data_type => "list"
key => "logstash-apiApplication"
}
}
一定要配置key所在的redis节点,不然就会报“Redis::CommandError: MOVED”;
目前indexer的配置:
input {
redis {
host => "192.168.31.233"
port => 7003
#db => 0
data_type => "list"
key => "logstash-apiApplication"
type => "redis-cluster-input"
}
}
也是必须配置key所在的redis节点,不然也报“Redis::CommandError: MOVED”,这样的话,redis cluster岂不没意义了,请问如何解决呢?
logstash5.6
redis4.0.1cluster
目前shipper配置:
output {
redis {
host => "192.168.31.233:7003"
#port => 7000
#db => 0
data_type => "list"
key => "logstash-apiApplication"
}
}
一定要配置key所在的redis节点,不然就会报“Redis::CommandError: MOVED”;
目前indexer的配置:
input {
redis {
host => "192.168.31.233"
port => 7003
#db => 0
data_type => "list"
key => "logstash-apiApplication"
type => "redis-cluster-input"
}
}
也是必须配置key所在的redis节点,不然也报“Redis::CommandError: MOVED”,这样的话,redis cluster岂不没意义了,请问如何解决呢?
0 个回复