You could configure your proxy or application to send any key/value pair not being using by Solr. Solr will ignore the parameter but still log it as part of params={}.
We use this to send various pieces of information that's being analyzed later together with the query information. On Wednesday 07 September 2011 13:09:53 dan sutton wrote: > Does anyone know how I would be able to include the client ip address > for tomcat 6 with log4j? > > Cheers, > Dan > > On Wed, Sep 7, 2011 at 11:03 AM, Shalin Shekhar Mangar > > <shalinman...@gmail.com> wrote: > > On Wed, Sep 7, 2011 at 2:56 PM, dan sutton <danbsut...@gmail.com> wrote: > >> Hi, > >> > >> We're using log4j with solr which is working fine and I'm wondering > >> how I might be able to log the client ip address? > >> > >> Has anyone else been able to do this? > > > > Your application container should have an access log facility. That is > > the best way to record client IPs. Solr does not have that capability. > > > > -- > > Regards, > > Shalin Shekhar Mangar. -- Markus Jelsma - CTO - Openindex http://www.linkedin.com/in/markus17 050-8536620 / 06-50258350