簡體   English   中英

在kibana中打破了彈性搜索監控

[英]Got elasticsearch monitoring broken in kibana

有一天,我的Kibana開始顯示監控已關閉,無法再次打開。

在此輸入圖像描述

在kibana的日志中有這樣的消息:

{"type":"log","@timestamp":"2019-04-07T06:35:58Z","tags":["debug","monitoring-ui","kibana-monitoring"],"pid":1,"message":"Uploading bulk stats payload to the local cluster"}
Unhandled rejection [export_exception] Exception when closing export bulk :: {"path":"/_xpack/monitoring/_bulk","query":{"system_id":"kibana","system_api_version":"6","interval":"10000ms"},"body":"{\"index\":{\"_type\":\"kibana_stats\"}}\n{\"kibana\":{\"uuid\":\"c1f81ebc-9b7f-47c0-90ce-47b44725ad25\",\"name\":\"kibana\",\"index\":\".kibana\",\"host\":\"0\",\"transport_address\":\"0:5601\",\"version\":\"6.6.1\",\"snapshot\":false,\"status\":\"green\"},\"usage\":{\"kql\":{\"optInCount\":1,\"optOutCount\":0,\"defaultQueryLanguage\":\"default-lucene\"},\"index\":\".kibana\",\"dashboard\":{\"total\":2},\"visualization\":{\"total\":3},\"search\":{\"total\":5},\"index_pattern\":{\"total\":7},\"graph_workspace\":{\"total\":0},\"timelion_sheet\":{\"total\":0},\"spaces\":{\"available\":true,\"enabled\":true,\"count\":3},\"apm\":{\"has_any_services\":false,\"services_per_agent\":{}},\"infraops\":{\"last_24_hours\":{\"hits\":{\"infraops_hosts\":0,\"infraops_docker\":0,\"infraops_kubernetes\":0,\"logs\":0}}},\"rollups\":{\"index_patterns\":{\"total\":0},\"saved_searches\":{\"total\":0},\"visualizations\":{\"total\":0,\"saved_searches\":{\"total\":0}}},\"xpack\":{\"reporting\":{\"available\":true,\"enabled\":true,\"browser_type\":\"chromium\",\"_all\":0,\"csv\":{\"available\":true,\"total\":0},\"PNG\":{\"available\":false,\"total\":0},\"printable_pdf\":{\"available\":false,\"total\":0},\"status\":{},\"lastDay\":{\"_all\":0,\"csv\":{\"available\":true,\"total\":0},\"PNG\":{\"available\":false,\"total\":0},\"printable_pdf\":{\"available\":false,\"total\":0},\"status\":{}},\"last7Days\":{\"_all\":0,\"csv\":{\"available\":true,\"total\":0},\"PNG\":{\"available\":false,\"total\":0},\"printable_pdf\":{\"available\":false,\"total\":0},\"status\":{}}}}},\"cloud\":{\"name\":\"gcp\",\"id\":\"7164592281880898911\",\"vm_type\":\"custom-6-25600\",\"region\":\"us-central1\",\"zone\":\"us-central1-c\"},\"concurrent_connections\":0,\"os\":{\"load\":{\"1m\":0.61181640625,\"5m\":0.49462890625,\"15m\":0.46142578125},\"memory\":{\"total_in_bytes\":26338160640,\"free_in_bytes\":1914593280,\"used_in_bytes\":24423567360},\"uptime_in_millis\":1684000,\"platform\":\"linux\",\"platformRelease\":\"linux-4.14.91+\",\"distro\":\"Centos\",\"distroRelease\":\"Centos-7.6.1810\"},\"process\":{\"event_loop_delay\":1.137755999341607,\"memory\":{\"heap\":{\"total_in_bytes\":200716288,\"used_in_bytes\":160904432,\"size_limit\":1526909922},\"resident_set_size_in_bytes\":290590720},\"uptime_in_millis\":1209623},\"requests\":{\"disconnects\":0,\"total\":6},\"response_times\":{\"average\":131,\"max\":131},\"timestamp\":\"2019-04-07T06:35:57.046Z\"}\n","statusCode":500,"response":"{\"took\":10,\"ignored\":false,\"errors\":true,\"error\":{\"type\":\"export_exception\",\"reason\":\"Exception when closing export bulk\",\"caused_by\":{\"type\":\"export_exception\",\"reason\":\"failed to flush export bulks\",\"caused_by\":{\"type\":\"export_exception\",\"reason\":\"bulk [default_local] reports failures when exporting documents\",\"exceptions\":[{\"type\":\"export_exception\",\"reason\":\"RemoteTransportException[[elasticsearch-master-1][10.8.2.14:9300][indices:admin/create]]; nested: IllegalArgumentException[Rejecting mapping update to [.monitoring-kibana-6-2019.04.07] as the final mapping would have more than 1 type: [item, doc]];\",\"caused_by\":{\"type\":\"illegal_argument_exception\",\"reason\":\"Rejecting mapping update to [.monitoring-kibana-6-2019.04.07] as the final mapping would have more than 1 type: [item, doc]\"}}]}}}}"}

我認為最重要的部分是“拒絕將映射更新到[.monitoring-kibana-6-2019.04.07],因為最終的映射將有多種類型:[item,doc]”

據說它發生在我們遇到性能問題並且彈性搜索 - 客戶端節點重新啟動之后。

我怎么能解決這個問題?

UPD: https//gist.github.com/korjavin/2c7031b83b777b27a7a4b4a63590b556

kibana和es的模板

最后我們發現了問題。 一位開發人員創建了一個索引匹配的模板,如index_patterns:['*']它打破了kibana監控。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM