Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log messages not properly put in chunks #407

Open
nin0-0 opened this issue Jun 11, 2024 · 1 comment
Open

log messages not properly put in chunks #407

nin0-0 opened this issue Jun 11, 2024 · 1 comment

Comments

@nin0-0
Copy link

nin0-0 commented Jun 11, 2024

Hi,

We are doing clusterlogforwarding towards splunk and deduplicating the messages through suppression.

I have the impression that the logs in the hpe csi driver coming from the array are not properly structured, eg.:

{ [[-]](URI)
   file: /var/log/pods/hpe-csi-driver_hpe-csi-driver-operator-7896f49567-j4ljp_235f4bb7-b982-4f06-a697-891d9b05c97a/hpe-csi-operator/0.log
   hostname: xxxx
   kubernetes: { [[+]](URI/en-GB/app/search/search?q=search%20index%20%3D%20mavenir&display.page.search.mode=verbose&dispatch.sample_ratio=1&earliest=-24h%40h&latest=now&sid=1718118498.265082_DB1E01EA-713E-4B58-BE51-5AC3AAEE526A#)
   }
   level: error
   log_type: application
   message: {"level":"error","ts":"2024-06-11T15:08:17Z","msg":"Reconciler error","controller":"hpecsidriver-controller","object":{"name":"csi-driver","namespace":"hpe-csi-driver"},"namespace":"hpe-csi-driver","name":"csi-driver","reconcileID":"ca0af16d-cda3-4691-af5b-bc3e33fd655d","error":"failed to get candidate release: values don't meet the specifications of the schema(s) in the following chart(s):\nhpe-csi-driver:\n- disable: Additional property alletraStorageMP is not allowed\n","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:329\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:274\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:235"}
   openshift: { [[+]](URI/en-GB/app/search/search?q=search%20index%20%3D%20mavenir&display.page.search.mode=verbose&dispatch.sample_ratio=1&earliest=-24h%40h&latest=now&sid=1718118498.265082_DB1E01EA-713E-4B58-BE51-5AC3AAEE526A#)
   }
}
[Show as raw text](URI/en-GB/app/search/search?q=search%20index%20%3D%20mavenir&display.page.search.mode=verbose&dispatch.sample_ratio=1&earliest=-24h%40h&latest=now&sid=1718118498.265082_DB1E01EA-713E-4B58-BE51-5AC3AAEE526A#)

In message expect to have the content of msg=

Can you improve on this? It's eating our splunk license quite a bit

@datamattsson
Copy link
Collaborator

We have a bunch of RFEs logged internally to improve logging overall. No ETA unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants