Symptoms
-
System logs such as
/var/log/maillog,/var/log/secureor/var/log/messagesare empty and not populating. -
When activating Fail2Ban at Tools & Settings > IP Address Banning (Fail2Ban) > Settings, the operation is successful, but the option Enable intrusion detection is still disabled. The following error message appears in the service status:
# service fail2ban status
...
ERROR Failed during configuration: Have not found any log file for ssh jai
Cause
The system package rsyslog which is responsible for logging is not installed on the server:
-
on CentOS/RHEL-based distributions
# rpm -qa | grep rsyslog
# -
on Debian/Ubuntu-based distributions
# dpkg -l | grep rsyslog
#
Note: The rsyslog package does not come by default on AlmaLinux installations.
Resolution
-
Connect to the Plesk server via SSH.
-
Install the
rsyslogpackage:-
on CentOS/RHEL-based distributions
# yum install rsyslog
or the command below, if DNF package manager is used:
# dnf install rsyslog
-
on Debian/Ubuntu-based distributions
# apt install rsyslog
-
-
Start the rsyslog service:
# systemctl start rsyslog