Force logstash to reindex a CSV

Sometimes I need to force the re-indexing of files csv from the beginning.
my config logstash is

input {
file {
path => "/data/volumes/monitoring/logstash/dernier_passage/stocks.csv"
sincedb_path => "/dev/null"
start_position => "beginning"

What is the solution to reindex all files with logstash ?

That should work I guess.

but if the CSV not switch do not work

This prevents the in-memory sincedb being persisted across restarts, but if you replace the file without restarting logstash then logstash will remember that it has read the file.

If you restart logstash it should re-read the file.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.