filebeat.inputs: - type: log enabled: true paths: - /var/log/modsecurity/audit.log…
- User
filebeat.inputs:
- type: log
enabled: true
paths:
- /var/log/modsecurity/audit.log json.keys_under_root: true json.add_error_key: true
processors:
- rename: fields: - from: "transaction.client_ip" to: "source.ip" - from: "transaction.client_port" to: "source.port" - from: "transaction.host_ip" to: "destination.ip" - from: "transaction.host_port" to: "destination.port" - from: "transaction.time_stamp" to: "@timestamp" ignore_missing: true fail_on_error: false
- convert: fields: - {field: "@timestamp", type: "date", target_field: "@timestamp", formats: ["E MMM dd HH:mm:ss yyyy", "RFC3339", "ISO8601"]} ignore_missing: true fail_on_error: false
output.logstash:
Replace with your Logstash server address and port
hosts: ["10.100.2.6:5044"]
May 22 20:51:54 waf filebeat[795]: {"log.level":"info","@timestamp":"2025-05-22T20:51:54.859-0500","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.(*Beat).configure","file.name":"instance/beat.go","file.line":1088},"message":"Beat ID: d7e0e6d5-0df9-441e-8e19-8aa112aea4ae","service.name":"filebeat","ecs.version":"1.6.0"} May 22 20:51:54 waf filebeat[795]: {"log.level":"error","@timestamp":"2025-05-22T20:51:54.860-0500","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.handleError","file.name":"instance/beat.go","file.line":1612},"message":"Exiting: error initializing processors: fail to unpack the convert processor configuration: string value is not set accessing 'processors.1.convert.fields.0.from' (source:'/etc/filebeat/filebeat.yml')","service.name":"filebeat","ecs.version":"1.6.0"} May 22 20:51:54 waf filebeat[795]: Exiting: error initializing processors: fail to unpack the convert processor configuration: string value is not set accessing 'processors.1.convert.fields.0.from' (source:'/etc/filebeat/filebeat.yml')
- type: log
enabled: true
paths:
- Assistant
The error message:
fail to unpack the convert processor configuration: string value is not set accessing 'processors.1.convert.fields.0.from'indicates that the
convertprocessor configuration is missing the mandatoryfromfield in the first item offields.In your config, the
convertprocessor looks like this:- convert: fields: - {field: "@timestamp", type: "date", target_field: "@timestamp", formats: ["E MMM dd HH:mm:ss yyyy", "RFC3339", "ISO8601"]} ignore_missing: true fail_on_error: falseThe problem is that the key
fieldshould be as per Filebeat config schema, because the error mentions is missing.