Richard G
Verified User
Seems that the logrotate setting in the directadmin.conf is only taking care of the logs in the user homedirs:
/home/<username>/domains/<domain>/logs/
But the system's userdomain logs are truncated every night:
/var/log/httpd/domains/domain*.log
It happens more often, by adware, exploits or bruteforcing, that hackers get access to the users home directory's via ftp or via their DA login.
In that case, they can delete the logs in the homedir.
However, it sometimes contains vital information about the cause of the hack, changed files and some stuff which would not be found in the main httpd.log.
They -are- present in /var/log/httpd/domains/domain*.log but those get truncated daily.
So that is why I would like to suggest to make an option in DA, which creates an option to save those logs for x days, same way it works for the homedir logs.
/home/<username>/domains/<domain>/logs/
But the system's userdomain logs are truncated every night:
/var/log/httpd/domains/domain*.log
It happens more often, by adware, exploits or bruteforcing, that hackers get access to the users home directory's via ftp or via their DA login.
In that case, they can delete the logs in the homedir.
However, it sometimes contains vital information about the cause of the hack, changed files and some stuff which would not be found in the main httpd.log.
They -are- present in /var/log/httpd/domains/domain*.log but those get truncated daily.
So that is why I would like to suggest to make an option in DA, which creates an option to save those logs for x days, same way it works for the homedir logs.