Skip to content

Commit 598ae59

Browse files
authored
chore/docs: add backfilling example (#867)
Signed-off-by: cancaicai <[email protected]>
1 parent 29ccc30 commit 598ae59

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/victorialogs/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ VictoriaLogs accepts logs with timestamps in the time range `[now-retentionPerio
194194
where `retentionPeriod` is the value for the `-retentionPeriod` command-line flag and `futureRetention` is the value for the `-futureRetention` command-line flag.
195195
Sometimes it is needed to reject logs older than the given age. This can be achieved by passing `-maxBackfillAge=d` command-line flag to VictoriaLogs,
196196
where `d` is the maximum age of logs to be accepted. Older logs are rejected and a sample of these logs is put into VictoriaLogs output logs, so they could be investigated.
197+
For example, the following command starts VictoriaLogs, which rejects logs older than 1 hour:
198+
199+
```sh
200+
/path/to/victoria-logs -maxBackfillAge=1h
201+
```
197202

198203
## Storage
199204

0 commit comments

Comments
 (0)