loki icon indicating copy to clipboard operation
loki copied to clipboard

Change log level at runtime

Open dannykopping opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe. As a Loki operator, I want to be able to change the log level of a Loki process at runtime - particularly from info to debug - so that I can access debugging information during an incident.

Describe the solution you'd like An HTTP API which configures the log level of the global logger.

Describe alternatives you've considered Run with debug level all the time, but this produces quite a large volume of data.

Additional context N/A

dannykopping avatar Jul 29 '22 15:07 dannykopping

Hi @dannykopping ! I would like to pick this up.

gyanesh-m avatar Aug 01 '22 07:08 gyanesh-m

Hi @dannykopping ! I would like to pick this up.

Go for it :+1:

dannykopping avatar Aug 01 '22 07:08 dannykopping

one clarification, this assumes that the update will be done for one instance only and not for distributed instances?

gyanesh-m avatar Aug 01 '22 14:08 gyanesh-m

Correct: I think the way I would personally like to use this is to create a port-forward to the pod (if we're in k8s) and call an API to change the log level.

dannykopping avatar Aug 01 '22 14:08 dannykopping

Please add the ability to change the log level from info to error for ingester and querier in loki-distributed.

patsevanton avatar Nov 06 '22 13:11 patsevanton