I am using the filebeat modules apache2 and system for logging. Below is my configuration.
filebeat.modules: - module: system syslog: enabled: true var.paths: ["path/syslog"] auth: enabled: true var.paths: ["path/auth.log"] - module: apache2 access: enabled: true var.paths: ["path/access.log"] error: enabled: true var.paths: ["path/error.log"]
I want to ship the following fields along each log,
fields: log_type: access APP: app_name HOSTNAME: host_name CUSTOMER: some_customer ROLE: some_role STAGE: some_stage
How can i send these fields with the above mentioned 4 log files using modules?
I am also using filebeat.prospectors and the above fields are working fine with the prospector but i need to send with modules logs as well.