23

I am just curious on how to check ElasticSearch version in Linux?

womble
  • 95,029
  • 29
  • 173
  • 228
Aminah Nuraini
  • 1,029
  • 1
  • 8
  • 15
  • 1
    This question is being voted for closure because the author does not show a level of technical understanding or appropriate due diligence in researching the topic that the community judges as being a minimum barrier to participate. – Jenny D Apr 05 '16 at 09:47
  • Thanks for letting me know. Just wanted to share my knowledge. It was a Q&A, not asking. – Aminah Nuraini Apr 05 '16 at 13:57
  • That's nice of you. But please spend a little more time on the site, especially on the [tour] and also on [meta] - specifically http://meta.serverfault.com/questions/3608/how-can-i-ask-better-questions-on-server-fault – Jenny D Apr 05 '16 at 14:16

1 Answers1

54

Just send curl -XGET 'localhost:9200'

And ElasticSearch will return its version in the respond, along with other info.

Aminah Nuraini
  • 1,029
  • 1
  • 8
  • 15
  • 5
    This works only in a case where you have only one version of ElasticSearch, and it's actually listening on port 9200 instead of another port, and it's listening to localhost and not on some other interface. – Jenny D Apr 05 '16 at 14:17
  • 5
    @JennyD you can also use `$ES_HOME/bin/elasticsearch -v` to get a version of specific Elasticsearch setup – Kirill Nov 28 '17 at 11:22
  • @Derp That is a lot more functional, yes. – Jenny D Nov 28 '17 at 11:24
  • In Windows use `curl -XGET localhost:9200` – yu yang Jian Jul 03 '18 at 07:23
  • In OSX installed through brew. elasticsearch --version Version: 5.4.0, Build: 780f8c4/2017-04-28T17:43:27.229Z, JVM: 1.8.0_131 – Nanhe Kumar Oct 23 '18 at 22:02