The server.basePath
setting should only be used if you're running Kibana behind a proxy or something that changes the root of Kibana to something other than /
. And, as the instructions say:
The basePath can't end in a slash.
So your configuration is actually invalid, which is why you're seeing this error.