access_log consuming more space
Posted: Fri Feb 07, 2020 1:30 am
Team,
/var reached more tham 80% now. I see that access_log is consuming more space 6.6 GB out of 12 GB of /var partition.
Please let us know whether we can trim any access_log files to reduce space.
[root@nagiosp01 httpd]# df -h /var
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rootvg-var 12G 8.9G 2.2G 81% /var
[root@nagiosp01 httpd]#
[root@nagiosp01 httpd]# pwd
/var/log/httpd
[root@nagiosp01 httpd]# ls -lh
total 6.6G
-rw-r--r-- 1 root root 1.3G Feb 7 07:27 access_log
-rw-r--r-- 1 root root 1.8G Feb 2 04:05 access_log.1
-rw-r--r-- 1 root root 1.7G Jan 26 04:06 access_log.2
-rw-r--r-- 1 root root 80M Jan 5 04:05 access_log.2.gz
-rw-r--r-- 1 root root 1.6G Jan 19 04:05 access_log.3
-rw-r--r-- 1 root root 81M Jan 12 04:05 access_log.3_27.1.2020.gz
-rw-r--r-- 1 root root 52M Dec 29 04:05 access_log.3.gz
-rw-r--r-- 1 root root 9.6M Feb 7 07:26 error_log
-rw-r--r-- 1 root root 14M Feb 2 04:05 error_log.1
-rw-r--r-- 1 root root 13M Jan 26 04:06 error_log.2
-rw-r--r-- 1 root root 9.2M Jan 19 04:05 error_log.3
-rw-r--r-- 1 root root 16M Jan 12 04:05 error_log.4
-rw-r--r-- 1 root root 1.9M Feb 6 18:50 ssl_access_log
-rw-r--r-- 1 root root 3.2M Feb 2 00:38 ssl_access_log.1
/var reached more tham 80% now. I see that access_log is consuming more space 6.6 GB out of 12 GB of /var partition.
Please let us know whether we can trim any access_log files to reduce space.
[root@nagiosp01 httpd]# df -h /var
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rootvg-var 12G 8.9G 2.2G 81% /var
[root@nagiosp01 httpd]#
[root@nagiosp01 httpd]# pwd
/var/log/httpd
[root@nagiosp01 httpd]# ls -lh
total 6.6G
-rw-r--r-- 1 root root 1.3G Feb 7 07:27 access_log
-rw-r--r-- 1 root root 1.8G Feb 2 04:05 access_log.1
-rw-r--r-- 1 root root 1.7G Jan 26 04:06 access_log.2
-rw-r--r-- 1 root root 80M Jan 5 04:05 access_log.2.gz
-rw-r--r-- 1 root root 1.6G Jan 19 04:05 access_log.3
-rw-r--r-- 1 root root 81M Jan 12 04:05 access_log.3_27.1.2020.gz
-rw-r--r-- 1 root root 52M Dec 29 04:05 access_log.3.gz
-rw-r--r-- 1 root root 9.6M Feb 7 07:26 error_log
-rw-r--r-- 1 root root 14M Feb 2 04:05 error_log.1
-rw-r--r-- 1 root root 13M Jan 26 04:06 error_log.2
-rw-r--r-- 1 root root 9.2M Jan 19 04:05 error_log.3
-rw-r--r-- 1 root root 16M Jan 12 04:05 error_log.4
-rw-r--r-- 1 root root 1.9M Feb 6 18:50 ssl_access_log
-rw-r--r-- 1 root root 3.2M Feb 2 00:38 ssl_access_log.1