在 Mapping 里面,将 dynamic 参数设置成 strict 可以拒绝索引包含未知字段的文档。 此条 Tips 由 medcl 贡献。

kibana

Kibana | 作者 huangxian | 发布于2018年10月16日 | 阅读数:4197

log [06:25:50.008] [warning][reporting] Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing
log [06:25:50.129] [info][status][plugin:elasticsearch@6.4.0] Status changed from yellow to green - Ready
log [06:25:50.190] [info][license][xpack] Imported license information from Elasticsearch for the [data] cluster: mode: basic | status: active
log [06:25:50.194] [info][status][plugin:xpack_main@6.4.0] Status changed from yellow to green - Ready
log [06:25:50.195] [info][status][plugin:searchprofiler@6.4.0] Status changed from yellow to green - Ready
log [06:25:50.196] [info][status][plugin:ml@6.4.0] Status changed from yellow to green - Ready
log [06:25:50.196] [info][status][plugin:tilemap@6.4.0] Status changed from yellow to green - Ready
log [06:25:50.197] [info][status][plugin:watcher@6.4.0] Status changed from yellow to green - Ready
log [06:25:50.197] [info][status][plugin:index_management@6.4.0] Status changed from yellow to green - Ready
log [06:25:50.198] [info][status][plugin:graph@6.4.0] Status changed from yellow to green - Ready
log [06:25:50.199] [info][status][plugin:grokdebugger@6.4.0] Status changed from yellow to green - Ready
log [06:25:50.199] [info][status][plugin:logstash@6.4.0] Status changed from yellow to green - Ready
log [06:25:50.200] [info][status][plugin:reporting@6.4.0] Status changed from yellow to green - Ready
log [06:25:50.201] [info][kibana-monitoring][monitoring-ui] Starting monitoring stats collection
log [06:25:50.204] [info][status][plugin:security@6.4.0] Status changed from yellow to green - Ready
error [06:25:50.244] [warning][stats-collection] [illegal_argument_exception] maxConcurrentShardRequests must be >= 1 :: {"path":"/.kibana/_search","query":{"ignore_unavailable":true,"filter_path":"aggregations.types.buckets"},"body":"{\"size\":0,\"query\":{\"terms\":{\"type\":[\"dashboard\",\"visualization\",\"search\",\"index-pattern\",\"graph-workspace\",\"timelion-sheet\"]}},\"aggs\":{\"types\":{\"terms\":{\"field\":\"type\",\"size\":6}}}}","statusCode":400,"response":"{\"error\":{\"root_cause\":[{\"type\":\"illegal_argument_exception\",\"reason\":\"maxConcurrentShardRequests must be >= 1\"}],\"type\":\"illegal_argument_exception\",\"reason\":\"maxConcurrentShardRequests must be >= 1\"},\"status\":400}"}
at respond (/home/es/kibana-6.4.0-linux-x86_64/node_modules/elasticsearch/src/lib/transport.js:307:15)
at checkRespForFailure (/home/es/kibana-6.4.0-linux-x86_64/node_modules/elasticsearch/src/lib/transport.js:266:7)
at HttpConnector.<anonymous> (/home/es/kibana-6.4.0-linux-x86_64/node_modules/elasticsearch/src/lib/connectors/http.js:159:7)
at IncomingMessage.bound (/home/es/kibana-6.4.0-linux-x86_64/node_modules/elasticsearch/node_modules/lodash/dist/lodash.js:729:21)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
已邀请:

yuhai

赞同来自:

兄弟 你这个问题解决了么 , 我也遇到这样一个问题, 虚拟环境下 启动kibana 报这个错 , 我的kibana版本和ES 版本是一致的, es也启动了。
log   [10:19:37.637] [info][license][xpack] Imported license information from Elasticsearch for the [monitoring] cluster: mode: basic | status: active
 error  [10:19:47.658] [warning][kibana-monitoring][monitoring-ui] [illegal_argument_exception] maxConcurrentShardRequests must be >= 1 :: {"path":"/.kibana/_search","query":{"ignore_unavailable":true,"filter_path":"aggregations.types.buckets"},"body":"{\"size\":0,\"query\":{\"terms\":{\"type\":[\"dashboard\",\"visualization\",\"search\",\"index-pattern\",\"graph-workspace\",\"timelion-sheet\"]}},\"aggs\":{\"types\":{\"terms\":{\"field\":\"type\",\"size\":6}}}}","statusCode":400,"response":"{\"error\":{\"root_cause\":[{\"type\":\"illegal_argument_exception\",\"reason\":\"maxConcurrentShardRequests must be >= 1\"}],\"type\":\"illegal_argument_exception\",\"reason\":\"maxConcurrentShardRequests must be >= 1\"},\"status\":400}"}
    at respond (/usr/Es/kibana6.3.1/node_modules/elasticsearch/src/lib/transport.js:307:15)
    at checkRespForFailure (/usr/Es/kibana6.3.1/node_modules/elasticsearch/src/lib/transport.js:266:7)
    at HttpConnector.<anonymous> (/usr/Es/kibana6.3.1/node_modules/elasticsearch/src/lib/connectors/http.js:159:7)
    at IncomingMessage.bound (/usr/Es/kibana6.3.1/node_modules/elasticsearch/node_modules/lodash/dist/lodash.js:729:21)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
  log   [10:19:47.659] [warning][kibana-monitoring][monitoring-ui] Unable to fetch data from kibana collector
 error  [10:19:47.672] [warning][kibana-monitoring][monitoring-ui] [illegal_argument_exception] maxConcurrentShardRequests must be >= 1

要回复问题请先登录注册