# Cannot reload "enabled" configuration

**URL:** <https://discuss.elastic.co/t/cannot-reload-enabled-configuration/211763>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 13, 2019, 8:24am UTC](https://discuss.elastic.co/t/cannot-reload-enabled-configuration/211763 "2019-12-13T08:24:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sewenew](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sewenew/32/59328_2.png) [@sewenew](https://discuss.elastic.co/u/sewenew)\
**Post date:** [December 13, 2019, 8:24am UTC](https://discuss.elastic.co/t/cannot-reload-enabled-configuration/211763/1 "2019-12-13T08:24:42Z")

</div>

I want to [reload input configuration with external configuration file](https://www.elastic.co/guide/en/beats/filebeat/current/_live_reloading.html). However, it seems that the _enabled_ option cannot be reloaded. Is there any workaround?

```auto
# filebeat.yml

filebeat.config.inputs:
  enabled: true
  path: inputs/*.yml
  reload.enabled: true
  reload.period: 3s

# other configurations

```

```auto
# inputs/input.yml

- type: log
  enabled: true # After change this option to false, filebeat still consumes new messges from this input.
  ignore_older: 10m
  paths:
    - /tmp/error/*.log # This option can be reloaded successfully

- type: log
  enabled: true
  ignore_older: 10m
  paths:
    - /tmp/info/*.log

```

The _paths_ option can be reloaded successfully, however, the _enabled_ option of _input.yml_ file cannot be reloaded. After changing it to _false_, filebeat still consumes messages from the related input.

Is there any way to dynamically disable an input?

Regards

---

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [December 13, 2019, 9:40am UTC](https://discuss.elastic.co/t/cannot-reload-enabled-configuration/211763/2 "2019-12-13T09:40:00Z")

</div>

Hey!

I was able to achieve this by "copying" what happens with modules (`modules.d` directory). So I have the directory the `inputs` and each input is defined in its own file like `error.yml`, `info,yml`.  
When i want to disable an input I just rename the file to `error.yml.disabled` and Filebeat stops collecting logs from it.

Let me know what you think.

---

<div class="post-metadata">

**Author:** ![sewenew](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sewenew/32/59328_2.png) [@sewenew](https://discuss.elastic.co/u/sewenew)\
**Post date:** [December 13, 2019, 10:49am UTC](https://discuss.elastic.co/t/cannot-reload-enabled-configuration/211763/3 "2019-12-13T10:49:21Z")

</div>

Hi @ChrsMark

I want to disable some inputs dynamically, and your solution works for me.

Thanks a lot!

Regards

---

<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:** [January 10, 2020, 10:49am UTC](https://discuss.elastic.co/t/cannot-reload-enabled-configuration/211763/4 "2020-01-10T10:49:26Z")

</div>

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