File Deletion OnEOF

View thread

bubbre01 (Last updated )

Is it possible to perform a file deletion on the end of the file in the community edition with something like the below configuration?

<Input csv> 
    Module          im_file
    ReadFromLast    True
    SavePos         True
    PollInterval    300
    File        'file/location'

    # Parse the CSV events
     <Exec>
             csv->parse_csv();
     </Exec>

      <OnEOF>
         <Exec>
             file_remove(file_name());
         </Exec>
         GraceTimeout  10
     </OnEOF>
</Input>