Automatic deletion of old logs


OMERO produces a lot of logs. It looks like the logs follow the convention of logrotate, i.e:


Logrotate has an option called maxage that remove logs older than N days.

Is there a similar option available to delete old logs in the OMERO server? This would be very useful as logs filling up the OS disk can cause our OMERO server to fall over.


Hi @tjelvar-olsson. Welcome to!

The Blitz-0 logging is managed by logback. You can read more about it in our docs. It’s configured with the etc/logback.xml file (on github) and uses a max size rather than max age strategy. The relevant section is:

      <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
    <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">

i.e. create up to 9 files each of which is 500MB. Lowering either the number of files or their individual size is as easy as editing that file. No restart is necessary. Logback has a number of options though. Let us know which one ends up working the best for you.