简体   繁体   English

如何从 kibana 知道弹性搜索安装的版本?

[英]How to know elastic search installed version from kibana?

Currently I am getting these alerts:目前我收到这些警报:

Upgrade Required Your version of Elasticsearch is too old.需要升级 您的 Elasticsearch 版本太旧。 Kibana requires Elasticsearch 0.90.9 or above. Kibana 需要 Elasticsearch 0.90.9 或更高版本。

Can someone tell me if there is a way I can find the exact installed version of ELS?有人可以告诉我是否有办法找到 ELS 的确切安装版本吗?

from the Chrome Rest client make a GET request or curl -XGET 'http://localhost:9200' in console从 Chrome Rest 客户端发出 GET 请求或curl -XGET 'http://localhost:9200'在控制台

rest client: http://localhost:9200休息客户端: http://localhost:9200

{
    "name": "node",
    "cluster_name": "elasticsearch-cluster",
    "version": {
        "number": "2.3.4",
        "build_hash": "dcxbgvzdfbbhfxbhx",
        "build_timestamp": "2016-06-30T11:24:31Z",
        "build_snapshot": false,
        "lucene_version": "5.5.0"
    },
    "tagline": "You Know, for Search"
}

where number field denotes the elasticsearch version.其中 number 字段表示elasticsearch版本。 Here elasticsearch version is 2.3.4这里elasticsearch版本是2.3.4

I would like to add which isn't mentioned in above answers.我想补充上述答案中未提及的内容。

From your kibana's dev console, hit following command:在 kibana 的开发控制台中,点击以下命令:

GET /

This is similar to accessing localhost:9200 from browser.这类似于从浏览器访问localhost:9200

Hope this will help someone.希望这会帮助某人。

You can check version of ElasticSearch by the following command.您可以通过以下命令检查 ElasticSearch 的版本。 It returns some other information also:它还返回一些其他信息:

curl -XGET 'localhost:9200' curl -XGET '本地主机:9200'

{
  "name" : "Forgotten One",
  "cluster_name" : "elasticsearch",
  "version" : {
    "number" : "2.3.4",
    "build_hash" : "e455fd0c13dceca8dbbdbb1665d068ae55dabe3f",
    "build_timestamp" : "2016-06-30T11:24:31Z",
    "build_snapshot" : false,
    "lucene_version" : "5.5.0"
  },
  "tagline" : "You Know, for Search"
}

Here you can see the version number: 2.3.4在这里可以看到版本号:2.3.4

Typically Kibana is installed in /opt/logstash/bin/kibana .通常 Kibana 安装在/opt/logstash/bin/kibana 中 So you can get the kibana version as follows所以你可以得到kibana版本如下

/opt/kibana/bin/kibana --version

navigate to the folder where you have installed your kibana if you have used yum to install kibana it will be placed in following location by default如果您使用 yum 安装kibana ,请导航到您安装kibana的文件夹,默认情况下它将放置在以下位置

/usr/share/kibana

then use the following command然后使用以下命令

bin/kibana --version

To check Version of Your Running Kibana,Try this:要检查您正在运行的 Kibana 的版本,请尝试以下操作:

Step1.第1步。 Start your Kibana Service.启动您的 Kibana 服务。

Step2.第2步。 Open Browser and Type below line,打开浏览器并在下面输入,

    localhost:5601

Step3.第三步。 Go to settings->About转到设置->关于

  You can See Version of Your Running kibana.

You can Try this, After starting Service of elasticsearch Type below line in your browser.你可以试试这个,在你的浏览器中启动下面一行的弹性搜索服务后。

         localhost:9200

     It will give Output Something like that,

          {
           "status" : 200,
           "name" : "Hypnotia",
           "cluster_name" : "elasticsearch",
           "version" : {
           "number" : "1.7.1",
           "build_hash" : "b88f43fc40b0bcd7f173a1f9ee2e97816de80b19",
           "build_timestamp" : "2015-07-29T09:54:16Z",
           "build_snapshot" : false,
            "lucene_version" : "4.10.4"
                  },
            "tagline" : "You Know, for Search"
                  }

If you have installed x-pack to secure elasticseach, the request should contains the valid credential details.如果您已安装 x-pack 来保护 elasticseach,则请求应包含有效的凭据详细信息。

curl -XGET -u "elastic:passwordForElasticUser" 'localhost:9200'

Infact, if the security enabled all the subsequent requests should follow the same pattern (inline credentials should be provided).事实上,如果启用了安全性,则所有后续请求都应遵循相同的模式(应提供内联凭据)。

Ubuntu 18.0.4上执行此操作的另一种方法

sudo /usr/share/kibana/bin/kibana --version

The user @manoj has provided the correct answer to the question.用户@manoj 提供了问题的正确答案。 From Kibana host, a request to http://localhost:9200/ will not be answered, unless ElasticSearch is also running on the same node.来自 Kibana 主机的对http://localhost:9200/的请求将不会得到响应,除非 ElasticSearch 也在同一节点上运行。 Kibana listens on port 5601 not 9200. Kibana 侦听端口 5601 而不是 9200。

In most cases, except for DEV, ElasticSearch will not be on the same node as Kibana, for a number of reasons.在大多数情况下,除了 DEV,ElasticSearch 不会与 Kibana 位于同一节点上,原因有很多。 Therefore, to get information about your ElasticSearch from Kibana, you should select the "Dev Tools" tab on the left and in the console issue the command: GET /因此,要从 Kibana 获取有关您的 ElasticSearch 的信息,您应该选择左侧的“Dev Tools”选项卡并在控制台中发出命令: GET /

If you are logged into your Kibana, you can click on the Management tab and that will show your Kibana version.如果您已登录 Kibana,则可以单击“ Management选项卡,这将显示您的 Kibana 版本。 Alternatively, you can click on the small tube-like icon或者,您可以单击管状小图标在此处输入图片说明 and that will show the version number.这将显示版本号。

You can use the Dev Tools console in Kibana to obtain version information about Elasticsearch.您可以使用 Kibana 中的 Dev Tools 控制台获取有关 Elasticsearch 的版本信息。

You click "Dev Tools" to navigate into console.您单击“开发工具”以导航到控制台。

In the Dev Tools Console, you do a below query在开发工具控制台中,您执行以下查询

GET /

You will see version and number like below with other details also.您还将看到如下所示的版本和编号以及其他详细信息。

{
  "version" : {
      "number" : "6.5.1",
       ...
   }
}

If you looking for version in kibana ui如果您在 kibana ui 中寻找版本版本 kibana 用户界面

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM