On 1/12/23 12:19, Srijan wrote:
I am looking to log additional info to my Solr log. Specifically, I am
looking to log a "correlation-id" provided by my client as part of the HTTP
header field "x-correlation-id" and put that in my log to relate various
client sessions and their actions with Solr. Is there a codeless way of
doing this? Has anyone done something similar?

If you make it a URL parameter instead of a header, Solr will log it automatically.

Arbitrary URL parameters that do not match anything Solr expects tend to be ignored, so it is a good way to log something that doesn't affect Solr.

If it must be a header, then you're going to need to write some custom code as suggesteed by Markus.

Thanks,
Shawn

Reply via email to