Score:0

Centos Httpd logroate not compressing files

mx flag

Currently logrotate with httpd isn't writing to any of the log files and only writing to the old files that haven't been zipped with datestamps. Not sure what steps to take next.

-rw-r--r--.  1 root root          0 Feb 27 03:06 access_log
-rw-r--r--.  1 root root    1351248 Feb 15 19:00 access_log-20220206.gz
-rw-r--r--.  1 root root     505153 Feb 18 14:52 access_log-20220216.gz
-rw-r--r--.  1 root root     460211 Feb 25 10:04 access_log-20220220.gz
-rw-r--r--.  1 root root  148588976 Mar 31 12:39 access_log-20220227
-rw-r--r--.  1 root root          0 Feb 27 03:06 error_log
-rw-r--r--.  1 root root   65670078 Feb 15 19:01 error_log-20220206.gz
-rw-r--r--.  1 root root     182099 Feb 18 14:52 error_log-20220216.gz
-rw-r--r--.  1 root root      52460 Feb 25 10:04 error_log-20220220.gz
-rw-r--r--.  1 root root 6943082053 Mar 31 12:39 error_log-20220227

/var/log/httpd/*log {
missingok
notifempty
sharedscripts
compress
delaycompress
dateext
postrotate
    /bin/systemctl reload httpd.service > /dev/null 2>/dev/null || true
endscript

     logrotate -df /etc/logrotate.d/httpd
reading config file /etc/logrotate.d/httpd
Allocating hash table for state file, size 15360 B

Handling 1 logs

rotating pattern: /var/log/httpd/*log  forced from command line (no old logs will be kept)
empty log files are not rotated, old logs are removed
considering log /var/log/httpd/access_log
  log does not need rotating (log is empty)considering log /var/log/httpd/error_log
  log does not need rotating (log is empty)considering log /var/log/httpd/ssl_access_log
  log does not need rotating (log is empty)considering log /var/log/httpd/ssl_error_log
  log does not need rotating (log is empty)considering log /var/log/httpd/ssl_request_log
  log does not need rotating (log is empty)not running postrotate script, since no logs were rotated
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.