-
Bug
-
Resolution: Unresolved
-
Major
-
Logging 6.0.z
-
False
-
None
-
False
-
NEW
-
NEW
-
-
Bug Fix
-
-
-
Log Collection - Sprint 271, Log Collection - Sprint 272
-
Important
Description of problem:
This bug drive to several issues introduced during the migration from Fluentd to Vector. Behavior related to parsing and merging data from the message field into the log event, which could lead to system information being overwritten, data duplication, or event corruption.
Steps to Reproduce:
- Deploy a syslog server
- Deploy the Cluster Logging Operator with Vector as collector type
- Configure clusterLogForwarder for log forwarding to a syslog server with the next configuration:
apiVersion: logging.openshift.io/v1 kind: ClusterLogForwarder metadata: name: instance namespace: openshift-logging spec: outputs: - name: logs type: syslog url: tcp://rsyslog-server.rsyslog-pj.svc:6514 pipelines: - inputRefs: - application - audit name: syslog-pl outputRefs: - logs
How to fix:
Need to avoid using this VRL construction:
. = merge(., parse_json!(string!(.message))) ?? .
Instead of, to retain the ability to extract values from JSON-formatted logs, a JSON Parser Filter must be added to the Log Forwarder spec.
To access specific fields from the parsed JSON, use the field names with supports template syntax with structured prefix
- clones
-
LOG-7189 Syslog: merging data from 'message' to the root of log make log event inconsistent with ViaQ data model
-
- Verified
-
- is cloned by
-
LOG-7184 [release-6.1] Syslog: merging data from 'message' to the root of log make log event inconsistent with ViaQ data model
-
- Verified
-
- is depended on by
-
LOG-7009 Vector overwrites the log_type when writing a message to syslog that includes its own log_type field
-
- MODIFIED
-
-
LOG-7008 Vector sends duplicated the same log when log forwarding to syslog
-
- MODIFIED
-
-
LOG-7010 Vector duplicates the fields inside a log message when log forwarding to syslog
-
- MODIFIED
-
-
LOG-6863 Several log lines as a single one in the syslog server
-
- Verified
-
- links to
-
RHBA-2025:149371 Logging for Red Hat OpenShift - 6.0.9