Expand my Community achievements bar.

SOLVED

Excluding logs from onlinebackup

Avatar

Level 2

Dear Experts,

Instance version: AEM 6.3.3 with separated datastore (not shared just separated).

I am trying to see a way to eliminate backing up logs during online backup. Is there a way to do it? If there is one could you please point me in the right direction?

Kind regards

Sid

1 Accepted Solution

Avatar

Correct answer by
Level 2

Yes, I understand. Once you modify the path from /logs/custom log to different location, try reloading the http://<HOST>:<PORT>/system/console/slinglog page. Page becomes inaccessible. Page will be accessible only when you revert back the changes.

Thanks

Sid

View solution in original post

5 Replies

Avatar

Employee Advisor

By Default, AEM will backup everything under the crx-quickstart directory. You can achieve this by moving the log file location outside of crx-quickstart directory. Change the log location by going to slinglog under the "appender" section as shown below:

Screen Shot 2019-07-01 at 5.49.12 PM.png

Avatar

Employee Advisor

Other ways to change the location of the logfiles (besides reconfiguring all loggers, as mentioned before):

* make crx-quickstart/logs a symlink and let it point to a directory of your convenience

* set the system property "sling.log.root" to a directory of your convenience (see [1])

Jörg

[1] https://sling.apache.org/documentation/development/logging.html#initial-configuration

Avatar

Level 2

But this way, we can no more access log support page. http://localhost:4502/system/console/slinglog

Thanks

Sid

Avatar

Employee Advisor

http://localhost:4502/system/console/slinglog .   This is not a support page. You need to replace the HOST and PORT from your instance. It should be read as below:

http://<HOST>:<PORT>/system/console/slinglog

Avatar

Correct answer by
Level 2

Yes, I understand. Once you modify the path from /logs/custom log to different location, try reloading the http://<HOST>:<PORT>/system/console/slinglog page. Page becomes inaccessible. Page will be accessible only when you revert back the changes.

Thanks

Sid