-
Bug
-
Resolution: Done
-
Major
-
Logging 5.5.3
-
False
-
None
-
False
-
NEW
-
VERIFIED
-
-
Bug Fix
-
Proposed
-
Moderate
Description of problem:
Logs of POD which doesn't have labels specified by structuredTypeKey are parsed to JSON, and forwarded to app-xxxxxx.
This will cause type conflicts and cardinality problem described at docs [1].
Version-Release number of selected component (if applicable):
OpenShift v4.11.5 with OpenShift Logging 5.5.3.
How reproducible:
Always
Steps to Reproduce:
Step1. Deploy app which emits JSON log messages.Step2. Create the following CLF CR and aplly it.
apiVersion: "logging.openshift.io/v1" kind: ClusterLogForwarder metadata: name: instance namespace: openshift-logging spec: inputs: - name: structuredTypeKey-k8slabels application: namespaces: - my-app outputDefaults: elasticsearch: structuredTypeKey: kubernetes.labels.k8slabels pipelines: - name: structuredTypeKey-k8slabels inputRefs: - structuredTypeKey-k8slabels outputRefs: - default parse: json
Step3. Check forwarded logs.
Actual results:
Logs from app are parsed to JSON, and forwarded to app-xxxxxx.
Expected results:
Logs from app are not parsed to JSON.