Kibana: Kibana 7: wrong message ' FATAL Error: [elasticsearch.url]'

Created on 4 Jul 2019  路  6Comments  路  Source: elastic/kibana

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:

  1. Install kibana
  2. Create a config like
    [root@node01 ~]# cat /etc/kibana/kibana.yml
    elasticsearch.url: http://localhost:9200/
  1. Start kibana

[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:

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 realised elasticsearch.url was renamed to elasticsearch.hosts

All 6 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

celesteking picture celesteking  路  3Comments

stacey-gammon picture stacey-gammon  路  3Comments

mark54g picture mark54g  路  3Comments

MaartenUreel picture MaartenUreel  路  3Comments

timmolter picture timmolter  路  3Comments