Is there a reason that no one has added strftime formatting to the filename parsing for syslogd?
It seems to me that a line in /etc/syslog.conf like:
security.* /var/log/security/+%Y-%m-%d
would be very useful. In today's world of append only filesystems that take care of compression, wouldn't others find this useful?
The old rotate and compress was a hack to save disk space but that hasn't been an issue on my systems this century.
I'm asking here in General because I've heard nothing back from other places I've asked this question. The patch should be simple, (look for %+, call strftime with a buffersize -1 to ensure a null at the end), but no one has done this in the 40 years that syslog has been around.
Modern logging standards (for a few decades now) have been to keep logs as immutable as possible yet the move and compress process violates that and the filesystem will compress anyway and can keep a thousands of years worth of log filenames.
So what am I missing?
It seems to me that a line in /etc/syslog.conf like:
security.* /var/log/security/+%Y-%m-%d
would be very useful. In today's world of append only filesystems that take care of compression, wouldn't others find this useful?
The old rotate and compress was a hack to save disk space but that hasn't been an issue on my systems this century.
I'm asking here in General because I've heard nothing back from other places I've asked this question. The patch should be simple, (look for %+, call strftime with a buffersize -1 to ensure a null at the end), but no one has done this in the 40 years that syslog has been around.
Modern logging standards (for a few decades now) have been to keep logs as immutable as possible yet the move and compress process violates that and the filesystem will compress anyway and can keep a thousands of years worth of log filenames.
So what am I missing?