A configuration key, for example "logs_retention" (in days), specifies how long logs are kept. If the value is -1, the retention period is unlimited. Logs are automatically removed with they are older than configuration key.