Info |
---|
Valid from Datafari X.X |
In Datafari Community Edition, the logs are not automatically purged. To do this, you need to edit the root crontab with the command 'sudo crontab -e
', and add the following line:
Code Block |
---|
0 1 * * * find /opt/datafari/logs/ -type f -mtime +7 | xargs --no-run-if-empty rm 0 1 * * * rootfind /opt/datafari/tika-server/logs/ -type f -mtime +7 | xargs --no-run-if-empty rm 0 1 * * * find /opt/datafari/elk/logs/ -type f -mtime +7 | xargs --no-run-if-empty rm |
...