I am running into a strange issue with filebeat on one of our production transaction servers.
Background:
Filebeat on one of our production servers went down for some ‘unknown’ reason (still haven’t figured out why this happened) but when I brought the service back up it started without reporting any errors but it isn’t recognizing any file activity. Double checked everything and traffic was coming in but filebeat wasn’t sending any information on to elasticsearch.
I performed a complete uninstall of v7.9.2 (including the service) and then installed 7.10.2 with no change in behavior.
I’ve attached the documents from the server in the attached zip file with the following directory structure
When I place filebeat in debug mode I'm seeing transactions being grabbed by filebeat but not being passed on to elasticsearch. This can seen in the stand-alone log file.
The service is using an account that infrastructure uses to allow servers to talk to each other in production.
This was working up until recently and the infrastructure team swears that there were not changes made to the production server.
I am also working with Mike Mulcahy on this and he says that it might be file that is hung up in filebeat - he's seen the same behavior in logstash. So then my question becomes how can I find out if a file is hung up in filebeat and then clear.
I've tried deleting the data directory and restarting filebeat and that didn't clear the issue.
Please share the debug logs in a pastebin so as to have a better view. It's still weird though what you are seeing . Can you make sure you don't see any errors in the debug logs?
I have also been working with Mike Mulcahy from Elastic and said that '...Sometimes there is a file that holds a pointer and let's filebeat know where it left off'
So I tried deleting the data folder one more time and restarting filebeat and then just leaving it alone and when I came back this morning filebeat was indeed sending information to Elasticsearch. Not sure why that file pointer was being so stubborn in clearing.
It's working but now I need to do some deeper digging into how filebeat works under the covers and get a deeper understanding of how it uses it's filepointers.
If anybody who reads this post has some recommended reading on the subject it would be greatly appreciated. I will wait a few days before marking this as resolved.
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.