# Logstash stopped processing because of an error: (SystemExit) exit

**URL:** <https://discuss.elastic.co/t/logstash-stopped-processing-because-of-an-error-systemexit-exit/299474>\
**Category:** Logstash\
**Created:** [March 11, 2022, 3:47pm UTC](https://discuss.elastic.co/t/logstash-stopped-processing-because-of-an-error-systemexit-exit/299474 "2022-03-11T15:47:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulov](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@paulov](https://discuss.elastic.co/u/paulov)\
**Post date:** [March 11, 2022, 3:47pm UTC](https://discuss.elastic.co/t/logstash-stopped-processing-because-of-an-error-systemexit-exit/299474/1 "2022-03-11T15:47:59Z")

</div>

Hi,

After instaling/configuring logstash, I get this error:

[2022-03-11T09:22:27,379][INFO][logstash.runner] Log4j configuration path used is: /u02/logstash\_frontend/etc/log4j2.properties  
[2022-03-11T09:22:27,398][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"8.1.0", "jruby.version"=\>"jruby 9.2.20.1 (2.5.8) 2021-11-30 2a2962fbd1 OpenJDK 64-Bit Server VM 11.0.13+8 on 11.0.13+8 +jit [linux-x86\_64]"}  
[2022-03-11T09:22:27,404][INFO][logstash.runner] JVM bootstrap flags:   
[2022-03-11T09:22:27,772][FATAL][org.logstash.Logstash] Logstash stopped processing because of an error: (SystemExit) exit  
org.jruby.exceptions.SystemExit: (SystemExit) exit  
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:747) ~[jruby.jar:?]  
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby.jar:?]  
at u01.logstash.lib.bootstrap.environment.(/u01/logstash/lib/bootstrap/environment.rb:94) ~[?:?]

Other topics mention data directory that should be of user logstash, which it is. So that's not the cause. Also the lib directory should be open to user logstash, also not the cause.

Is there some other way to find out anything on the root cause of this error?

thanks

---

<div class="post-metadata">

**Author:** ![markn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markn/32/74417_2.png) [@markn](https://discuss.elastic.co/u/markn)\
**Post date:** [March 11, 2022, 4:12pm UTC](https://discuss.elastic.co/t/logstash-stopped-processing-because-of-an-error-systemexit-exit/299474/2 "2022-03-11T16:12:02Z")

</div>

Hi, I am a colleague of Paul. We run on RedHat 7.9

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [March 11, 2022, 4:24pm UTC](https://discuss.elastic.co/t/logstash-stopped-processing-because-of-an-error-systemexit-exit/299474/3 "2022-03-11T16:24:03Z")

</div>

How are you starting logstash? This is the full log you are getting?

Share your `logstash.yml` file as well.

---

<div class="post-metadata">

**Author:** ![markn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markn/32/74417_2.png) [@markn](https://discuss.elastic.co/u/markn)\
**Post date:** [March 12, 2022, 2:10pm UTC](https://discuss.elastic.co/t/logstash-stopped-processing-because-of-an-error-systemexit-exit/299474/4 "2022-03-12T14:10:30Z")

</div>

Hi Leandro, thanks for responding.  
We don't have any config yet, no pipelines whatsoever. This is the logstash.yml:

```auto
cat logstash.yml
path.data: "/u02/logstash_frontend/data"
path.queue: "/u02/logstash_frontend/queue"
path.logs: "/u02/logstash_frontend/log"

```

We start it with "systemctl start logstash\_frontend".

And yes, unfortunately that is the full log.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [March 12, 2022, 2:52pm UTC](https://discuss.elastic.co/t/logstash-stopped-processing-because-of-an-error-systemexit-exit/299474/5 "2022-03-12T14:52:43Z")

</div>

> [@markn](#):
>
> We don't have any config yet, no pipelines whatsoever.

Logstash won't start without a config file, you need at least one configuration with a working `input` and `output`, if you do not have a config file logstash has nothing to do and won't start.

But you should have a line that says something like `no config file found` in the logs, can you check for that?

---

<div class="post-metadata">

**Author:** ![markn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markn/32/74417_2.png) [@markn](https://discuss.elastic.co/u/markn)\
**Post date:** [March 14, 2022, 7:02am UTC](https://discuss.elastic.co/t/logstash-stopped-processing-because-of-an-error-systemexit-exit/299474/7 "2022-03-14T07:02:07Z")

</div>

Hi Leandro, we tried some stuff this afternoon. And we have our logstash user (logstash\_frontend) in group logstash. And everyone in group logstash should be able to read/write in the logstash folder (and subfolders like /data). But we made a mistake with the folder permissions.... duh...

Anyway, strange thing is that starting with systemctl no specific log (only "... stopped because of an error".

While starting it from command line we got on error on jvm.options file

```auto

/u01/logstash/bin/logstash "--path.settings" "/u02/logstash_frontend/etc"

Using bundled JDK: /u01/logstash/jdk
encountered [2] errors parsing [/u02/logstash_frontend/etc/jvm.options][1]: encountered improperly formatted JVM option in [/u02/logstash_frontend/etc/jvm.options] on line number [20]: [11-13:#-XX:+UseConcMarkSweepGC][2]: encountered improperly formatted JVM option in [/u02/logstash_frontend/etc/jvm.options]

```

I know this is not the folder permission error, we found that later.

Kind regards,  
Mark

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [March 14, 2022, 12:57pm UTC](https://discuss.elastic.co/t/logstash-stopped-processing-because-of-an-error-systemexit-exit/299474/8 "2022-03-14T12:57:17Z")

</div>

Did you change the default `jvm.options`?

It says that the error is on line `20`, from the error log it seems that this line is wrongly formatted in your `jvm.options`.

It shows as:

```auto
11-13:#-XX:+UseConcMarkSweepGC

```

The `#` is in a wrong position, if you want to comment this line you should but the `#` at the beginning.

```auto
#11-13:-XX:+UseConcMarkSweepGC

```

---

<div class="post-metadata">

**Author:** ![paulov](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@paulov](https://discuss.elastic.co/u/paulov)\
**Post date:** [March 14, 2022, 2:25pm UTC](https://discuss.elastic.co/t/logstash-stopped-processing-because-of-an-error-systemexit-exit/299474/9 "2022-03-14T14:25:31Z")

</div>

Hi,

Yes, the problem was that we in our postinstall modified the jvm.options but in wrong way (placing the # in wrong position).

I have adapted our scripts so won’t occur any more. Our issues are solved now.

---

<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:** [April 11, 2022, 2:26pm UTC](https://discuss.elastic.co/t/logstash-stopped-processing-because-of-an-error-systemexit-exit/299474/10 "2022-04-11T14:26:23Z")

</div>

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