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

Emit level field in structured (json) logging #1073

Closed
jcogilvie opened this issue Oct 17, 2022 · 2 comments · Fixed by #1134
Closed

Emit level field in structured (json) logging #1073

jcogilvie opened this issue Oct 17, 2022 · 2 comments · Fixed by #1134
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@jcogilvie
Copy link

Describe the solution you'd like
Structured (i.e. json) logging should emit a level field (or equivalent) for use in indexing/parsing. Right now, the logs seem to emit the v field but no level, leaving it hard to distinguish what's an info vs. an error log in json.

Slack discussion indicates that potentially using something like vmware-tanzu/pinniped plog could help.

Anything else you would like to add:
I am using datadog as a log storage/search platform.

Environment:

  • Secrets Store CSI Driver version: (use the image tag): v1.2.4
  • Kubernetes version: (use kubectl version): 1.22
@jcogilvie jcogilvie added the kind/feature Categorizes issue or PR as related to a new feature. label Oct 17, 2022
@nilekhc
Copy link
Contributor

nilekhc commented Oct 17, 2022

@enj
Copy link
Contributor

enj commented Jan 12, 2023

I have exported vmware-tanzu/pinniped.plog into a standalone package at monis.app/mlog so that it can be easily used here. See #1134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants