Filebeat: fail to execute the HTTP GET request

Hi,

Filebeat wants to do a http get request to http://localhost:5601/api/status but it fails.
I am having trouble with configure this on the right way in the filebeat.yml.

For Kibana I created a certificate and used that. See my config:

# Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
# This requires a Kibana endpoint configuration.
setup.kibana:

  # Kibana Host
  # Scheme and port can be left out and will be set to the default (http and 5601)
  # In case you specify and additional path, the scheme is required: http://localhost:5601/path
  # IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
  host: "localhost:5601"
  protocol: "https"
  username: "user"
  password: "password"
  server.ssl.enabled: true
  server.ssl.certificate: "<path to crt file>"
  server.ssl.key: "path to key file>"

Do I miss something?
Is it possible to disable this check?

@Robin020,

Can you post the log lines or output where you're seeing any errors?

Hey Alex,

I have solved that issue by disabling the option"setup.dashboards.enabled:"

Now I am facing another issue:

INFO    pipeline/output.go:95   Connecting to backoff(async(tcp://127.0.0.1:9300))
INFO    pipeline/output.go:105  Connection to backoff(async(tcp://127.0.0.1:9300)) established
ERROR   logstash/async.go:256   Failed to publish events caused by: EOF
ERROR   logstash/async.go:256   Failed to publish events caused by: client is not connected
ERROR   pipeline/output.go:121  Failed to publish events: client is not connected

I don't know where to start troubleshooting for these messages.... Can you help?

This is my logstash.conf for filebeat:

input {
  beats {
    hosts => "127.0.0.1"
    client_inactivity_timeout => 300
    port => 9300
  }
}

output {
  elasticsearch {
    hosts => ["http://localhost:9200"]
    index => "%{[@metadata][beat]}-%{[@metadata][version]}"
    user => "user"
    password => "password"
  }
  stdout{}
}

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