I would like to delete following files with newsyslog.conf when the files are older than 6 month:
# logfile [owner:group] mode count size when flags [/pid_file] /mnt/usb/access_*.log
Which other options do I have to set?
You need to specify values for all of the mandatory fields.
The following will cause new log files to be created with mode 644, and will keep at most 6 files, before deleting the oldest. The
Without knowing more about your use case, it's impossible to give you a more specific instruction. For example, you say nothing about how these files are written, or what ownership should apply, but the