弹性搜索查询返回kibana的版本

时间:2017-09-21 14:20:21

标签: elasticsearch kibana

我在kibana 5.4.0上运行 我想知道是否有一个Elastic搜索GET api查询,我可以针对.kibana索引运行,该索引返回我正在运行的kibana版本?

1 个答案:

答案 0 :(得分:0)

为什么查询elasticsearch? Kibana本身提供了这种能力:

cinhtau@omega:~> curl -v localhost:5601/status
* About to connect() to localhost port 5601 (#0)
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 5601 (#0)
> GET /status HTTP/1.1
> User-Agent: curl/7.29.0
> Host: localhost:5601
> Accept: */*
>
< HTTP/1.1 302 Found
< location: https://localhost:5601/status
< kbn-name: kibana
< kbn-version: 5.6.1
< kbn-xpack-sig: 83f97b6a01fc027688f430e60e935b27
< cache-control: no-cache
< content-length: 0
< Date: Fri, 22 Sep 2017 08:51:43 GMT
< Connection: keep-alive
<
* Connection #0 to host localhost left intact

从响应标题中可以看到它是 5.6.1 。有一种方法可以从Elasticsearch查询它,但是恕我直言,请问Elasticsearch,有关Kibana的信息。