Not a direct answer, but it may help you to switch to hourly rotation instead of daily. Then you can compress the files hourly instead of daily. As I'm sure you've noticed, they compress quite well.

I use the following in log4j.properties.

# http://www.codejava.net/coding/configure-log4j-for-creating-daily-rolling-log-files # also see https://github.com/epimorphics/sedgemoor-data/blob/master/package/fuseki-config/log4j.properties
log4j.rootLogger=INFO,FusekiFileLog
log4j.appender.FusekiFileLog=org.apache.log4j.DailyRollingFileAppender
log4j.appender.FusekiFileLog.File=/var/log/fuseki/fuseki.log
#log4j.appender.FusekiFileLog.DatePattern='.'yyyy-MM-dd
# -HH does an hourly rollover
log4j.appender.FusekiFileLog.DatePattern='.'yyyy-MM-dd-HH
log4j.appender.FusekiFileLog.layout=org.apache.log4j.PatternLayout
log4j.appender.FusekiFileLog.layout.ConversionPattern=[%d{yyyyMMdd-HH:mm:ss}] %-10c{1} %-5p %m%n





Mikael Pesonen wrote on 6/28/18 7:37 AM:

Hi,

we are having trouble with Fuseki log size. Easiest would be to switch to WARN level, but response times are quite usefull. So is it possible somehow to remove just the queries from INFO level?

Br


--
Dan Pritts
ICPSR Computing & Network Services
University of Michigan
<https://www.postbox-inc.com>

Reply via email to