After a Vulnerability remediation update to a DockerHost server, the filebeat agent stopped pushing the logs. Other beats are pushing the logs and is received by the elastic.
Error:
ERROR [registrar] registrar/registrar.go:205 Error writing registrar state to statestore: failed in store/get operation on store 'filebeat': write /var/lib/filebeat/registry/filebeat/checkpoint.new: cannot allocate memory
ERROR [registrar] registrar/registrar.go:205 Error writing registrar state to statestore: failed in store/get operation on store 'filebeat': write /var/lib/filebeat/registry/filebeat/checkpoint.new: input/output error
Not aware what is checkpoint.new file
Trouble shooting done
pinged the elastic host where logs are getting pushed, its working
2)checked the filebeat.yml is there any change, no change
checked the space available, sufficient space is left
Tried out the commands,
sudo filebeat test config
sudo filebeat test output, and resulting positive answers
@madhavsankarg have you tried
filebeat -e -d "*" -c {location of the configuration file}
this enters the debug mode. it does not connect to the the logstash or the elastic but it lets you see what is happening before sending logs out.
if you are not seeing any errors and logs are been processed fine try telnet to the output address in the config file with the port.
something to have in mind if you do the -e -d it will create a "data" folder in the location you are executing the command. so clean after ur self. you can also use --path.data to redirect the output of the command. or you can point it to exist data folder that will continue showing based on the progress of the existing filebeat. tho that may be desirable for troubleshooting purpose.
The issue was resolved
Resolved by restarting the server
there was some issue with network connection establishing ,it was confirmed when we ran sudo netstat -taupn | grep filebeat
When tried for metricbeat the connection is established and for filebeat connection was not. So logs where not sent to elastic cluster.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.