digiwf-core
digiwf-core copied to clipboard
Inkonsistent logging
Describe the bug The log messages in openshift and local are different which can lead to a log message flood.
Openshift logs not appearing locally
{"timestamp":"2024-03-11T10:57:10.846","appName":"digiwf-engine-service","TraceId":"65eed576c997c765b56279382c809e6c","SpanId":"ceda04ced1ba8ffa","thread":"http-nio-8080-exec-7","level":"INFO","logger":"de.muenchen.oss.digiwf.spring.security.authentication.RequestResponseLoggingFilter","location":{"fileName":"RequestResponseLoggingFilter.java","line":"63"},"message":"User unauthenticated executed GET on URI /actuator/health with http status 200","stacktrace":""}
{"timestamp":"2024-03-11T10:57:25.667","appName":"digiwf-engine-service","TraceId":"65eed58599d25a2d5f1759fb4709b218","SpanId":"d8d668f333284bae","thread":"http-nio-8080-exec-6","level":"INFO","logger":"de.muenchen.oss.digiwf.spring.security.authentication.RequestResponseLoggingFilter","location":{"fileName":"RequestResponseLoggingFilter.java","line":"63"},"message":"User unauthenticated executed GET on URI /actuator/metrics with http status 200","stacktrace":""}
{"timestamp":"2024-03-11T10:57:30.847","appName":"digiwf-engine-service","TraceId":"65eed58a62519cf17232d3dbd9c77f42","SpanId":"99cb199478762477","thread":"http-nio-8080-exec-8","level":"INFO","logger":"de.muenchen.oss.digiwf.spring.security.authentication.RequestResponseLoggingFilter","location":{"fileName":"RequestResponseLoggingFilter.java","line":"63"},"message":"User unauthenticated executed GET on URI /actuator/health with http status 200","stacktrace":""}
{"timestamp":"2024-03-11T10:57:30.847","appName":"digiwf-engine-service","TraceId":"65eed58a26069f76cdb9695644dfede9","SpanId":"2baac17a3dc75b34","thread":"http-nio-8080-exec-1","level":"INFO","logger":"de.muenchen.oss.digiwf.spring.security.authentication.RequestResponseLoggingFilter","location":{"fileName":"RequestResponseLoggingFilter.java","line":"63"},"message":"User unauthenticated executed GET on URI /actuator/health with http status 200","stacktrace":""}
{"timestamp":"2024-03-11T10:57:31.357","appName":"digiwf-engine-service","TraceId":"65eed58be4ccfb8e0ed46b001cc1a3c1","SpanId":"230ddd2dcf46f8f4","thread":"http-nio-8080-exec-9","level":"INFO","logger":"de.muenchen.oss.digiwf.spring.security.authentication.RequestResponseLoggingFilter","location":{"fileName":"RequestResponseLoggingFilter.java","line":"63"},"message":"User unauthenticated executed GET on URI /actuator/metrics with http status 200","stacktrace":""}
{"timestamp":"2024-03-11T10:57:50.848","appName":"digiwf-engine-service","TraceId":"65eed59e9543cc853429c2d01cef9aad","SpanId":"36d7f457aa571fa5","thread":"http-nio-8080-exec-3","level":"INFO","logger":"de.muenchen.oss.digiwf.spring.security.authentication.RequestResponseLoggingFilter","location":{"fileName":"RequestResponseLoggingFilter.java","line":"63"},"message":"User unauthenticated executed GET on URI /actuator/health with http status 200","stacktrace":""}
{"timestamp":"2024-03-11T10:57:50.848","appName":"digiwf-engine-service","TraceId":"65eed59e0606ebe7582627855cff4894","SpanId":"a0f2769612e83763","thread":"http-nio-8080-exec-4","level":"INFO","logger":"de.muenchen.oss.digiwf.spring.security.authentication.RequestResponseLoggingFilter","location":{"fileName":"RequestResponseLoggingFilter.java","line":"63"},"message":"User unauthenticated executed GET on URI /actuator/health with http status 200","stacktrace":""}
{"timestamp":"2024-03-11T10:57:55.666","appName":"digiwf-engine-service","TraceId":"65eed5a397ee8b778ae488fa02c574f6","SpanId":"72348d17b7cd6663","thread":"http-nio-8080-exec-5","level":"INFO","logger":"de.muenchen.oss.digiwf.spring.security.authentication.RequestResponseLoggingFilter","location":{"fileName":"RequestResponseLoggingFilter.java","line":"63"},"message":"User unauthenticated executed GET on URI /actuator/metrics with http status 200","stacktrace":""}
To Reproduce
- curl
/actuator/health - Isn't logged locally but is logged in openshift
Expected behavior
- same behavior local and openshift
Acceptance criteria
- [ ] Same log messages locally and in openshift
- [ ] Only relevant information is logged (i.e. actuator isn't logged)