/
Purge Datafari Logs - Community Edition

Purge Datafari Logs - Community Edition

Valid from Datafari X.X

In Datafari Community Edition, 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:

0 1 * * * find /opt/datafari/logs/ -type f -mtime +7 | xargs --no-run-if-empty rm 0 1 * * * find /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

This will remove the logs older than the last 7 days. You can adjust the value to fit your needs.

 

Related content

Core Monitoring logs
Core Monitoring logs
Read with this
[DEPRECATED] ELK logs exploitation
[DEPRECATED] ELK logs exploitation
More like this
[DEPRECATED] Custom ELK stats
[DEPRECATED] Custom ELK stats
More like this
[DEPRECATED] Analytics (ELK) Configuration (Datafari 3.1 and above)
[DEPRECATED] Analytics (ELK) Configuration (Datafari 3.1 and above)
More like this
[DEPRECATED] ELK
[DEPRECATED] ELK
More like this
Logging
More like this