How can I make Vector collect old log files

HOW TO -️ October 18, 2021

vector 0.24.1 (x86_64-unknown-linux-gnu 8935681 2022-09-12)

I have bunch of old log files sitting on the server:

ERROR Rendering Code Block

I want the logs to be collected using

ERROR Rendering Code Block

What vector does, is to pick up the latest file from the pattern .../access.log.* and collects only what's appended to the file, even though read_from = "beginning" is present.

I can't make it to read all the historical files from the beginning, so I can clean them up. The only way I made vector to really read a file from beginning was to insert a line at the beginning of a file.

Is this a bug or I'm doing something wrong?

Suggested tags: vector, observability


i dont know, but i would like to know. i'd like to know how to get it to reprocess logs that it processed parse additional fields i defined