Machine Learning in Kibana - Jobs list could not be retrieved

Hi guys,

I have installed Elasticsearch 5.4.3 and Kibana 5.4.3 in the same server. They are communicating through their ip address at ports 9200 and 5601 respectively. Kibana is being accessed behind a proxy.

I have created multiple machine learnings jobs from Elasticsearch ML APIs, and through Kibana’s UI. However, at the time of listing the jobs I get errors such as “Jobs list could not be retrieved”, “undefined”, “datafeeds list could not be retrieved”, “Job details could not be retrieved”.

I need to note that I have created jobs from kibana’s UI, but they cannot be
retrieved at the Machine Learning Tab, even when they can be listed after created in elasticsearch. I am logging in into Kibana as “elastic” superuser, and have also tried “kibana”; but both of them raise the same error.

Based on some Google forums I have attempted the below

  • Restart the cluster: I have restarted many times and there is no difference.

  • Possible basePath error at kibana’s configuration: This link ( represents the same issue that I have. However, they mention that the issue was fixed in version 5.4.1. I am running kibana behind a proxy and I cannot remove the basePath “/kibana” because it would not be practical for a production proxy.
    Related to this advice, I found some logs that might be interesting.
    Note: The only errors that I see at /var/log/kibana/kibana.stdout is a 404 request where there is a double “/” at the url.

(X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115
deflate, br","accept-language":"en-US,en;q=0.8","x-forwarded-for":"
ip_address","x-forwarded-host":"www-proxy ","x-forwarded-server":"www-proxy
ip_address ","userAgent":" ip_address ","referer":"https://www-proxy /kibana/app/ml"},"res":{"statusCode":404,"responseTime":10,"contentLength":9},"message":"GET //api/ml/datafeeds
404 10ms - 9.0B"}

  • Used the Dev Tools Tab from Kibana’s UI and typed: “GET _xpack/ml/anomaly_detectors/” and was able to view all the machine learning jobs that are listed in elasticsearch without any problem.

"count": 4,
"jobs": [
"job_id": "apache_logs_3july",
"job_type": "anomaly_detector",
"description": "example advanced",
"create_time": 1499091675682,
"analysis_config": {
"bucket_span": "30m",

I would like to get some advice related to this issue. Please let me know if I need to provide more information. More configuration details can be sent as requested.

Thanks in advance,

  • Jordan

Hi @jacaraba,

ML in Kibana 5.4.x has a known issue when running from behind a proxy.
This has been fixed in version 5.5, so I would recommend upgrading once it has been released.


Hi @James_Gowdy,

Thanks for the awesome reply! I am currently a summer intern, so I have a time frame to finish my project and I would love to get Kibana showing pretty machine learning graphs.

For I ask, do you think that cloning version 5.5 of elasticsearch and kibana from their git branches would work for now? ( and Or is there a temporary way to work around this kibana issue?

If so, any recommendation will be highly appreciated!

Thanks in advance,

  • Jordan

There's no way to work around this sorry, you need to wait for the release of 5.5 with X-Pack.

Thanks for the reply!

  • Jordan

Hi all,

Thanks for your replies! Version 5.5 worked perfectly!


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