Sample Header Ad - 728x90

How to increase the number of log files: /var/log/mail.log* on macOS?

0 votes
1 answer
41 views
On my actual macOS, there are every day 7 flat files in /var/log of name mail.log* rotating at 23:00: ### 18:20 milky-way:/etc/asl # ls -al /var/log/mail.log* -rw-r-----@ 1 root admin 333712 Dec 3 18:17 /var/log/mail.log -rw-r----- 1 root admin 44272 Dec 2 23:00 /var/log/mail.log.0.gz -rw-r----- 1 root admin 40376 Dec 1 23:00 /var/log/mail.log.1.gz -rw-r----- 1 root admin 37274 Nov 30 23:00 /var/log/mail.log.2.gz -rw-r----- 1 root admin 46093 Nov 29 23:00 /var/log/mail.log.3.gz -rw-r----- 1 root admin 52495 Nov 28 23:00 /var/log/mail.log.4.gz -rw-r----- 1 root admin 53763 Nov 27 23:00 /var/log/mail.log.5.gz -rw-r--r-- 1 root admin 54454 Nov 26 23:00 /var/log/mail.log.6.gz ### 18:20 milky-way:/etc/asl # I would like to get a set of one full month of these flat syslog files i.e. 30. I know these files are generated from the ASL database, and I tried to modify the file to push the store_ttl and ttl to 30. ### 18:24 milky-way:/etc/asl # cat /etc/asl/com.apple.mail # mail facility has its own log file ? [= Facility mail] claim only > /var/log/mail.log mode=0640 format=bsd rotate=seq compress store_ttl=30 ttl=30 file_max=5M all_max=50M * file /var/log/mail.log ### 18:24 milky-way:/etc/asl # And next killed syslogd wigh HUP to make it reload the ASL modules configuration. But I continue to have just 7 /var/log/mail.log*. Which process is making the rotation of these /var/log/mail.log*? How to configure this process? so as to get a full month ( 30 ) of them ?
Asked by athena (1085 rep)
Dec 3, 2024, 07:52 PM
Last activity: Dec 20, 2024, 12:59 PM