# How to load external configuration file?

**URL:** https://discuss.elastic.co/t/how-to-load-external-configuration-file/228757
**Category:** Beats
**Tags:** auditbeat
**Created:** [April 19, 2020, 7:10pm UTC](https://discuss.elastic.co/t/how-to-load-external-configuration-file/228757 "2020-04-19T19:10:01Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![kelk](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@kelk](https://discuss.elastic.co/u/kelk)
#### Post date: [April 19, 2020, 7:10pm UTC](https://discuss.elastic.co/t/how-to-load-external-configuration-file/228757/1 "2020-04-19T19:10:01Z")

</div>

hi  
we are trying to modularize all of the configurations as a standard. As per the [https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-configuration-reloading.html](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-configuration-reloading.html) link . I couldn't find a precise way of doing this for outputs, so my guess work was to

`# Put the below config into auditbeat.yml`

```
filebeat.config.outputs:
  enabled: true
  path: ouputs.d/*.yml

```

And created an ouputs.d directory and put a `my_ouputs.yml` file in `outputs.d`.

```
LICENSE.txt
NOTICE.txt
README.md
auditbeat
auditbeat.reference.yml
auditbeat.yml
data
fields.yml
kibana
logs
outputs.d

```

Is this the correct way?  
I'm getting error  
`Exiting: No outputs are defined. Please define one under the output section.`

Any ideas on modularizing the configs?

---

<div class="post-metadata">

### Author: ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)
#### Post date: [April 20, 2020, 5:01pm UTC](https://discuss.elastic.co/t/how-to-load-external-configuration-file/228757/2 "2020-04-20T17:01:53Z")

</div>

Hi @kelk, welcome to the Elastic community forums!

Currently Filebeat only allows external configuration files for modules and inputs. Moving your output configuration to an external configuration file is not supported. Feel free to file an issue for this enhancement request here: [https://github.com/elastic/beats/issues/new?template=feature-request.md](https://github.com/elastic/beats/issues/new?template=feature-request.md).

One thing I'll mention is that Filebeat (or really any Beat) can only have a single output. By contrast, Filebeat can have multiple inputs and/or modules. So moving those to external configuration files might make more sense than for a single output. But this is more just an opinion; I think if you can make a strong enough case for this in your enhancement request issue and there's interest from other users in the community as well, we'd definitely prioritize it!

Hope that helps,

Shaunak

---

<div class="post-metadata">

### Author: ![kelk](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@kelk](https://discuss.elastic.co/u/kelk)
#### Post date: [April 20, 2020, 5:46pm UTC](https://discuss.elastic.co/t/how-to-load-external-configuration-file/228757/3 "2020-04-20T17:46:42Z")

</div>

Thanks for the clarification. I will raise as enhancement request as we don't want to touch the core config files.

---

<div class="post-metadata">

### Author: ![kelk](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@kelk](https://discuss.elastic.co/u/kelk)
#### Post date: [April 23, 2020, 7:15pm UTC](https://discuss.elastic.co/t/how-to-load-external-configuration-file/228757/4 "2020-04-23T19:15:06Z")

</div>

Raised: [https://github.com/elastic/beats/issues/17842](https://github.com/elastic/beats/issues/17842)

---

<div class="post-metadata">

### Author: ![Wolverival](https://avatars.discourse-cdn.com/v4/letter/w/e9a140/32.png) [@Wolverival](https://discuss.elastic.co/u/Wolverival)
#### Post date: [April 28, 2020, 10:05am UTC](https://discuss.elastic.co/t/how-to-load-external-configuration-file/228757/5 "2020-04-28T10:05:27Z")

</div>

Thank you for the information and advice! [PrepaidCardStatus Login](http://www.prepaidcardstatus.tips/)

---

<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 19, 2020, 10:05am UTC](https://discuss.elastic.co/t/how-to-load-external-configuration-file/228757/6 "2020-05-19T10:05:31Z")

</div>

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