# Logstash not working, if installed in a location where the path contains parentheses (on windows)

**URL:** https://discuss.elastic.co/t/logstash-not-working-if-installed-in-a-location-where-the-path-contains-parentheses-on-windows/309291
**Category:** Logstash
**Created:** [July 11, 2022, 6:57am UTC](https://discuss.elastic.co/t/logstash-not-working-if-installed-in-a-location-where-the-path-contains-parentheses-on-windows/309291 "2022-07-11T06:57:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![simon137](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@simon137](https://discuss.elastic.co/u/simon137)
#### Post date: [July 11, 2022, 6:57am UTC](https://discuss.elastic.co/t/logstash-not-working-if-installed-in-a-location-where-the-path-contains-parentheses-on-windows/309291/1 "2022-07-11T06:57:03Z")

</div>

Hello together,

As the title suggests, with a sample path of "C:\ProgramData\Test)Test\logstash", the call to ".\bin\logstash.bat" fails with the message: `"Test\logstash\jdk\bin\java.exe" cannot be processed syntactically at this point.` (it fails at the determination of some Java environment variable in the file "setup.bat" which is called within the logstash.bat)

If I comment out the relevant lines in the setup.bat file, the call to logstash.bat fails at a different spot: `"Test\logstash\logstash-core\lib\jars\animal-sniffer-annotations-1.14.jar" cannot be processed syntactically at this point.`

If I move logstash to another location where the path does not contain parentheses, it works just fine. Tested with logstash 7.17.4.

Is this a known issue and if so is there some kind of fix for it?

Thanks in advance for your help.  
Simon

---

<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 8, 2022, 6:57am UTC](https://discuss.elastic.co/t/logstash-not-working-if-installed-in-a-location-where-the-path-contains-parentheses-on-windows/309291/2 "2022-08-08T06:57:26Z")

</div>

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