The manpage NEWSYSLOG.CONF(5) contains this:
and running
But
Does
However, adding this to /etc/newsyslog.conf.d/apache24.conf:logfile_name
Name of the system log file to be archived, or one of the literal
strings “⟨default⟩”, or “⟨include⟩”. The special default entry
will only be used if a log file name is given as a command line
argument to newsyslog(8), and if that log file name is not
matched by any other line in the configuration file. The include
entry is used to include other configuration files and supports
globbing.
Code:
/var/log/httpd/apache24/main_*.log 644 14 * $M1D0 JB /var/run/httpd.pid 30
and running
newsyslog -v
gives this:
Code:
/var/log/httpd/apache24/main_*.log" <14J>: does not exist, skipped
But
ll /var/log/httpd/apache24/main_*.log
shows this:
Code:
-rw-r--r-- 1 root wheel 3495 Mar 7 12:30 /var/log/httpd/apache24/main_error.log
-rw-r--r-- 1 root wheel 0 May 10 2022 /var/log/httpd/apache24/main_httpd_access.log
-rw-r--r-- 1 root wheel 0 May 10 2022 /var/log/httpd/apache24/main_httpd_access_ssl.log
-rw-r--r-- 1 root wheel 390 May 11 2022 /var/log/httpd/apache24/main_httpd_error.log
-rw-r--r-- 1 root wheel 0 May 10 2022 /var/log/httpd/apache24/main_httpd_io_access.log
-rw-r--r-- 1 root wheel 0 Mar 1 00:00 /var/log/httpd/apache24/main_io_access.log
Does
newsyslog
support file globbing or not? If it does then is there a specific syntax to get it to work?