Rotate logs by local time
Is your feature request related to a problem? Please describe.
I wasn't certain whether to frame this as a question or a feature request but here it goes. Currently, Cowrie uses a timezone setting in the config file, which is set to TZ by default. This is fine - I want the timestamps in the logs to be in UTC time. However, it seems that it also controls the time at which the logs are rotated. My time zone is EET+2DST, so the logs are rotated at 03:00 my local time (i.e., at 00:00 UTC).
Describe the solution you'd like Would be nice to have the ability to specify when the logs are to be rotated. Alternatively, apply the timezone setting only to the timestamps in the logs - not to the log rotation; let those be rotated at midnight local time.
Describe alternatives you've considered
On Linux I could set logtype to plain and use the logrotate command to rotate the logs - but that's not available on Windows.
Source: cowrie/cowrie