Open belimawr opened 2 months ago
Filebat: 8.13.2 Host OS: Amazon Linux 2 Systemd/Journald version: systemd 252 (252.16-1.amzn2023.0.2)
journalctl --version systemd 252 (252.16-1.amzn2023.0.2) +PAM +AUDIT +SELINUX -APPARMOR +IMA +SMACK +SECCOMP -GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN -IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 -BZIP2 -LZ4 +XZ -ZLIB -ZSTD +BPF_FRAMEWORK +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified
{"log.level":"error","@timestamp":"2024-05-01T19:29:01.010Z","log.logger":"input.journald","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/v2/compat.(*runner).Start.func1","file.name":"compat/compat.go","file.line":132},"message":"Input 'journald' failed with: input.go:130: input journald-input failed (id=journald-input)\n\tfailed to read message field: cannot allocate memory","service.name":"filebeat","id":"journald-input","ecs.version":"1.6.0"}
Sometimes Filebeat might just crash again. I also saw it failing once or twice with the same message as in https://github.com/elastic/beats/issues/32782.
Both seem to be relates with Filebeat being too far behind reading the journal, probably further behind than what journald has got stored in disk.
On both cases the error is coming from the Journald library we use, github.com/coreos/go-systemd/v22
github.com/coreos/go-systemd/v22
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)
Filebat: 8.13.2 Host OS: Amazon Linux 2 Systemd/Journald version: systemd 252 (252.16-1.amzn2023.0.2)
How to reproduce
Sometimes Filebeat might just crash again. I also saw it failing once or twice with the same message as in https://github.com/elastic/beats/issues/32782.
Both seem to be relates with Filebeat being too far behind reading the journal, probably further behind than what journald has got stored in disk.
On both cases the error is coming from the Journald library we use,
github.com/coreos/go-systemd/v22