# Filebeat live loading config not work

**URL:** https://discuss.elastic.co/t/filebeat-live-loading-config-not-work/152579
**Category:** Beats
**Tags:** filebeat
**Created:** [October 16, 2018, 2:12am UTC](https://discuss.elastic.co/t/filebeat-live-loading-config-not-work/152579 "2018-10-16T02:12:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![darkrasid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/darkrasid/32/36601_2.png) [@darkrasid](https://discuss.elastic.co/u/darkrasid)
#### Post date: [October 16, 2018, 2:12am UTC](https://discuss.elastic.co/t/filebeat-live-loading-config-not-work/152579/1 "2018-10-16T02:12:15Z")

</div>

Hi, I'm beginner of filebeat.

When I use filebeat live config, filebeat ignores config file.

filebeat version: 6.2.2

my filebeat.yml

```auto
filebeat.config.inputs:
  enabled: true
  path: /usr/share/filebeat/inputs.d/*.yml
  reload.enabled: true
  reload.period: 10s

```

and `/usr/share/filebeat/inputs.d/config.yml`

```auto
    filebeat.prospectors:
    - type: log
      paths:
        - "/logs/*.log"
      json.keys_under_root: true
      fields:
        log_topic: TEST
    output.kafka:
      hosts: ["kafka1:9090","kafka2:9090","kafka3:9090"]
      topic: '%{[fields.log_topic]}'
      keep_alive: 5
      compression: gzip

```

And Error

```auto
2018-10-16T01:51:34.203Z INFO instance/beat.go:468 Home path: [/usr/share/filebeat] Config path: [/usr/share/filebeat] Data path: [/usr/share/filebeat/data] Logs path: [/usr/share/filebeat/logs]
2018-10-16T01:51:34.203Z INFO instance/beat.go:475 Beat UUID: 5dd7ebb2-a224-43d0-ba86-33c6945b3c19
2018-10-16T01:51:34.203Z INFO instance/beat.go:213 Setup Beat: filebeat; Version: 6.2.2
2018-10-16T01:51:34.203Z INFO pipeline/module.go:91 No outputs are defined. Please define one under the output section.
2018-10-16T01:51:34.203Z ERROR instance/beat.go:667 Exiting: error initializing publisher: No outputs are defined. Please define one under the output section.
Exiting: error initializing publisher: No outputs are defined. Please define one under the output section.

```

I load confguation with k8s configmap.

When I use config file below, it works well.

filebeat.yml

```auto
    filebeat.prospectors:
    - type: log
      paths:
        - "/logs/*.log"
      json.keys_under_root: true
      fields:
        log_topic: TEST
    output.kafka:
      hosts: ["kafka1:9092","kafka:9092"]
      topic: '%{[fields.log_topic]}'
      keep_alive: 5
      compression: gzip

```

Am I do something wrong?

---

<div class="post-metadata">

### Author: ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)
#### Post date: [October 16, 2018, 9:22pm UTC](https://discuss.elastic.co/t/filebeat-live-loading-config-not-work/152579/2 "2018-10-16T21:22:36Z")

</div>

Filebeat does not support full live reconfiguration. Filebeat supports auto-discovery for inputs and modules. The `filebeat.config.inputs` setting is a special input output discovery mode reading new input-only configurations from filebeat.

e.g.

filebeat.yml:

```auto
filebeat.config.inputs:
  enabled: true
  path: /usr/share/filebeat/inputs.d/*.yml
  reload.enabled: true
  reload.period: 10s

output.kafka:
      hosts: ["kafka1:9092","kafka:9092"]
      topic: '%{[fields.log_topic]}'
      keep_alive: 5
      compression: gzip

```

and `/usr/share/filebeat/inputs.d/logs.yml`:

```auto
- type: log
  paths:
    - "/logs/*.log"
  json.keys_under_root: true
  fields:
    log_topic: TEST

```

See: [https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-configuration-reloading.html#filebeat-configuration-reloading](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-configuration-reloading.html#filebeat-configuration-reloading)

---

<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: [November 13, 2018, 9:22pm UTC](https://discuss.elastic.co/t/filebeat-live-loading-config-not-work/152579/3 "2018-11-13T21:22:39Z")

</div>

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