Hi Abel,

I'd welcome the approach of setting this up better "by default".  Feel free 
to send a PR if you've found an easier way to achieve this using the 
standard log4j2 configuration.  DSpace is built/maintained entirely by 
community volunteers, so I don't have a developer team to assign tasks to.  
We rely on individuals to contribute back useful improvements.  See our 
contribution guidelines (for the backend) for more details: 
https://github.com/DSpace/DSpace/blob/main/CONTRIBUTING.md

Tim

On Wednesday, July 10, 2024 at 6:59:58 PM UTC-5 abg...@gmail.com wrote:

Hi Gerald,

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?

Cheers,

Abel



El jueves, 11 de julio de 2024 a las 0:17:24 UTC+2, Gerald Okeke escribió:

Hi Tim,

Thank you so much. If I compress and zip can I transfer it out of my 
production server to a storage server somewhere else?

On Wed, 10 Jul 2024, 10:59 pm DSpace Technical Support, <
dspac...@googlegroups.com> wrote:

Hi Gerald,

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.

Tim

On Friday, June 28, 2024 at 4:38:26 PM UTC-5 okeke...@gmail.com wrote:

Greetings,

Please I need assistance on how to compress the log folder in Dspace. 

My server is out of storage. I realise that this folder has over 56gb of 
storage. 

How can I compress it without affecting my dspace application?.

Looking forward to hearing from you.

Best Regards
Gerald

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/eea0302c-e59a-476a-81ca-f6cda7ce4d23n%40googlegroups.com
 
<https://groups.google.com/d/msgid/dspace-tech/eea0302c-e59a-476a-81ca-f6cda7ce4d23n%40googlegroups.com?utm_medium=email&utm_source=footer>
.

-- 
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/08a9c363-856f-4a04-bab5-0c39b7f2014an%40googlegroups.com.

Reply via email to