Skip to content

Instantly share code, notes, and snippets.

@barakseri1
Created January 1, 2020 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barakseri1/9282cef2afa82c8e481eb60056c6ce92 to your computer and use it in GitHub Desktop.
Save barakseri1/9282cef2afa82c8e481eb60056c6ce92 to your computer and use it in GitHub Desktop.
//Monitoring request for "gap" period
Jan 1 15:14:21 ip-172-30-0-37 kibana: {"type":"log","@timestamp":"2020-01-01T15:14:21Z","tags":["debug","elasticsearch","monitoring","query"],"pid":11073,"message":"200\nPOST /.monitoring-es-6-*%2C.monitoring-es-7-*/_search?size=10000&ignore_unavailable=true&filter_path=hits.hits._index%2Chits.hits._source.cluster_uuid%2Chits.hits._source.cluster_name%2Chits.hits._source.version%2Chits.hits._source.license.status%2Chits.hits._source.license.type%2Chits.hits._source.license.issue_date%2Chits.hits._source.license.expiry_date%2Chits.hits._source.license.expiry_date_in_millis%2Chits.hits._source.cluster_stats%2Chits.hits._source.cluster_state%2Chits.hits._source.cluster_settings.cluster.metadata.display_name\n{\"query\":{\"bool\":{\"filter\":[{\"term\":{\"type\":\"cluster_stats\"}},{\"term\":{\"cluster_uuid\":\"vd63AAWCTc6rZ1RiIRSK4g\"}},{\"range\":{\"timestamp\":{\"format\":\"epoch_millis\",\"gte\":1577829973994,\"lte\":1577830091905}}}]}},\"collapse\":{\"field\":\"cluster_uuid\"},\"sort\":{\"timestamp\":{\"order\":\"desc\"}}}"}
//Returned error
Jan 1 15:14:21 ip-172-30-0-37 kibana: {"type":"error","@timestamp":"2020-01-01T15:14:21Z","tags":["error","monitoring"],"pid":11073,"level":"error","error":{"message":"Unable to find the cluster in the selected time range. UUID: vd63AAWCTc6rZ1RiIRSK4g","name":"Error","stack":"Error: Unable to find the cluster in the selected time range. UUID: vd63AAWCTc6rZ1RiIRSK4g\n at then.clusters (/usr/share/kibana/x-pack/plugins/monitoring/server/lib/cluster/get_cluster_stats.js:31:15)\n at process._tickCallback (internal/process/next_tick.js:68:7)"},"message":"Unable to find the cluster in the selected time range. UUID: vd63AAWCTc6rZ1RiIRSK4g"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment