Hi,
is there a possibility to run an output exec command only once per logfile and not with every processed document?
My data comes from CSV-files and I want to delete them after they have been processed by Logstash. I could do this with Logstash's exec output plugin executing an "rm %{path}" as command, but this is done for every row that is in the file and the total number of entries sometimes is >> 10.000.
Maybe there is an internal counter or something like that, which I could check in an if statement, so that it is only executed with the first document?
Thanks in advance 4 your help.