Hello,
How do you deal with log files that increase in file size?
For example, due to growth of log files, I ran out of disk space on my root file system. I only realized this after trying to update the system and received this error, E: You don't have enough free space in /var/cache/apt/archives/.
Some exerts from df and ls are shown below,
What do you suggest is a good way to handle log files? Is deleting okay? Or, is there another way to remove these files?
Thank you.
How do you deal with log files that increase in file size?
For example, due to growth of log files, I ran out of disk space on my root file system. I only realized this after trying to update the system and received this error, E: You don't have enough free space in /var/cache/apt/archives/.
Some exerts from df and ls are shown below,
Code:
$ df -H Filesystem Size Used Avail Use% Mounted on /dev/sdb2 196G 186G 5.3M 100% / $ ls -lah -rw-r----- 1 syslog adm 4.5G Nov 30 21:51 syslog -rw-r----- 1 syslog adm 8.6G Nov 30 00:07 syslog.1 -rw-r----- 1 syslog adm 174M Nov 29 00:10 syslog.2.gz -rw-r----- 1 syslog adm 240M Nov 28 00:06 syslog.3.gz -rw-r----- 1 syslog adm 357M Nov 27 00:08 syslog.4.gz -rw-r----- 1 syslog adm 60M Nov 26 00:07 syslog.5.gz -rw-r----- 1 syslog adm 315M Nov 25 00:10 syslog.6.gz -rw-r----- 1 syslog adm 707M Nov 24 00:09 syslog.7.gz -rw-r----- 1 syslog adm 32G Nov 30 21:51 ufw.log -rw-r----- 1 syslog adm 37G Nov 25 00:16 ufw.log.1 -rw-r----- 1 syslog adm 841M Nov 18 00:20 ufw.log.2.gz -rw-r----- 1 syslog adm 1.8G Nov 11 00:06 ufw.log.3.gz
Thank you.
Comment