# How can I check ruby version using in Logstash

**URL:** <https://discuss.elastic.co/t/how-can-i-check-ruby-version-using-in-logstash/139081>\
**Category:** Logstash\
**Created:** [July 9, 2018, 5:06am UTC](https://discuss.elastic.co/t/how-can-i-check-ruby-version-using-in-logstash/139081 "2018-07-09T05:06:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![seungtae](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seungtae/32/71413_2.png) [@seungtae](https://discuss.elastic.co/u/seungtae)\
**Post date:** [July 9, 2018, 5:06am UTC](https://discuss.elastic.co/t/how-can-i-check-ruby-version-using-in-logstash/139081/1 "2018-07-09T05:06:13Z")

</div>

How can I check ruby version using in Logstash??

---

<div class="post-metadata">

**Author:** ![seungtae](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seungtae/32/71413_2.png) [@seungtae](https://discuss.elastic.co/u/seungtae)\
**Post date:** [July 9, 2018, 5:06am UTC](https://discuss.elastic.co/t/how-can-i-check-ruby-version-using-in-logstash/139081/2 "2018-07-09T05:06:46Z")

</div>

Logstash version is 6.2.3

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 9, 2018, 6:04am UTC](https://discuss.elastic.co/t/how-can-i-check-ruby-version-using-in-logstash/139081/3 "2018-07-09T06:04:43Z")

</div>

I believe (based on [this issue](https://github.com/elastic/logstash/issues/7804)) that Logstash 6.x uses JRuby 9k.

---

<div class="post-metadata">

**Author:** ![abrx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abrx/32/43881_2.png) [@abrx](https://discuss.elastic.co/u/abrx)\
**Post date:** [July 16, 2018, 2:20pm UTC](https://discuss.elastic.co/t/how-can-i-check-ruby-version-using-in-logstash/139081/4 "2018-07-16T14:20:35Z")

</div>

Hi,

I guess that something like `/usr/share/logstash/vendor/jruby/bin/jruby --version` should help you (to adapt if you got custom home)

Regards,

---

<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 13, 2018, 2:20pm UTC](https://discuss.elastic.co/t/how-can-i-check-ruby-version-using-in-logstash/139081/5 "2018-08-13T14:20:35Z")

</div>

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