Re: JSON logging and collection/shard/replica

2024-04-10 Thread Morten Bøgeskov
iated. \Morten From: Chris Hostetter Sent: Monday, April 8, 2024 20:27 To: users@solr.apache.org Subject: Re: JSON logging and collection/shard/replica [You don't often get email from hossman_luc...@fucit.org. Learn why this is important at http

Re: JSON logging and collection/shard/replica

2024-04-08 Thread Chris Hostetter
If you are getting any values from the MDC resolver, then you have the MDC resolver configured correctly. You're only going to get MDC values like collection/shard/replica if those are defined for the thread that logged the message you are looking at. In the specific example you posted... :

JSON logging and collection/shard/replica

2024-04-08 Thread Morten Bøgeskov
Hello. This might not be the right place to ask this (maybe log4j?), however my question goes: I would like a JSON log format. I'm looking at https://logging.apache.org/log4j/2.x/manual/json-template-layout.html And can't figure out how to access the fields referred in: %max