-
Notifications
You must be signed in to change notification settings - Fork 33
Visualizing log level in Grafana
Mykhailo Shevchuk edited this page Aug 30, 2021
·
2 revisions
From v7 sink does not create level
label by default, so Grafana's parsing algorithms are used.
If you want to visualize different log levels in Grafana, you should set createLevelLabel
to true
while configuring sink.
But this feature does not work with a text formatters, implements ILabelAwareTextFormatter
, cause in this case this label won't be created. But, for example, LokiJsonTextFormatter
will provide output in json format with all required data. So Grafana will have a possibility to parse and visualize log level.