The docs for syslog 3.1.1 show an option on the file destination that I'd like to use to create logs that overwrite themselves daily, hourly or minutely (that would be a small log).
destination separate_host_1.2.3.4 { file("/home/archive/temporallogs/1.2.3.4_${SEC}.log" template(logmon) owner("nobody") group("sshusers") perm(0640) overwrite-if-older(1) ); };
I think this should work, especially considering this (from the docs):
In combination with for example the ${WEEKDAY} macro, this can be used for simple log rotation, in case not all history has to be kept.
The number in the overwrite-if-older command is seconds and if I restart syslog, it does work.
If there's something weird with filehandles and syslog that doesn't work every minute I'll give up this, as it is an edge case I'm just using it for testing (so I don't have to wait an hour). But if this is supposed to work, I'd like to know if I'm missing something.