Disabling a Filebeat module stops its prebuilt inputs from collecting and shipping logs, keeping indices focused and reducing ingest pipeline load.

Modules are managed as individual configuration files under /etc/filebeat/modules.d, and the filebeat modules disable command toggles a module off by renaming its definition so it no longer matches the loader path (commonly from .yml to .yml.disabled).

Most Filebeat deployments load modules at startup, so changes under /etc/filebeat/modules.d typically require restarting the service to fully unload the module. Disabling a module does not delete already-ingested data and does not affect custom inputs defined outside the module system.

Steps to disable a Filebeat module:

  1. List module states to confirm the module name.
    $ sudo filebeat modules list
    Enabled:
    nginx
    system
    
    Disabled:
    activemq
    apache
    auditd
    aws
    awsfargate
    azure
    ##### snipped #####

    Modules listed under Disabled commonly have a .yml.disabled file under /etc/filebeat/modules.d.

  2. Disable the module.
    $ sudo filebeat modules disable nginx
    Disabled nginx

    Disabling the wrong module stops log shipping for that service and can create monitoring gaps.

    Disabling renames /etc/filebeat/modules.d/nginx.yml to /etc/filebeat/modules.d/nginx.yml.disabled. Re-enable with filebeat modules enable nginx.

  3. Test the Filebeat configuration for syntax errors.
    $ sudo filebeat test config
    Config OK
  4. Restart the Filebeat service to unload the module.
    $ sudo systemctl restart filebeat

    Restarting Filebeat with an invalid configuration stops log shipping until the configuration is fixed.

  5. Confirm the Filebeat service is running.
    $ sudo systemctl status filebeat
    ● filebeat.service - Filebeat sends log files to Logstash or Elasticsearch.
         Loaded: loaded (/usr/lib/systemd/system/filebeat.service; enabled; preset: enabled)
         Active: active (running) since Tue 2026-01-06 20:58:03 UTC; 4s ago
    ##### snipped #####
  6. Verify the module appears under Disabled.
    $ sudo filebeat modules list
    Enabled:
    system
    
    Disabled:
    activemq
    apache
    auditd
    aws
    awsfargate
    azure
    ##### snipped #####