Archiving error.log file | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ogill

Hi Phalgun,

Archiving the log files would lie outside AEM. You could setup logs to rotate on a daily basis in AEM, then write a shell script to zip and FTP your log files to another location/server.

Regards,

Opkar

2 replies

ogillAdobe EmployeeAccepted solution
Adobe Employee
July 12, 2017

Hi Phalgun,

Archiving the log files would lie outside AEM. You could setup logs to rotate on a daily basis in AEM, then write a shell script to zip and FTP your log files to another location/server.

Regards,

Opkar

Level 2
July 12, 2017

Yeah, this definitely lies outside AEM. I would suggest you use log rotation, with an automated custom script to compact / archive an older file daily. Cron jobs would help if you're on linux, but then you also probably wouldn't use .zip.

Personally, our logs rotate and only the last 5 days are on the server. We do use Loginsight as a log aggregation tool though - it has a java agent that forwards log entries to the central loginsight server automatically, and persists the logs / data for future analysis. I would recommend looking into a log aggregation tool like that one.