diff --git a/x-pack/elastic-agent/pkg/agent/operation/monitoring.go b/x-pack/elastic-agent/pkg/agent/operation/monitoring.go index 6308899de1a1..43bdebc5c86d 100644 --- a/x-pack/elastic-agent/pkg/agent/operation/monitoring.go +++ b/x-pack/elastic-agent/pkg/agent/operation/monitoring.go @@ -168,7 +168,12 @@ func (o *Operator) getMonitoringFilebeatConfig(output interface{}) (map[string]i "filebeat": map[string]interface{}{ "inputs": []interface{}{ map[string]interface{}{ - "type": "log", + "type": "log", + "multiline": map[string]interface{}{ + "pattern": "^[0-9]{4}", + "negate": true, + "match": "after", + }, "paths": paths, "index": "logs-agent-default", "processors": []map[string]interface{}{