# LogStash not working on Windows

**URL:** <https://discuss.elastic.co/t/logstash-not-working-on-windows/288202>\
**Category:** Logstash\
**Created:** [November 2, 2021, 7:21am UTC](https://discuss.elastic.co/t/logstash-not-working-on-windows/288202 "2021-11-02T07:21:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rainbow\_Lee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rainbow_lee/32/83244_2.png) [@Rainbow\_Lee](https://discuss.elastic.co/u/Rainbow_Lee)\
**Post date:** [November 2, 2021, 7:21am UTC](https://discuss.elastic.co/t/logstash-not-working-on-windows/288202/1 "2021-11-02T07:21:15Z")

</div>

I just download logstash-7.15.1 and unzip it.  
I run

```auto
./bin/logstash -f logstash-simple.conf

```

but got errors like this

```auto
[FATAL] 2021-11-02 14:21:27.366 [main] Logstash - Logstash stopped processing because of an error: (GemspecError)
[!] There was an error while loading `logstash-core-plugin-api.gemspec`:

        you might need to reinstall the gem which depends on the missing jar or in case there is Jars.lock then resolve the jars with `lock_jars` command

no such file to load -- /opt/maven/repository_sop/org/yaml/snakeyaml/1.26/snakeyaml-1.26 (LoadError). Bundler cannot continue.

 # from D:/WorkSpace/ELKStack/logstash-7.15.1/logstash-core-plugin-api/logstash-core-plugin-api.gemspec:23

```

Why does the maven repo point to an nonexistent directory like `/opt/xxxx` ? How can I configure it as my own local maven repo directory.

Thanks for your help!

---

<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:** [November 30, 2021, 7:21am UTC](https://discuss.elastic.co/t/logstash-not-working-on-windows/288202/2 "2021-11-30T07:21:39Z")

</div>

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