On Wed, Jul 10, 2024 at 11:59:58PM +0000, Abel Gómez wrote: > if I'm not wrong, you can automatically zip your log files when they are > rotated by modifying the log4j2 configuration. That would save you from > manually zipping them periodically. > > Edit the `config/log4j2.xml` file, and set the extension in the filePattern > property to 'gz'. E.g.: > > filePattern="${log.dir}/dspace.log-%d{yyyy-MM-dd}.gz" > > Tim, maybe, should the default config be changed to compress the old log > files by default?
A good idea. We take a different approach here: we have a nightly cron job that moves older logs to a Zip archive, leaving the last couple of days in case we want to inspect recent messages without unpacking. You can combine approaches: let Log4J compress the logs at rotation and later a cron job simply stores them in an archive or whatever. I've done that with another product. -- Mark H. Wood Lead Technology Analyst University Library Indiana University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 library.indianapolis.iu.edu -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/Zo_6ocHqIfJAHK3t%40iu.edu.
signature.asc
Description: PGP signature