Schedule remove_file remove non processed file

Tags:

#1 kevin

Hey,

I use nxlog to send highly critical log (legal log). NXLog is configured to remove file after a specified retention time, to release space from drive.

My configuration works like a charm, but... If I deploy nxlog with this following configuration, nxlog remove all file older than my retention time but before the processing.

Every 1 hour Exec file_remove('%LOGFOLDER%', %RETENTIONTIME%);

How do you manage this removing process? Right now, I have to deploy nxlog without this schedule, wait for processing, stop nxlog, add schedule job to the configuration, restart nxlog.

Hope my case has not been already replied.

Thanks for your help :)

#2 kevin
#1 kevin
Hey, I use nxlog to send highly critical log (legal log). NXLog is configured to remove file after a specified retention time, to release space from drive. My configuration works like a charm, but... If I deploy nxlog with this following configuration, nxlog remove all file older than my retention time but before the processing. Every 1 hour Exec file_remove('%LOGFOLDER%', %RETENTIONTIME%); How do you manage this removing process? Right now, I have to deploy nxlog without this schedule, wait for processing, stop nxlog, add schedule job to the configuration, restart nxlog. Hope my case has not been already replied. Thanks for your help :)

It seems the answer was not so far...

Here was my input: <Input in1> Module im_file File '%LOGFOLDER%' SavePos TRUE ReadFromLast TRUE </Input>

By switching ReadFromLast to FALSE, nxlog read existing file before the deletion process.

I hope this post will help other peoples :)