just try the Redis module on a Redis server but receives error message when start: filebeat -e --modules system,redis
The message in the console is the following:
ERROR harvester/registry.go:83 Error running input: error receiving slowlog data: dial tcp 127.0.0.1:6379: getsockopt: connection refused
Also in the config file of the Redis module: modules.d/redis.yml
we have set the follwoing config:
module: redis
Main logs
log:
enabled: true
Set custom paths for the log files. If left empty,
Filebeat will choose the paths depending on your OS.
Optional, the password to use when connecting to Redis.
var.password: "xxxxxx"
--> multiple Redis that don't list to localhost as access remotely. So why the message localhost:6379 ?
Why does it try to access the localhost and not the IP or hostname set ?
Also with Redis you can you Sentinel that provide load balacing and automatic switch over of the Mastet/Slave. Shoudl Sentinel not be also supported ?
The redis module should only use var.hosts for the slowlog fileset. It should not use it for the log fileset. So that fact that it's even trying to connect to 127.0.0.1:6379 is odd.
Could you post the entire log from the moment you start running filebeat, please (not just the error line)?
Also, could you post your completefilebeat.yml and re-post your completemodules.d/redis.yml. For each of these files, when you post them here, please wrap the contents in ``` and ``` so the formatting of the files is preserved exactly as it is on your machine.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.