# Most minimal logstash.yml possible?

**URL:** <https://discuss.elastic.co/t/most-minimal-logstash-yml-possible/334512>\
**Category:** Logstash\
**Created:** [May 27, 2023, 8:58pm UTC](https://discuss.elastic.co/t/most-minimal-logstash-yml-possible/334512 "2023-05-27T20:58:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![newmember](https://avatars.discourse-cdn.com/v4/letter/n/ce7236/32.png) [@newmember](https://discuss.elastic.co/u/newmember)\
**Post date:** [May 27, 2023, 8:58pm UTC](https://discuss.elastic.co/t/most-minimal-logstash-yml-possible/334512/1 "2023-05-27T20:58:42Z")

</div>

I would like to load all my inputs via the conf.d folder.

What is most minimal logstash.yml fle I can have that will allow logstash to start and then load all the yml files in the conf.d folder?

Current logstash.yml file

```auto
azureuser@kafka-elk-lab3:~$ sudo cat /etc/logstash/logstash.yml
input {
  kafka {
    bootstrap_servers => "localhost:9092"
    topics => "apache"
    }
}
filter {
    grok {
      match => { "message" => "%{COMBINEDAPACHELOG}" }
    }
    date {
    match => ["timestamp" , "dd/MMM/yyyy:HH:mm:ss Z"]
    }
  geoip {
      source => "clientip"
      target => "clientgeo"
    }
}
output {
  elasticsearch {
    hosts => ["localhost:9200"]
  }
}

```

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [May 27, 2023, 9:37pm UTC](https://discuss.elastic.co/t/most-minimal-logstash-yml-possible/334512/2 "2023-05-27T21:37:20Z")

</div>

You should put that in logstash.conf or anything named with .conf.  
The logstash.yml contains LS settings related to LS execution. Read [here](https://www.elastic.co/guide/en/logstash/current/logstash-settings-file.html).

---

<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:** [June 24, 2023, 9:37pm UTC](https://discuss.elastic.co/t/most-minimal-logstash-yml-possible/334512/3 "2023-06-24T21:37:46Z")

</div>

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