# 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/306721
**Category:** Logstash
**Created:** [June 8, 2022, 3:40pm UTC](https://discuss.elastic.co/t/logstash-not-working-if-installed-in-a-location-where-the-path-contains-parentheses-on-windows/306721 "2022-06-08T15:40:29Z")
**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: [June 8, 2022, 3:40pm UTC](https://discuss.elastic.co/t/logstash-not-working-if-installed-in-a-location-where-the-path-contains-parentheses-on-windows/306721/1 "2022-06-08T15:40:29Z")

</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?

---

<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: [July 6, 2022, 3:41pm UTC](https://discuss.elastic.co/t/logstash-not-working-if-installed-in-a-location-where-the-path-contains-parentheses-on-windows/306721/2 "2022-07-06T15:41:14Z")

</div>

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