We have an ELK Stack v7.5.1 deployed in a k8s cluster.
We have Filebeat gathering k8s/docker container logs.
I've confirmed by using stdout that Filebeat is passing the needed logs and Logstash is receiving it.
But I'm not able to find it in Kibana.
My Logstash output config is as follows:
I enabled logging at debugging level but I am not seeing any errors in the logs of Elasticsearch or Logstash.
Can someone point me in the right direction to find out the problem?
Thanks for responding.
Yes I am able to see logs.
Since the logs is being collected by Filebeat, these are logs from all deployed containers.
We just discovered that the logs of a particular application container is not being sent.
The application is generating at least 50~100 logs per minute and I am also seeing it being printed out in Logstash but I am unable to find it in Kibana.
Hmmm, after your response @NerdSec .
I started investigating the timestamp in the logs of Logstash.
Using grep, I am seeing that the value of the field @timestamp is not the current date and time.
Some values are even months old.
I thought the @timestamp field is the date and time when the event was received from filebeat?
Yes, it is the timestamp of the container/local system on which the agent is installed. Could you verify that the timestamp in the system is syncd with NTP?
So I've traced this. It seems that filebeat is sending the incorrect @timestamp value.
Which is sent to Logstash then Elasticsearch. I believe it is the cause of the problem.
For various reasons, we are not able to add parsing configurations to filebeat at this time.
I am thinking of using ingest pipelines to add/set a different timestamp field.
I'm having trouble implementing this.
How do I access the date generated by my painless script in the set processor?
Anyways, thanks for helping me find the cause of the problem.
Yeah, I checked the value of the date command on both the pod and the EC2 instance.
But when I checked the stdout of filebeat, the @timestamp field is off.
Some dates are even a few months old.
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.