7
responses
responses
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
Comments (6)
Yes the file
is created, at
but I do not know if the offsets there are updated as should. the service is started as root ( the command also) The same behavior on different redhat / centos boxes It is the nxlog EE ( registered) I have tried numerous
variations without success
my input
Thanks, G. Bouras
anyone ?
Please remove
ExecStartPre=/opt/nxlog/bin/nxlog -v
from /usr/lib/systemd/system/nxlog.service
and retry
I tried your "magical" work around and worked , thanks !
I wonder if this directive produce such faulty behavior, why it was there at the first place.
Interesting. Not sure how
-v
would be related but we will look into this.We found , that the -v resets the offsets at the configcache.dat
That was 3 lost days at customer.
G.