Unable to find the cluster in the selected time range

I have EBK setup, but when I try to setup monitoring in /app/monitoring with Set up monitoring with Metricbeat I get

Monitoring Request Failed

Unable to find the cluster in the selected time range. UUID: iKsZ1PfnTfWthkkFl5zMkg

in kibana logs, I see this

{"type":"log","@timestamp":"2021-06-14T16:44:48+00:00","tags":["error","plugins","monitoring","monitoring"],"pid":7,"message":"Error: Unable to find the cluster in the selected time range. UUID: iKsZ1PfnTfWthkkFl5zMkg\n    at getClustersFromRequest (/usr/share/kibana/x-pack/plugins/monitoring/server/lib/cluster/get_clusters_from_request.js:94:32)\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (internal/process/task_queues.js:93:5)\n    at Object.handler (/usr/share/kibana/x-pack/plugins/monitoring/server/routes/api/v1/cluster/cluster.js:59:20)\n    at handler (/usr/share/kibana/x-pack/plugins/monitoring/server/plugin.js:369:28)\n    at Router.handle (/usr/share/kibana/src/core/server/http/router/router.js:163:30)\n    at handler (/usr/share/kibana/src/core/server/http/router/router.js:124:50)\n    at exports.Manager.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/toolkit.js:60:28)\n    at Object.internals.handler (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:46:20)\n    at exports.execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/handler.js:31:20)\n    at Request._lifecycle (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:370:32)\n    at Request._execute (/usr/share/kibana/node_modules/@hapi/hapi/lib/request.js:279:9) {\n  data: null,\n  isBoom: true,\n  isServer: false,\n  output: {\n    statusCode: 404,\n    payload: {\n      statusCode: 404,\n      error: 'Not Found',\n      message: 'Unable to find the cluster in the selected time range. UUID: iKsZ1PfnTfWthkkFl5zMkg'\n    },\n    headers: {}\n  }\n}"}
{"type":"response","@timestamp":"2021-06-14T16:44:48+00:00","tags":[],"pid":7,"method":"post","statusCode":404,"req":{"url":"/api/monitoring/v1/clusters/iKsZ1PfnTfWthkkFl5zMkg","method":"post","headers":{"host":"kibana.example.com","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36","content-length":"111","accept":"application/json, text/plain, */*","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9","content-type":"application/json;charset=UTF-8","dnt":"1","kbn-system-request":"true","kbn-version":"7.12.1","origin":"https://kibana.example.com","referer":"https://kibana.example.com/app/monitoring","sec-ch-ua":"\" Not;A Brand\";v=\"99\", \"Google Chrome\";v=\"91\", \"Chromium\";v=\"91\"","sec-ch-ua-mobile":"?0","sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"same-origin","x-forwarded-for":"10.100.7.191","x-forwarded-host":"kibana.example.com","x-forwarded-port":"443","x-forwarded-proto":"https","x-forwarded-server":"ip-10-100-5-203.us-west-2.compute.internal","x-real-ip":"10.100.7.191"},"remoteAddress":"10.100.5.203","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36","referer":"https://kibana.example.com/app/monitoring"},"res":{"statusCode":404,"responseTime":44,"contentLength":134},"message":"POST /api/monitoring/v1/clusters/iKsZ1PfnTfWthkkFl5zMkg 404 44ms - 134.0B"}

Output for

GET _cluster/settings
{
  "persistent" : {
    "xpack" : {
      "monitoring" : {
        "elasticsearch" : {
          "collection" : {
            "enabled" : "false"
          }
        },
        "collection" : {
          "cluster" : {
            "stats" : {
              "timeout" : "15s"
            }
          },
          "enabled" : "true"
        }
      }
    }
  },
  "transient" : { }
}

Whats wrong here ?

Did you do the other configurations for metricbeat as well?

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