EDIT: Please Ignore - PEBCAK error. Apologies. Redis endpoint wasn't correct. Sigh. Not that logging helped with that mind... no logs were written to say it wasn't accessible, even with the timeout in place as seen in the config.
Hi there,
I have a filebeat config that is refusing to talk to redis. I have used a similar config with a windows server with success.
The result is that when running "service filebeat start", the cli hangs and no logging output is generated. io usage is zero as is CPU cycles. My config follows.
############################# Filebeat #####################################
filebeat:
prospectors:
-
paths:
- /var/log/syslog
# - /var/www/q*/logs/*.log
# - /var/www/q*/current/storage/logs/*.log
input_type: log
registry_file: /var/lib/filebeat/registry
############################# Output #######################################
output:
# file:
# path: "/tmp/filebeat"
# filename: "filebeat"
# rotate_ever_kb: 1000
# number_of_files: 7
redis:
host: "harrylogstash0"
port: 6379
timeout: 5
reconnect_interval: 10
############################ Logging #######################################
logging:
to_files: true
files:
path: /var/log/FileBeatLogs/
name: filebeat.log
rotateeverybytes: 10485760 # = 10MB
keepfiles: 7
Any help would be appreciated. As you can see, when I replaced the redis with a file output, it worked fine. /usr/bin/filebeat -c /etc/filebeat/filebeat.yml -configtest also hangs.
Thanks.