# Logstash failed to start with error "Logstash stopped processing because of an error: (SystemExit) exit"

**URL:** <https://discuss.elastic.co/t/logstash-failed-to-start-with-error-logstash-stopped-processing-because-of-an-error-systemexit-exit/173884>\
**Category:** Logstash\
**Created:** [March 26, 2019, 8:34am UTC](https://discuss.elastic.co/t/logstash-failed-to-start-with-error-logstash-stopped-processing-because-of-an-error-systemexit-exit/173884 "2019-03-26T08:34:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benjen](https://avatars.discourse-cdn.com/v4/letter/b/cc9497/32.png) [@Benjen](https://discuss.elastic.co/u/Benjen)\
**Post date:** [March 26, 2019, 8:34am UTC](https://discuss.elastic.co/t/logstash-failed-to-start-with-error-logstash-stopped-processing-because-of-an-error-systemexit-exit/173884/1 "2019-03-26T08:34:08Z")

</div>

I am an amateur to ELK and working on setup the logstash to elasticsearch (on elastic cloud). So ultimately my logs will be shipping from local logstash machine to Elastic Cloud. At some point I was managed to check my log via Kibana on Elastic Cloud. Yet, thing somehow goes wrong and logstash failed to start.

I checked some related error but no good news.  
[https://discuss.elastic.co/t/pipeline-yml-not-working/117120](https://discuss.elastic.co/t/pipeline-yml-not-working/117120)  
Error showed that I may check on pipeline.yml , yet I never found any pipeline.yml in my environment. Is there any troubleshooting direction I may need to dive into?

**One of the .conf files under conf.d:**

> ```
> input {
> beats {
> port => "5044"
> tags => ["beat"]
> }
> }
> filter {
> if "beat" in [tags] {
> mutate {
> ##add_tag => ["conf_file_9500"]
> }
> }
> }
> output {
> if "beat" in [tags] {
> elasticsearch {
> # hosts => elasticsearch
> hosts => " ******"
> user => " ******"
> password => " ******" 
> index => "logstash-beats-%{+YYYY.MM.dd}"
> template_name => "logstash-beats"
> template => "/beats-template.json"
> template_overwrite => true
> }
> }
> }
> 
> ```

**Logstash.yml:**

> ```
> # * error
> # * warn
> # * info (default)
> # * debug
> # * trace
> #
> log.level: debug
> # path.logs:
> path.logs: /var/log/logstash
> #
> # ------------ Other Settings --------------
> #
> # Where to find custom plugins
> # path.plugins: [\*]
> # pipeline.workers: 2
> # pipeline.workers: 2
> # pipeline.workers: 2
> 
> ```

**Logstash**

> ```
> [2019-03-26T07:57:05,118][DEBUG][logstash.runner] config.support_escapes: false
> [2019-03-26T07:57:05,119][DEBUG][logstash.runner] config.field_reference.parser: "COMPAT"
> [2019-03-26T07:57:05,119][DEBUG][logstash.runner] metric.collect: true
> [2019-03-26T07:57:05,119][DEBUG][logstash.runner] pipeline.id: "main"
> [2019-03-26T07:57:05,119][DEBUG][logstash.runner] pipeline.system: false
> [2019-03-26T07:57:05,119][DEBUG][logstash.runner] pipeline.workers: 12
> [2019-03-26T07:57:05,119][DEBUG][logstash.runner] pipeline.output.workers: 1
> [2019-03-26T07:57:05,119][DEBUG][logstash.runner] pipeline.batch.size: 125
> [2019-03-26T07:57:05,119][DEBUG][logstash.runner] pipeline.batch.delay: 50
> [2019-03-26T07:57:05,119][DEBUG][logstash.runner] pipeline.unsafe_shutdown: false
> [2019-03-26T07:57:05,119][DEBUG][logstash.runner] pipeline.java_execution: false
> [2019-03-26T07:57:05,119][DEBUG][logstash.runner] pipeline.reloadable: true
> [2019-03-26T07:57:05,119][DEBUG][logstash.runner] path.plugins: []
> [2019-03-26T07:57:05,119][DEBUG][logstash.runner] config.debug: false
> [2019-03-26T07:57:05,120][DEBUG][logstash.runner] *log.level: "debug" (default: "info")
> [2019-03-26T07:57:05,120][DEBUG][logstash.runner] version: false
> [2019-03-26T07:57:05,120][DEBUG][logstash.runner] help: false
> [2019-03-26T07:57:05,120][DEBUG][logstash.runner] log.format: "plain"
> [2019-03-26T07:57:05,120][DEBUG][logstash.runner] http.host: "127.0.0.1"
> [2019-03-26T07:57:05,120][DEBUG][logstash.runner] http.port: 9600..9700
> [2019-03-26T07:57:05,120][DEBUG][logstash.runner] http.environment: "production"
> [2019-03-26T07:57:05,120][DEBUG][logstash.runner] queue.type: "memory"
> [2019-03-26T07:57:05,120][DEBUG][logstash.runner] queue.drain: false
> [2019-03-26T07:57:05,120][DEBUG][logstash.runner] queue.page_capacity: 67108864
> [2019-03-26T07:57:05,120][DEBUG][logstash.runner] queue.max_bytes: 1073741824
> [2019-03-26T07:57:05,120][DEBUG][logstash.runner] queue.max_events: 0
> [2019-03-26T07:57:05,121][DEBUG][logstash.runner] queue.checkpoint.acks: 1024
> [2019-03-26T07:57:05,121][DEBUG][logstash.runner] queue.checkpoint.writes: 1024
> [2019-03-26T07:57:05,121][DEBUG][logstash.runner] queue.checkpoint.interval: 1000
> [2019-03-26T07:57:05,121][DEBUG][logstash.runner] dead_letter_queue.enable: false
> [2019-03-26T07:57:05,121][DEBUG][logstash.runner] dead_letter_queue.max_bytes: 1073741824
> [2019-03-26T07:57:05,121][DEBUG][logstash.runner] slowlog.threshold.warn: -1
> [2019-03-26T07:57:05,121][DEBUG][logstash.runner] slowlog.threshold.info: -1
> [2019-03-26T07:57:05,121][DEBUG][logstash.runner] slowlog.threshold.debug: -1
> [2019-03-26T07:57:05,121][DEBUG][logstash.runner] slowlog.threshold.trace: -1
> [2019-03-26T07:57:05,121][DEBUG][logstash.runner] keystore.classname: "org.logstash.secret.store.backend.JavaKeyStore"
> [2019-03-26T07:57:05,121][DEBUG][logstash.runner] keystore.file: "/usr/share/logstash/config/logstash.keystore"
> [2019-03-26T07:57:05,121][DEBUG][logstash.runner] path.queue: "/usr/share/logstash/data/queue"
> [2019-03-26T07:57:05,121][DEBUG][logstash.runner] path.dead_letter_queue: "/usr/share/logstash/data/dead_letter_queue"
> [2019-03-26T07:57:05,122][DEBUG][logstash.runner] path."/usr/share/logstash/config"
> [2019-03-26T07:57:05,122][DEBUG][logstash.runner] *path.logs: "/var/log/logstash" (default: "/usr/share/logstash/logs")
> [2019-03-26T07:57:05,122][DEBUG][logstash.runner] --------------- Logstash Settings -------------------
> [2019-03-26T07:57:05,216][DEBUG][logstash.config.source.multilocal] Reading pipeline configurations from YAML {:location=>"/usr/share/logstash/config/pipelines.yml"}
> [2019-03-26T07:57:05,279][ERROR][org.logstash.Logstash] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit
> root@socadmin-virtual-machine:/etc/logstash# Logstash stopped processing because of an error: (SystemExit) exitLogstash stopped processing because of an error: (SystemExit) exit
> 
> ```

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 26, 2019, 1:04pm UTC](https://discuss.elastic.co/t/logstash-failed-to-start-with-error-logstash-stopped-processing-because-of-an-error-systemexit-exit/173884/2 "2019-03-26T13:04:25Z")

</div>

It says it is reading /usr/share/logstash/config/pipelines.yml. What is in that file?

---

<div class="post-metadata">

**Author:** ![Benjen](https://avatars.discourse-cdn.com/v4/letter/b/cc9497/32.png) [@Benjen](https://discuss.elastic.co/u/Benjen)\
**Post date:** [March 27, 2019, 1:29am UTC](https://discuss.elastic.co/t/logstash-failed-to-start-with-error-logstash-stopped-processing-because-of-an-error-systemexit-exit/173884/3 "2019-03-27T01:29:32Z")

</div>

The directory "/usr/share/logstash" doesn't exist, so there isn't any pipeline.yml at all.

---

<div class="post-metadata">

**Author:** ![Benjen](https://avatars.discourse-cdn.com/v4/letter/b/cc9497/32.png) [@Benjen](https://discuss.elastic.co/u/Benjen)\
**Post date:** [March 27, 2019, 4:42am UTC](https://discuss.elastic.co/t/logstash-failed-to-start-with-error-logstash-stopped-processing-because-of-an-error-systemexit-exit/173884/4 "2019-03-27T04:42:50Z")

</div>

> [@Benjen](#):
>
> Logstash.yml:

I modified Logstash.yml config file and now it works fine. Thanks guys!

---

<div class="post-metadata">

**Author:** ![Savagepony](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/savagepony/32/55262_2.png) [@Savagepony](https://discuss.elastic.co/u/Savagepony)\
**Post date:** [April 1, 2019, 6:15pm UTC](https://discuss.elastic.co/t/logstash-failed-to-start-with-error-logstash-stopped-processing-because-of-an-error-systemexit-exit/173884/5 "2019-04-01T18:15:35Z")

</div>

Benjen, may I know what changes did you do in Logstash.yml file?

Thanks

---

<div class="post-metadata">

**Author:** ![Benjen](https://avatars.discourse-cdn.com/v4/letter/b/cc9497/32.png) [@Benjen](https://discuss.elastic.co/u/Benjen)\
**Post date:** [April 8, 2019, 2:10am UTC](https://discuss.elastic.co/t/logstash-failed-to-start-with-error-logstash-stopped-processing-because-of-an-error-systemexit-exit/173884/6 "2019-04-08T02:10:59Z")

</div>

I suspected the yml file was crashed and simply replaced the file content with a freshly installed one. Then everything backed to the track.

---

<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:** [May 6, 2019, 2:10am UTC](https://discuss.elastic.co/t/logstash-failed-to-start-with-error-logstash-stopped-processing-because-of-an-error-systemexit-exit/173884/7 "2019-05-06T02:10:59Z")

</div>

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