Executed when: Browsing logs with Grafana.

Updates the log retention period.

clusterctl retention config logs –-period <period> [-y]

See below for a description of each parameter.

For example, to set a 15-days retention period.

$ sudo clusterctl retention config logs -–period 15
Warning: The command execution will temporarily interrupt the selected service. This might take several minutes
Are you sure you want to modify the retention values? [Y/n]: Y
Configuring logs retention period to 15 days... Done

--period <period>

Set the retention period to <period>, where  <period> is a number of days. 

A <period> value lower than the current period deletes all logs older than <period>

Mandatory: Yes.

-y, --yes

Skip the confirmation prompt.