Kibana spaces fail to get status for filebeat agent while setup

Im using filebeat to push my logs to Elasticsearch directly. I have configured a kibana space in filebeat.yml but it is giving me error saying

Exiting: error connecting to Kibana: fail to get the Kibana version: HTTP GET request to https://kibana-host:9243/s/SPACE/api/status fails: Not Found: <nil>. Response: {"statusCode":404,"error":"Not Found","message":"Not Found"}.

My filebeat configuration looks like this:

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: "https://kibana-host:9243"

  # Kibana Space ID
  # ID of the Kibana Space into which the dashboards should be loaded. By default,
  # the Default Space will be used.
  space.id: "SPACE"

Credentials are provided in elastic output.

Hey @Rahul_Kalshetty,

Are you sure that the SPACE id you're using matches up with the Identifier field in Management -> Kibana -> Spaces? If it doesn't match, you would get this error.

I believe you would get an HTTP 401 instead of 404 if the user doesn't have access to that space, but it may also be worth making sure that the user filebeat is using has access.

Thanks
Brian

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