Skip to content

Rotation policy #271

Open
Open
@KleinenberG

Description

@KleinenberG

Hello. Please, can i get more infogmation about rotation log?
I setup both variables

      LABELS_DAYS: 7,
      SAMPLES_DAYS: 7,
cloki :) SELECT * FROM settings
┌──────────fingerprint─┬─type───┬─name────────────────┬─value──────┬───────────────────inserted_at─┐
│            990984054 │ rotate │ v3_samples_days     │ 7          │ 2022-10-18 06:23:40.000000000 │
│           4103757074 │ rotate │ v3_time_series_days │ 7          │ 2022-10-18 06:23:40.000000000 │
│ 14553193486094442270 │ update │ v3_1                │ 1666074220 │ 2022-10-18 06:23:40.000000000 │
└──────────────────────┴────────┴─────────────────────┴────────────┴───────────────────────────────┘

as I understand it, the rotation settings are applied

but I see, in file system, files older than 7 days

drwxr-x--- 2 systemd-resolve systemd-journal 4096 Dec 14 12:46 202212_657575_657819_57
drwxr-x--- 2 systemd-resolve systemd-journal 4096 Dec 14 12:16 202212_656880_657574_159
drwxr-x--- 2 systemd-resolve systemd-journal 4096 Dec 14 10:49 202212_655946_656879_166
drwxr-x--- 2 systemd-resolve systemd-journal 4096 Dec 14 09:01 202212_599395_655945_168
drwxr-x--- 2 systemd-resolve systemd-journal 4096 Dec  9 12:17 202212_540183_599394_173
drwxr-x--- 2 systemd-resolve systemd-journal 4096 Dec  5 17:29 202211_500841_503460_99
drwxr-x--- 2 systemd-resolve systemd-journal 4096 Dec  4 08:07 202212_503465_540182_167
drwxr-x--- 2 systemd-resolve systemd-journal 4096 Dec  1 03:15 202211_503461_503464_1
drwxr-x--- 2 systemd-resolve systemd-journal 4096 Nov 30 21:32 202211_497919_500840_162
drwxr-x--- 2 systemd-resolve systemd-journal 4096 Nov 30 15:33 202211_482366_497918_162
drwxr-x--- 2 systemd-resolve systemd-journal 4096 Nov 29 17:04 202210_1_158056_206
drwxr-x--- 2 systemd-resolve systemd-journal 4096 Nov 29 08:58 202211_420098_482365_177
drwxr-x--- 2 systemd-resolve systemd-journal 4096 Nov 27 10:22 202211_158057_331915_211
drwxr-x--- 2 systemd-resolve systemd-journal 4096 Nov 23 23:33 202211_331916_420097_192
drwxr-x--- 2 systemd-resolve systemd-journal 4096 Oct 18 09:34 detached
-rw-r----- 1 systemd-resolve systemd-journal    1 Oct 18 09:34 format_version.txt

What query should be executed to check that the old data is really in the database?
Or i dont understand how work this rotation policy!?
Thanks.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions