tjahzi icon indicating copy to clipboard operation
tjahzi copied to clipboard

Using MDC for labels

Open stefnats opened this issue 3 years ago • 5 comments

Hey there,

i want to migrate from ELK Stack to Loki. Is it possible to send the MDC Parameters (set dynamically in ThreadContext.put(key, value)) as Labels to Loki? And how would i achieve this with log4j2?

Thanks in advance

stefnats avatar Aug 20 '21 16:08 stefnats