Re: Logging correlation id

2023-01-17 Thread Jan Høydahl
Distributed Tracing :: Apache Solr Reference Guidesolr.apache.orgJan Høydahl16. jan. 2023 kl. 09:28 skrev DAVID MARTIN NIETO :Where is that?enabling tracing, (header trace-parent)Thanks.De: Jan Høydahl Enviado: viernes, 13 de enero de 2023 16:42Para: users@solr.apac

RE: Logging correlation id

2023-01-16 Thread DAVID MARTIN NIETO
Where is that? enabling tracing, (header trace-parent) Thanks. De: Jan Høydahl Enviado: viernes, 13 de enero de 2023 16:42 Para: users@solr.apache.org Asunto: Re: Logging correlation id Have you considered enabling tracing, (header trace-parent) and get that

Re: Logging correlation id

2023-01-13 Thread Jan Høydahl
Have you considered enabling tracing, (header trace-parent) and get that Id added to the logs? Jan Høydahl > 13. jan. 2023 kl. 02:42 skrev Shawn Heisey : > > 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 "correlati

Re: Logging correlation id

2023-01-12 Thread Shawn Heisey
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.

Re: Logging correlation id

2023-01-12 Thread Tomás Fernández Löbbe
One way to achieve this without code changes in Solr is to provide the "rid" parameter, you'd have to make your client add the "rid" parameter in requests explicitly instead of (or in addition to) the x-correlation-id header. The "rid" is logged in the different phases of the request, even in the c

Re: Logging correlation id

2023-01-12 Thread Markus Jelsma
Hello, You can extend SearchHandler and implement handleRequestBody(). There is a SolrQueryResponse object that you can use to add HTTP headers, or add fields to the log. Regards, Markus Op do 12 jan. 2023 om 19:32 schreef DAVID MARTIN NIETO < dmart...@viewnext.com>: > Hi > > I have a similar p

Re: Logging correlation id

2023-01-12 Thread DAVID MARTIN NIETO
Hi I have a similar problem and finally we put a apache server previously to the solr to log fields like you comment. We dont find any way to log on solr or to modify the internal jetty server to it. Kind regards and good luck David Martín De: Srijan Enviado: