By default, Loki stores logs for 14 days before they’re deleted. To override this behavior and specify your desired retention period, you can add a label called retention
during ingestion. You may choose from two predefined values - 90d
(for 90 days) or 180d
(for 180 days). If left unspecified, the default retention period will apply.