# \[HELP\] I Broke my logstash.yml

**URL:** <https://discuss.elastic.co/t/help-i-broke-my-logstash-yml/179440>\
**Category:** Logstash\
**Created:** [May 2, 2019, 10:09pm UTC](https://discuss.elastic.co/t/help-i-broke-my-logstash-yml/179440 "2019-05-02T22:09:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![TiNhO](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tinho/32/41986_2.png) [@TiNhO](https://discuss.elastic.co/u/TiNhO)\
**Post date:** [May 2, 2019, 10:09pm UTC](https://discuss.elastic.co/t/help-i-broke-my-logstash-yml/179440/1 "2019-05-02T22:09:24Z")

</div>

I'm trying use multiple pipelines and made some modifications in logstash.yml and now i get this error:

```
Sending Logstash logs to /opt/bitnami/logstash/logs which is now configured via log4j2.properties
[2019-05-02T18:47:23,615][FATAL][logstash.runner] An unexpected error occurred! {:error=>#<ArgumentError: Setting "" hasn't been registered>, :backtrace=>["/opt/bitnami/logstash/logstash-core/lib/logstash/settings.rb:36:in `get_setting'", "/opt/bitnami/logstash/logstash-core/lib/logstash/settings.rb:69:in `set_value'", "/opt/bitnami/logstash/logstash-core/lib/logstash/settings.rb:88:in `block in merge'", "org/jruby/RubyHash.java:1419:in `each'", "/opt/bitnami/logstash/logstash-core/lib/logstash/settings.rb:88:in `merge'", "/opt/bitnami/logstash/logstash-core/lib/logstash/settings.rb:137:in `validate_all'", "/opt/bitnami/logstash/logstash-core/lib/logstash/runner.rb:278:in `execute'", "/opt/bitnami/logstash/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:67:in `run'", "/opt/bitnami/logstash/logstash-core/lib/logstash/runner.rb:237:in `run'", "/opt/bitnami/logstash/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:132:in `run'", "/opt/bitnami/logstash/lib/bootstrap/environment.rb:73:in `<main>'"]}
[2019-05-02T18:47:23,638][ERROR][org.logstash.Logstash] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

```

My logstash.yml:

```
- pipeline.id: mw
  path.config: "/opt/logstash/conf/mw.conf"
- pipeline.id: uw
  path.config: "/opt/logstash/conf/uw.conf"
- pipeline.id: gw
  path.config: "/opt/logstash/conf/gw.conf"
- pipeline.id: ln
  path.config: "/opt/logstash/conf/ln.conf"
- pipeline.id: sp
  path.config: "/opt/logstash/conf/sp.conf"
- pipeline.id: spw
  path.config: "/opt/logstash/conf/spw.conf"

```

My pipelines.yml

```
 - pipeline.id: mw
   pipeline.workers: 1
   path.config: "/opt/logstash/conf/mw.conf"
 - pipeline.id: uw
   pipeline.workers: 1
   path.config: "/opt/logstash/conf/uw.conf"
 - pipeline.id: gw
   pipeline.workers: 1
   path.config: "/opt/logstash/conf/gw.conf"
 - pipeline.id: ln
   pipeline.workers: 1
   path.config: "/opt/logstash/conf/ln.conf"
 - pipeline.id: sp
   pipeline.workers: 1
   path.config: "/opt/logstash/conf/sp.conf"
 - pipeline.id: spw
   pipeline.workers: 1
   path.config: "/opt/logstash/conf/spw.conf"

```

I tested each of .conf and alr are OK.

How can I fix it?

---

<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:** [May 2, 2019, 10:29pm UTC](https://discuss.elastic.co/t/help-i-broke-my-logstash-yml/179440/2 "2019-05-02T22:29:23Z")

</div>

Can you edit your post and replace the second copy of pipelines.yml with your logstash.yml?

---

<div class="post-metadata">

**Author:** ![TiNhO](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tinho/32/41986_2.png) [@TiNhO](https://discuss.elastic.co/u/TiNhO)\
**Post date:** [May 3, 2019, 1:52pm UTC](https://discuss.elastic.co/t/help-i-broke-my-logstash-yml/179440/3 "2019-05-03T13:52:27Z")

</div>

@Badger I'm sorry but I do not understand where you want to go with this modification.

---

<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:** [May 3, 2019, 2:50pm UTC](https://discuss.elastic.co/t/help-i-broke-my-logstash-yml/179440/4 "2019-05-03T14:50:21Z")

</div>

I would expect your logstash.yml to contain something like

path.data: /var/lib/logstash  
path.logs: /var/log/logstash

Yours appears to be a copy of pipelines.yml

---

<div class="post-metadata">

**Author:** ![TiNhO](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tinho/32/41986_2.png) [@TiNhO](https://discuss.elastic.co/u/TiNhO)\
**Post date:** [May 3, 2019, 4:51pm UTC](https://discuss.elastic.co/t/help-i-broke-my-logstash-yml/179440/5 "2019-05-03T16:51:16Z")

</div>

I'm using a AWS instance created by bitnami so all this things are configured by default and don't need be explicit at files.

---

<div class="post-metadata">

**Author:** ![TiNhO](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tinho/32/41986_2.png) [@TiNhO](https://discuss.elastic.co/u/TiNhO)\
**Post date:** [May 3, 2019, 7:13pm UTC](https://discuss.elastic.co/t/help-i-broke-my-logstash-yml/179440/6 "2019-05-03T19:13:47Z")

</div>

After over 10⁹⁹⁹⁹⁹⁹⁹⁹⁹⁹⁹⁹⁹⁹ tests I finally could make it work!

It's seem the "basic" structure are this:

```
pipeline.id:
path.config:
pipeline.workers:
pipeline.batch.size:
pipeline.batch.delay:

```

Without " - " (dash)

---

<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 31, 2019, 7:13pm UTC](https://discuss.elastic.co/t/help-i-broke-my-logstash-yml/179440/7 "2019-05-31T19:13:51Z")

</div>

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