/scripts/upcp /scripts/upcp logs

Its worth sharing, i was searching for this for long time.

cPanel update logs are stored in the following directory path:

Code:
/var/cpanel/updatelogs/

The following command will display the log files in order from oldest to newest, with the most recently-modified files at the end or bottom of the list:

Code:
# /bin/ls -Altr /var/cpanel/updatelogs

root@server [~]# ls -Altr /var/cpanel/updatelogs

-rw-------   1 root root 216641 May 10 00:54 update.1196921.log
-rw-------   1 root root 216700 May 11 00:31 update.1283321.log
-rw-------   1 root root 216372 May 12 00:30 update.1369721.log
-rw-------   1 root root 216306 May 13 00:46 update.1456122.log
-rw-------   1 root root 218755 May 14 00:27 update.1542521.log
-rw-------   1 root root  93010 May 15 00:28 update.1628921.log
-rw-------   1 root root 214877 May 16 00:36 update.1715321.log
-rw-------   1 root root 215950 May 17 00:43 update.1801721.log
-rw-------   1 root root 256 May 18 00:30 update.1888121.log
-rw-------   1 root root 421699 May 18 19:25 update.1955465.log
-rw-------   1 root root  90565 May 19 00:22 update.1974521.log
lrwxrwxrwx   1 root root     44 May 19 14:01 last -> /var/cpanel/updatelogs/update.2024272.log
-rw-------.  1 root root   3029 May 19 14:40 summary.log
drwx------.  2 root root   4096 May 19 14:54 ./
-rw-------   1 root root 295162 May 19 14:56 update.2024272.log
drwxr-xr-x. 92 root root  16384 May 19 15:04 ../

Now do a tail -f /path to the file to see the results.

root@server [~]# tail -f update.2024272.log

That is it.

Comments

This site uses Akismet to reduce spam. Learn how your comment data is processed.