-
Notifications
You must be signed in to change notification settings - Fork 195
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
Problems with log configurations #387
Problems with log configurations #387
Comments
@aramase could you please take a look? |
I also tried to set level 2 (ERROR): Chart configuration: logVerbosity: 2
logFormatJSON: true
secrets-store-csi-driver:
logLevel:
debug: false
logVerbosity: 2
logFormatJSON: true
livenessProbe:
logLevel: 2
enableSecretRotation: true
rotationPollInterval: 2m
{"ts":1612524964758.1375,"msg":"fetching object from key vault","v":0,"objectName":"[redacted]","objectType":"secret","keyvault":"[redacted]","pod":"[redacted]/[redacted]"}
{"ts":1612524964758.1567,"msg":"vaultName: [redacted]\n","v":2}
{"ts":1612524964758.2212,"msg":"using pod identity to retrieve token","v":0,"pod":"[redacted]/[redacted]"}
{"ts":1612524964767.8184,"msg":"successfully acquired access token","v":0,"accessToken":"eyJ0##### REDACTED #####pyAw","clientID":"132a##### REDACTED #####fdc1","pod":"[redacted]/[redacted]"}
{"ts":1612524965008.1086,"msg":"successfully wrote file","v":0,"file":"[redacted]","pod":"[redacted]/[redacted]"} Other extracted logs that did not appear before: {"ts":1612524965988.1472,"msg":"GRPC call: /grpc.health.v1.Health/Check\n","v":2}
{"ts":1612524965988.2139,"msg":"GRPC request: {}\n","v":2}
{"ts":1612524965988.2312,"msg":"GRPC response: {\"status\":1}\n","v":2}
{"ts":1612524973189.5605,"msg":"GRPC call: /grpc.health.v1.Health/Check\n","v":2}
{"ts":1612524973189.6375,"msg":"GRPC request: {}\n","v":2}
{"ts":1612524973189.6663,"msg":"GRPC response: {\"status\":1}\n","v":2}
{"ts":1612524976088.028,"msg":"GRPC call: /grpc.health.v1.Health/Check\n","v":2}
{"ts":1612524976088.1003,"msg":"GRPC request: {}\n","v":2}
{"ts":1612524976088.1223,"msg":"GRPC response: {\"status\":1}\n","v":2}
{"ts":1612524983188.8538,"msg":"GRPC call: /grpc.health.v1.Health/Check\n","v":2}
{"ts":1612524983188.923,"msg":"GRPC request: {}\n","v":2}
{"ts":1612524983188.943,"msg":"GRPC response: {\"status\":1}\n","v":2}
{"ts":1612524986087.3892,"msg":"GRPC call: /grpc.health.v1.Health/Check\n","v":2} With @aramase can you help me better understand how error levels work? I was referring to the levels of glog/klog:
|
This project uses klog for logging. This is the same logging framework used by Kubernetes.
These are not severity levels. The logs levels indicate the klog v level logging:
Changing the loglevel to higher values will enable debug logs that are marked with higher level. |
So the fix on |
Looking for the same. |
@dkirrane great question! |
Closing this issue in favor of kubernetes/klog#212. There is no option to only pick individual log levels. There is |
What steps did you take and what happened:
What did you expect to happen:
Anything else you would like to add:
Chart configuration:
Log with verbosity 1 (WARNING) in JSON format
verbosity
is0
Ref: kubernetes-sigs/secrets-store-csi-driver#442
Which access mode did you use to access the Azure Key Vault instance:
Pod Identity https://github.com/Azure/aad-pod-identity
Environment:
0.0.19
0.0.12
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.8", GitCommit:"c86ad89b8715ed17fd55b87cbb2888ccc6fa9878", GitTreeState:"clean", BuildDate:"2020-09-25T01:53:27Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}
The text was updated successfully, but these errors were encountered: