python-logging-loki icon indicating copy to clipboard operation
python-logging-loki copied to clipboard

How to make fields?

Open Andrey250419 opened this issue 3 years ago • 0 comments

Hello, I'm trying to make fields in grafana (as shown in the picture), but I don't understand how I should form a log sending from python to loki.

logger.info ('Test', extra={"tags": {"tag": 1}, "fields": {"field": 1}}) or...?

Screenshot 2022-06-23 at 15 15 05

Andrey250419 avatar Jun 23 '22 12:06 Andrey250419