End process when EOF Reached

Tags: im_file

#1 adurance

Hello - new to nxlog. Trying to end nxlog process when EOF reached on input file. Any help appreciated.

Thanks, Andrew

#2 manuel.munozDeactivated Nxlog ✓
#1 adurance
Hello - new to nxlog. Trying to end nxlog process when EOF reached on input file. Any help appreciated. Thanks, Andrew

Hi Andrew,

There's an OnEOF label for im_file module in Enterprise version you could use to stop the module/s, but I am afraid it is not present in Community Edition.

    <OnEOF>
       <Exec>
          thismodule->module_stop();
       </Exec>
    </OnEOF>