Filebeat in docker, cannot reload configuration

Hello :smiley:

I'm wondering why it's not working if I modify the filebeat.yml file

Here is my configuration:

    # =========
    #  input
    # =========

    filebeat.prospectors:
      - input_type: log
        documnet_type: "xxx"
        paths:
          - /sample/*.log
    
    filebeat.config.prospectors:
      reload:
        enabled: true
        period: 10s

    # =========
    #  output
    # =========
    
    output.logstash:
      hosts: ["172.17.0.2:5043"]
    
    # =========
    #  logging
    # =========
    
    logging:
      level: info

And docker-compose.yml:

    version: '3'
    services:
      logserver:
        image: ''
        ports:
          - "5601:5601"
          - "5043:5043"
        container_name: logserver
      logclient:
        image: ''
        volumes:
          - ~/path/to/config:/sample
        environment:
          BEATS_NAME: filebeat
          BEATS_CONF: /sample/filebeat.yml
        container_name: logclient
        depends_on:
          - logserver

When I modify the configuration file that:

    logging.level: debug

It's seems nothing changed at all.

Is there any problem ?

Thanks :smiley:

Hi @delphi1989,

Config reload only works for prospectors lists: https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-configuration-reloading.html

So it allows you to load new prospectors on the fly, but you cannot change logging level in the same way

Thank you :smiley:

Save the day

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