not resume log files

Tags:

#1 GeorgeBouras

if I start nxlog manul from the command line like

/opt/nxlog/bin/nxlog -c      # RedHat7

everything works fine ; it reads the input logs from the positions when stopped. if I start it as service

systemctl start nxlog

then it ignores all the records of the input logs written while it was stopped. at my input definitions I have

SavePos          TRUE
ReadFromLast     TRUE

any help is welcomed, thanks, G. Bouras

#2 b0ti Nxlog ✓
#1 GeorgeBouras
if I start nxlog manul from the command line like /opt/nxlog/bin/nxlog -c # RedHat7 everything works fine ; it reads the input logs from the positions when stopped. if I start it as service systemctl start nxlog then it ignores all the records of the input logs written while it was stopped. at my input definitions I have SavePos TRUE ReadFromLast TRUE any help is welcomed, thanks, G. Bouras

It will only remember the last positions if it was able to save it in configcache.dat file when you stop it. Can you check that this file is created on shutdown?