-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If the log files is twice soft links, the filebeat will faild in stat the file. #20509
Comments
Pinging @elastic/integrations (Team:Integrations) |
I make a mistake, the dst files of soft link is not mount in the filebeat. So this is not a issus, I will close it. |
I had mount the dest path, the issue is still hit. Pls pay a attention! |
It can be produced easily. Don't need discuss more. |
Can you provide the specific steps to reproduce? Thanks |
Pinging @elastic/integrations-services (Team:Services) |
[root@k8s-master chao]# kubectl version |
Thanks @chaoyujiang and my apologies for the late reply. I'm afraid we recommend not using soft links for the log files, as they cause many issues. |
Closing it for now until further activity. |
Filebeat error log:
2020-08-10T09:19:39.406Z DEBUG [input] log/input.go:297 stat(/var/log/containers/ratings-v1-65cff55fb8-66gsv_default_istio-init-dd7bff3f2327151597c4922a5ae69dcaa280a9fdca5737635fefac7fffb7a681.log) failed: stat /var/log/containers/ratings-v1-65cff55fb8-66gsv_default_istio-init-dd7bff3f2327151597c4922a5ae69dcaa280a9fdca573763
ll /var/log/containers/filebeat-8ql87_kube-system_filebeat-bd7d5c28e69440b700a81cc2963f2e54cf83b7a0718673387b388d89e5807af8.log
lrwxrwxrwx 1 root root 92 Aug 10 04:17 /var/log/containers/filebeat-8ql87_kube-system_filebeat-bd7d5c28e69440b700a81cc2963f2e54cf83b7a0718673387b388d89e5807af8.log -> /var/log/pods/kube-system_filebeat-8ql87_de1ca431-7aba-4169-943d-c68d5c2a6f67/filebeat/0.log
[root@k8s-worker-1 ~]# ll /var/log/pods/kube-system_filebeat-8ql87_de1ca431-7aba-4169-943d-c68d5c2a6f67/filebeat/0.log
lrwxrwxrwx 1 root root 164 Aug 10 04:17 /var/log/pods/kube-system_filebeat-8ql87_de1ca431-7aba-4169-943d-c68d5c2a6f67/filebeat/0.log -> /volume/docker/containers/bd7d5c28e69440b700a81cc2963f2e54cf83b7a0718673387b388d89e5807af8/bd7d5c28e69440b700a81cc2963f2e54cf83b7a0718673387b388d89e5807af8-json.log
[root@k8s-worker-1 ~]# ll /volume/docker/containers/bd7d5c28e69440b700a81cc2963f2e54cf83b7a0718673387b388d89e5807af8/bd7d5c28e69440b700a81cc2963f2e54cf83b7a0718673387b388d89e5807af8-json.log
-rw-r----- 1 root root 2728463 Aug 10 04:39 /volume/docker/containers/bd7d5c28e69440b700a81cc2963f2e54cf83b7a0718673387b388d89e5807af8/bd7d5c28e69440b700a81cc2963f2e54cf83b7a0718673387b388d89e5807af8-json.log
{
"labels": ["filebeat", "enhancement"]
}
The text was updated successfully, but these errors were encountered: