jrule
jrule copied to clipboard
MDC tags not working anymore
No MDC tagging is possible anymore. I think it's broken with the dynamic rule stuff?
Not sure, unfortunately I'm not using MDC tags atm. Probably something we should fix before next release.
I'll see if I can set it up again and test.
@rsopp Can you help to check this? I can't see anything apparent in the dynamic build PR, to me the MDC-tags looks similar as before
Adding
@JRuleTag(value = "TESTTAG")
On a testrule, and adding
JRuleLog.debug(logger, context.getLogName(), "setting mdc tags: {}", context.getLoggingTags());
Arrays.stream(context.getLoggingTags()).forEach(tag -> logInfo("mdc: using tag in context: {}", tag));
The tag seem to be stick when executing the rule: 2024-03-20 20:40:27.985 [INFO ] [on.jrule.internal.engine.JRuleEngine] - [JRuleEngine] mdc: using tag in context: TESTTAG
I'm in the process of setting up Graylog, so not using kibana/logstash atm. Maybe you can confirm between what commits the errors occurs @querdenker2k
no sorry, it's not all MDC tags. just the rule mdc tag is missing.
haven't looked properly on monday. created a MR for the fix.
haven't looked properly on monday. created a MR for the fix.
Thanks for fixing. Seems I have overseen this..
Can this issue be closed?
Yes, please
Am 10. Juli 2024 12:47:46 schrieb Arne Seime @.***>:
Can this issue be closed? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>