Replies: 2 comments
-
Hi! I would not recommend to overuse the static labels (properties), cause it will lead to the high cardinality problem. If you use logger as it was designed, for the structured logging, you will have all your labels in place. Also, probably, you should read that page from the documentation. It has an examples how to work with such kind of data, using Grafana's JSON parser as a part of the pipeline step |
Beta Was this translation helpful? Give feedback.
-
Thanks @mishamyte! I removed most of the labels and started using structured logging with the combination of JSON parser, and it works perfect :) And for my original question - instead of a label for |
Beta Was this translation helpful? Give feedback.
-
At the app startup I configure the logger, so I can log exceptions as soon as possible. One of the labels is
User
, which is unknown at this time.For example:
Then the user logs in, so I know his
User
. Is it possible to overwrite theUser
label, or do I have to configure the full logger again?Beta Was this translation helpful? Give feedback.
All reactions