How logstash can get the total number of line in a file (count))

Hi @paz,

Thanks for your reply.

Yes, the sucess file is geneated every 20 minutes in a special repertory like /date-time/sucess.csv (because we have a job that lauche every 20 minutes).
so we have a logstash config to read all CSV file in such repository (/date-time/).

I tested metric filter, it's easier to use than others.

This means that I will have to use metric filter with an appropriately time. Can we set only 1 time for an metric filter (because the sucess file is unique and definitive, there is no new line added) ?

Thanks.