# Logstash installation batch files v8.11.3 do not work

**URL:** <https://discuss.elastic.co/t/logstash-installation-batch-files-v8-11-3-do-not-work/351306>\
**Category:** Logstash\
**Tags:** windows\
**Created:** [January 17, 2024, 8:18pm UTC](https://discuss.elastic.co/t/logstash-installation-batch-files-v8-11-3-do-not-work/351306 "2024-01-17T20:18:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrew3](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@andrew3](https://discuss.elastic.co/u/andrew3)\
**Post date:** [January 17, 2024, 8:18pm UTC](https://discuss.elastic.co/t/logstash-installation-batch-files-v8-11-3-do-not-work/351306/1 "2024-01-17T20:18:40Z")

</div>

JRUBY\_BIN: In v8.11.3 SETUP.BAT looks for it in a directory that does not exist in the Windows distribution, causing the "first stash" in the docs. to always fail. Anyone else run across this?

Details:  
In SETUP.BAT line 65 is:  
set JRUBY\_BIN="%LS\_HOME%\vendor\jruby\bin\jruby"  
but the directory tree on disk is:  
"%LS\_HOME%\vendor\bundle\jruby\3.1.0\bin  
with no jruby in bin

---

<div class="post-metadata">

**Author:** ![andrew3](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@andrew3](https://discuss.elastic.co/u/andrew3)\
**Post date:** [January 31, 2024, 7:19pm UTC](https://discuss.elastic.co/t/logstash-installation-batch-files-v8-11-3-do-not-work/351306/3 "2024-01-31T19:19:06Z")

</div>

Fixed. Poblem was the length of a path under windows. It caused truncation. Solution: Install near the root with short directory names.

---

<div class="post-metadata">

**Author:** ![andrew3](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@andrew3](https://discuss.elastic.co/u/andrew3)\
**Post date:** [January 31, 2024, 7:19pm UTC](https://discuss.elastic.co/t/logstash-installation-batch-files-v8-11-3-do-not-work/351306/4 "2024-01-31T19:19:36Z")

</div>

Thanks for the reply @andrew3!

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [January 31, 2024, 8:41pm UTC](https://discuss.elastic.co/t/logstash-installation-batch-files-v8-11-3-do-not-work/351306/5 "2024-01-31T20:41:43Z")

</div>

You should use NSSM - the Non-Sucking Service Manager for the service registration on Windows.

---

<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:** [February 28, 2024, 8:42pm UTC](https://discuss.elastic.co/t/logstash-installation-batch-files-v8-11-3-do-not-work/351306/6 "2024-02-28T20:42:30Z")

</div>

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