MyNixOS website logo
option

system.newsyslog.files.<name>.*.when

Time-based rotation schedule.

The value may be an interval in hours, a specific time, or both. If both are specified, both conditions must be satisfied.

Examples:

  • Interval only: 24
  • Daily: @T00 (daily at midnight)
  • Interval and time: 24@T00
  • Weekly: $W0D00 (weekly on Sunday at midnight)
  • Monthly: $M1D00 (monthly on the 1st at midnight)

If null, time-based rotation is disabled.

Declarations
    Type
    null or string
    Default
    null
    Example
    "@T00"