Kibana ElasticSearch警告:此请求访问系统索引,但在未来的主要版本中,将阻止直接访问系统索引

r7xajy2e  于 2022-12-09  发布在  Kibana
关注(0)|答案(1)|浏览(303)

当我发送POST请求时,收到警告
org.elasticsearch.client.RestClient: request [POST http://localhost:9200/_search?typed_keys=true&max_concurrent_shard_requests=5&ignore_unavailable=false&expand_wildcards=open&allow_no_indices=true&ignore_throttled=true&search_type=query_then_fetch&batched_reduce_size=512]
returned 1 warnings: [299 Elasticsearch-7.14.2-6bc13727ce758c0e943c3c21653b3da82f627f75 "this request accesses system indices: [.apm-agent-configuration, .apm-custom-link, .kibana_7.13.4_001, .kibana_task_manager_7.13.4_001, .tasks], but in a future major version, direct access to system indices will be prevented by default"]
现在,我了解到系统索引在未来将被隐藏,无法访问。要发送什么正确的用法或命令才不会显示此警告?

qq24tv8q

qq24tv8q1#

您使用POST http://localhost:9200/_search是在Elasticsearch中查询 * 所有 * 索引,您可能并不真正希望这样做
最好指定要查询的索引

相关问题