Kibana version:
7.2.0
Elasticsearch version:
7.2.0
Server OS version:
any
Browser version:
any
Browser OS version:
any
Original install method (e.g. download page, yum, from source, etc.):
oss yum repo,
Describe the bug:
Starting kibana 7 , with a configuration that used to work on kibana 6, I get the error:
FATAL Error: [elasticsearch.url]: definition for this key is missing
The field 'elasticsearch.url' is defined in the configuration. At the same time, the fields 'elasticsearch.hosts' was not. Renaming the field elasticsearch.url to elasticsearch.hosts made kibana able to start. It would be have been much easier if the error message mentioned the name of the field 'hosts' instead of url
Steps to reproduce:
[root@node01 ~]# /usr/share/kibana/bin/kibana -c /etc/kibana/kibana.yml --allow-root --verbose
FATAL Error: [elasticsearch.url]: definition for this key is missing
Expected behavior:
Get a message:
FATAL Error: [elasticsearch.hosts]: definition for this key is missing
Screenshots (if relevant):
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context:
Hi @psaiz
As the elasticsearch.hosts
setting has a default value "http://localhost:9200", you don't have to provide it (so it can't be missing).
What the message you receive is saying is that Kibana configuration does not understand (does not have a definition to understand) the elasticsearch.url
setting that you have provided.
Does that help understand better the error?
Cheers
Hi Sebastien,
Thanks fort he clarification. That makes sense. Closing the ticket.
Cheers,
pablo
This continues to be an issue. I just installed it fresh and i have it set and it still states this error
same problem here, very irritating - please fix it. Doesn't make sense to call it hosts either, as it requires an URL. Worst IMHO is, that the "Upgrade Assistent" didn't notice it :(
@psaiz thanks for mentioning the fix :)
in file /etc/kibana/kibana.yml you need this line
elasticsearch.hosts: ["http://localhost:9200"]
Indeed I've just migrated and the error message is very confusing, I thought the elasticsearch.url
was missing from my .yml file. Thanks to this ticket I realised elasticsearch.url
was renamed to elasticsearch.hosts
Most helpful comment
Indeed I've just migrated and the error message is very confusing, I thought the
elasticsearch.url
was missing from my .yml file. Thanks to this ticket I realisedelasticsearch.url
was renamed toelasticsearch.hosts