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

Python logging handler for Loki

Results 28 python-logging-loki issues
Sort by recently updated
recently updated
newest added

This code, gotten from the project examples, does not work. It does not produce any logs on Loki: ```python import logging.handlers import logging_loki from multiprocessing import Queue queue = Queue(-1)...

Loki and Grafana use `level` as label to show the logging severity/verbose/levelname. It would be useful to replace the current `severity` label with `level`, as all queries and visualizations in...

Hello. I'm getting the following error when trying run the default example found in the documentation for this package. ``` Traceback (most recent call last): devops-tools | File "/root/.local/share/virtualenvs/meraki_gpns_tools-7f3ZpwMf/lib/python3.8/site-packages/logging_loki/handlers.py", line...

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',...

FIrst, thanks for implementing python-logging-loki! We want to adopt this library but our Loki instance requires `X-Scope-OrgID` header to be sent with each request. This pull request adds the capability...

I have the following method that runs as a background task: ```py import logging from config.celery import app from config.queues import my_queue logger = logging.getLogger(__name__) @app.task(name='my-method', queue=my_queue) def my_method(**kwargs) ->...

Currently it only uploads one log line with each HTTP request, which does not work well for high velocity logs. The queued handler could potentially read all the available lines...

Should the V1 emitter timestamp be retrieved from record.created, just like it used to be in V0? This is how it was set for a V0 record and there seems...

In the example demonstrating usage of `QueueHandler` and `QueueListener`, the listener is instantiated with the following line in the example: `logging.handlers.QueueListener(queue, handler_loki)` Looking at the source code, the thread handling...