set logging file retention

Last Updated : Oct 01, 2020 |

Syntax

Defines the period of time in days that log content will be retained.

set logging file retention {retention_days}

retention_days must be either:

  • A value between 1 and 9999, inclusive

  • Unlimited

# set logging file retention unlimited
Log retention time is unlimited.
Done!
# show logging file retention
Log retention time is unlimited.
Done!
# set logging file retention 30
Log retention time is 30 days.
Done!
# show logging file retention
Log retention time is 30 days.
Done!
# set logging file retention 10000
Error: Parameter 1 (<retention_days>) value (10000) > maximum value(9999)
set logging file retention -- Set log retention time in days
Syntax : set logging file retention <retention_days>