-
Notifications
You must be signed in to change notification settings - Fork 102
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
journald logs from systemd missing #141
Comments
Same here. We are evaluating kube-fluentd-operator for an AKS installation, but we are not able to figure out how to get something from systemd. The nodes are based on Ubuntu 18.04.5 LTS and we see the journal files mounted to the daemon set, but nothing special in fluent logs:
Any idea? |
@ccbur For the short testing session we did, I ended up switching to https://github.com/fluent/fluentd-kubernetes-daemonset |
I looked also into https://github.com/fluent/fluentd-kubernetes-daemonset and https://github.com/fluent-plugin-systemd/fluent-plugin-systemd and what issues there are regarding systemd, but it's more or less all around user permissions and systemd versions. As far as I can tell those two issues should not be the case with kube-fluentd-operator as it's already starting with root permissions (which I don't like) and our nodes are using the LTS with an older version of systemd (237 I think) which should be compatible. :-( |
Systemd version is 239 in photon:3.0 which is the base image that we use inside the container that is running fluentd. Could this be the problem?
@ccbur, can you verify the version of systemd inside the log-router fluentd container matches the above version. Also could you upgrade to systemd version 239 on the nodes so we can isolate that is not causing the issues? I can't find any open issues related to photon, systemd, journald so I don't believe we are hitting anything like that. Linked library is installed on the photon base image:
On photon:4.0 the latest systemd is:
We will probably move to photon:4.0 soon. Why did you say that systemd version matters? Are there any open issues we should be aware of @ccbur, beside this one fluent-plugins-nursery/fluent-plugin-systemd#87? |
I had fluent-plugins-nursery/fluent-plugin-systemd#87 in my mind regarding systemd
Currently I don't have access to the nodes, so I can only relate to the Ubuntu LTS version which should be based on Systemd 237. Sorry, an upgrade is currently not possible. But I tried to use journalctl directly and got a lot of errors about missing lz4 compression when using the debug log level:
I'm not familiar with Photon OS, but maybe it's the same missing lz4 dependency like in this Homebrew issue: https://github.com/Homebrew/linuxbrew-core/issues/19506 I looked into https://github.com/vmware/photon/blob/3.0/SPECS/systemd/systemd.spec and there is no
Is it possible to upgrade the systemd package in photon:3.0 to the same package like in photon:4.0? |
lz4 is probably the issue here then. Compression is enabled on the nodes and when photon's systemd does not have the compression library it cannot read the files... We will be upgrading to photon:4.0 for next release: #184 |
- upgrade to use photon:4.0 - upgrades systemd to 247 and enables l4z compression - fixes vmware#141 - resolves vmware#184 Signed-off-by: Anton Ouzounov <[email protected]>
PR is already made and tested that it builds: #186 L4Z flag is enabled on systemd 247 in photon:4.0 This will be included the next release. |
Hello,
I installed the operator and I can see my application logs inside the cluster.
However I cannot see the journal logs (kubelet, etc) inside the cluster.
I'm using the EFK stack (elastic search, fluentd, kibana).
Inside the fluentd container I have access to the
/var/log/journal directory
(drwxr-sr-x 3 root 101 4096 May 21 12:37 journal
). There are no noticeable messages in the fluentd's logs. Where should I look next to get the journald logs in my EFK stack?The text was updated successfully, but these errors were encountered: