Sunday, April 1, 2018

FW: Add remote ip address in solr log

-----Original Message-----
From: Vincenzo D'Amore [mailto:v.damore@gmail.com]
Sent: 28 March 2018 21:18
To: solr-user@lucene.apache.org
Subject: Add remote ip address in solr log

Hi,

I'm struggling to add http remote ip address in solr (jetty) log file.

I've tried to modify the server/resources/log4j.properties file, which seems
to control the output log format, but I'm unable to understand how to add in
ConversionPattern the proper ip address field.

log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS}
%-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n

Many thanks,
Vincenzo


--
Vincenzo D'Amore

No comments:

Post a Comment