dspace.log is still used for statistics on dspace 9.2?

24 views
Skip to first unread message

Joshua Kim

unread,
Jun 18, 2026, 2:51:08 PM (5 days ago) Jun 18
to DSpace Technical Support
Hi,

We need to manage disk space for dspace log files. I have two questions:
1. dspace.log is still used for statistics on dspace 9.2? Is it OK to compress them?
2. Is there a recommendation on how long the log file should be kept?

andreas...@unibe.ch

unread,
Jun 19, 2026, 9:08:11 AM (4 days ago) Jun 19
to jos...@udel.edu, dspac...@googlegroups.com
Hello Josh,
I believe dspace.log is no longer used for statistics. Usage statistics are kept in Solr and PostgreSQL.
By default, log4j2.xml is configured with the INFO level. We reduced this to WARN in our environment, which brings down the log size to 300MB or less per day.
Regarding retention, we usually purge the logs about every other month.
Best,
Andreas


From: dspac...@googlegroups.com <dspac...@googlegroups.com> on behalf of Joshua Kim <jos...@udel.edu>
Sent: Thursday, June 18, 2026 8:51 PM
To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: [dspace-tech] dspace.log is still used for statistics on dspace 9.2?
 
--
All messages to this mailing list should adhere to the Code of Conduct: https://lyrasis.org/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/165632f7-cf9a-4c50-a8a2-f1e57f911519n%40googlegroups.com.

Abel Gómez

unread,
Jun 20, 2026, 6:29:32 AM (3 days ago) Jun 20
to dspac...@googlegroups.com

Hi Josh,

to confirm what Andreas said, you have the info in this thread (https://groups.google.com/g/dspace-tech/c/lRr1Nj6TLd8/m/ExUdpzXbAwAJ):

DSpace will only use the latest log file at any given time.  This latest log file is just called "dspace.log" and is located in the "log" folder.  Any older logs (usually these have a suffix like "dspace.log-[date]") can be safely compressed/zipped without impacting DSpace's behavior.

There's currently a PR to enable log compression by default when rotating the logs.

https://github.com/DSpace/DSpace/pull/12507#event-25709870319

Best regards,

Abel

Reply all
Reply to author
Forward
0 new messages