Filebeat use default port instead of my port

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?

Which beats version are you using?

Did you try without specifying https://?

Thanks - that was my mistake. I took it out and now it's working like a charm :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.