dspace.log is no longer used for statistics. Usage statistics are kept in Solr and PostgreSQL.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.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
To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/GVAP278MB0054EDEB1605F2A2276C2A73FAE22%40GVAP278MB0054.CHEP278.PROD.OUTLOOK.COM.
-- Abel Gómez Llana, PhD ab...@gomez.llana.me https://abel.gomez.llana.me