On 9/6/2024 14:49, Koen De Groote wrote:
I'm trying to get more insight into when Segment Merges happen.
Right now all I really have to go on is the fact that I sometimes see an
increase in used disk space for the partition that the solr data
directories are on, and then after a few minutes this drops again.
I tried adding a logger for "org.apache.lucene" to my log4j2.xml:
<snip>
The file "lucene.log" gets created, but remains empty. Is there something
I'm missing?
Lucene core has zero dependencies outside of the JDK. So it doesn't
really have logging like Solr does.
Solr does have a facility for InfoStream logging which should get
exactly what you are after. You will find this line in the log4j2.xml
that comes with Solr:
<AsyncLogger name="org.apache.solr.update.LoggingInfoStream" level="off"/>
I am unsure what level you should use instead of "off". Probably either
info or debug.
I believe the resulting log entries will end up in solr.log with the
rest of Solr's logging.
Thanks,
Shawn