my filebeat.yml looks like this:
filebeat.inputs:
- type: log
enabled: true
paths:
- /var/logs/mylog.log
#============================= Filebeat modules ===============================
filebeat.config.modules:
# Glob pattern for configuration loading
path: ${path.config}/modules.d/*.yml
# Set to true to enable config reloading
reload.enabled: true
# Period on which files under path should be checked for changes
#reload.period: 10s
output:
logstash:
hosts: ["https://mylogstash_FQDN:8044"]
ssl.certificate_authorities:
- /etc/filebeat/config/certs/certfile.crt
The error message from filebeat log is:
Failed to connect to backoff(async(tcp://[https://mylogstash_FQDN:8044]:5044)): lookup https://mylogstash_FQDN:8044: no such host
Why Filebeat takes the port as part of my FQDN (DNS name of my Logstash server?