
Originally Posted by
jestin_virtual
when i check the "Last" Command all logs has started from 1st-Oct is it mean someone has access to our server and he has deleted the Logs ? (using this server since 2006)
However , history has not removed and i couldn`t find any command which could deleted my logs ,
it might be problem ? of course i couldn`t find anything in history but they could use MC to remove something
just let me know how to "Last" logs could be deleted !!
The symptoms described are normal and indicates that your OS' logrotate configuration was (by default) setup to automatically rotate (archive and optionally compress) old wtmp log data. You can check if you have older copies of the wtmp log using the following command via root SSH access:
Code:
# ls -al /var/log/wtmp*
cPanel/WHM uses "cpanellogd" for its own log rotation features and does not change your OS' logrotate configuration. You may, however, view or modify your OS' logrotate configuration at any time, preferably after making appropriate backup copies.
Here is the path to logrotate's configuration file(s):
/etc/logrotate.conf
/etc/logrotate.d/
On a test system with CentOS v4, the wtmp log file is configured for rotation directly within logrotate.conf, but to help check where it may be on your system you can run the following command:
Code:
# grep -HinR "wtmp" /etc/logrotate.*
Please reference the following related "man" (manual) pages for more verbose documentation:
Code:
# man last
# man wtmp
# man logrotate