How to collect database logs on cloud platforms? #24111
-
A note for the communityThere are many databases on my k8s cluster, and their logs are stored in different PVCs with a format similar to/ var/lib/kubelet/pods/{pod-uid}/volumes/kubernetes.io~csi/{pvc-name}/mount/app.log, The existing plugins can only collect data from/var/log/pods. If collected using a file directory, it will not be possible to label it with the correct k8s tag? May I ask how I should proceed? Use CasesNo response Attempted SolutionsNo response ProposalNo response ReferencesNo response VersionNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
If it is considered necessary to add a transform plugin for accessing API servers with only pod ID file directories to obtain sufficient data, then I am willing to take on this task and hope to receive support and assistance from the community. |
Beta Was this translation helpful? Give feedback.
-
|
We have also encountered this scene. We hope to listen to the log of PVC. I think we can consider it from the perspective of the catalog of kubelet? For example, let's parse /var/lib/kubelet. Of course, this parameter is variable. Shall we add a plug-in of kubernetes_kubelet? Or call it kubernetes_pvc |
Beta Was this translation helpful? Give feedback.
-
|
The If you want to you could use the |
Beta Was this translation helpful? Give feedback.
The
kubernetes_logssource only looks at files under/var/logs/pods.If you want to you could use the
filesource to read logs from/var/lib/kubelet/...