Skip to Content

Is it possible to delete the suspended user without deleting the ssh logs of the user?

Deleting users in ezeelogin without affecting their logs


Overview : This article explains that when you delete a user from Ezeelogin, the user's log will not be deleted in the backend.


When you delete a user from Ezeelogin, the user's log will not be deleted in the backend. The logs will be available in the directory /var/log/ezlogin.

However, you will not be able to search the logs in the  GUI since the user was deleted from the database. Therefore, It is recommend  only to  suspend the user and not to delete the user.

FAQ

1. Why are SSH log files (Users → SSH Logs in the Ezeelogin GUI) still present after deletion from the web interface?

Deleting log entries from the Ezeelogin web interface only removes the metadata from the database. The actual log files stored on the filesystem under /var/log/ezlogin/ are not deleted.

To restore the metadata for these logs back into the web interface, use the following command:

root@admod: /usr/local/ezlogin/eztool.php -reimport_logs

This command re-imports the log metadata from the log files that still exist on disk.

2. Is there any impact if the logs in /var/log/ezlogin/ are deleted?

No, the logs in /var/log/ezlogin/ can be safely deleted without affecting system functionality. However, once deleted, these logs cannot be recovered.


Related Articles

how do i access the ssh logs history that was recorded for the ssh user ?

Different logs of user

Is it possible to view all ssh logs of a deleted user ?