It looks like we can only control with the size of the log, not by days?
log.maxsize=maximum_size[B|K|M|G]
Specifies the maximum log size. When the log file exceeds the specified size, the agent
archives it and starts a new log file. If the log.archive parameter is set to 3, the agent ignores
this parameter. The agent does not create an archive file, but it does append all logs. You can
specify the following optional modifiers:
B
Specifies the size in bytes.
K
Specifies the size in kilobytes.
M
Specifies the size in megabytes.
G
Specifies the size in gigabytes.
Limits: Up to 2 GB
Default: 1M
Note: The default (no modifier) size is in bytes
Thanks,
Chandru