# How to check elasticsearch current version after login to linux ? How to upgrade it with new version?

**URL:** <https://discuss.elastic.co/t/how-to-check-elasticsearch-current-version-after-login-to-linux-how-to-upgrade-it-with-new-version/310865>\
**Category:** Elasticsearch\
**Created:** [July 28, 2022, 12:48pm UTC](https://discuss.elastic.co/t/how-to-check-elasticsearch-current-version-after-login-to-linux-how-to-upgrade-it-with-new-version/310865 "2022-07-28T12:48:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jisha](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jisha](https://discuss.elastic.co/u/jisha)\
**Post date:** [July 28, 2022, 12:48pm UTC](https://discuss.elastic.co/t/how-to-check-elasticsearch-current-version-after-login-to-linux-how-to-upgrade-it-with-new-version/310865/1 "2022-07-28T12:48:53Z")

</div>

Hi ,  
I am new to elk in linux.  
How to check elasticsearch current version after login to linux ? I want to upgrade it with new version also .

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 28, 2022, 11:13pm UTC](https://discuss.elastic.co/t/how-to-check-elasticsearch-current-version-after-login-to-linux-how-to-upgrade-it-with-new-version/310865/2 "2022-07-28T23:13:05Z")

</div>

`curl ESHOST:9200` will give you the version.

---

<div class="post-metadata">

**Author:** ![jisha](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jisha](https://discuss.elastic.co/u/jisha)\
**Post date:** [July 29, 2022, 4:54am UTC](https://discuss.elastic.co/t/how-to-check-elasticsearch-current-version-after-login-to-linux-how-to-upgrade-it-with-new-version/310865/3 "2022-07-29T04:54:10Z")

</div>

Its not showing the version details

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/2/b27993d7d69fd8a9db0eceecb137caf935960fe5.png)

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [July 29, 2022, 5:24am UTC](https://discuss.elastic.co/t/how-to-check-elasticsearch-current-version-after-login-to-linux-how-to-upgrade-it-with-new-version/310865/4 "2022-07-29T05:24:07Z")

</div>

Please don't post pictures of text. It's hard to read and cannot be debugged or searched.

That is usually the response when you're trying to `curl` on `HTTP` when it should be `HTTPS`

---

<div class="post-metadata">

**Author:** ![jisha](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jisha](https://discuss.elastic.co/u/jisha)\
**Post date:** [July 29, 2022, 5:35am UTC](https://discuss.elastic.co/t/how-to-check-elasticsearch-current-version-after-login-to-linux-how-to-upgrade-it-with-new-version/310865/5 "2022-07-29T05:35:58Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/5/2/52ae40856b7fd4d71c04edf0aacafad1b18da5c3.png)  
Its showing as connection refused.  
curl: (7) Failed connect to 10.246.88.54:9200; Connection refused

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 29, 2022, 6:23am UTC](https://discuss.elastic.co/t/how-to-check-elasticsearch-current-version-after-login-to-linux-how-to-upgrade-it-with-new-version/310865/6 "2022-07-29T06:23:33Z")

</div>

Is Elasticsearch running?  
What does your elasticsearch.yml look like?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 26, 2022, 6:23am UTC](https://discuss.elastic.co/t/how-to-check-elasticsearch-current-version-after-login-to-linux-how-to-upgrade-it-with-new-version/310865/7 "2022-08-26T06:23:41Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
