You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Affected version: main (it will be released in 8.16.0)
Operating System: Linux
Since we migrated to using journalctl to read journal logs we're only ingesting the logs from the current boot. That happens because when we call journalctl with the -f flag, it only returns logs from the current boot.
How to reproduce
Download a 8.16.0 snapshot or build Filebeat from main
Repeat the same procedure with Filebeat 8.15.2, there will be multiple boot IDs
How to test
Make sure there is more than one boot on your journal by running:
root@vagrant-debian-12:~/filebeat# journalctl --list-boots
IDX BOOT ID FIRST ENTRY LAST ENTRY
-5 4a6190928ecb475cabbce67f5c1b5004 Tue 2024-09-17 13:44:16 UTC Wed 2024-09-18 02:17:01 UTC
-4 7d0d965365c4452a867497dc402d6892 Fri 2024-09-20 16:00:46 UTC Fri 2024-09-20 16:42:30 UTC
-3 de7cb6dc8aeb432890fc74065d69fad6 Fri 2024-09-20 16:42:36 UTC Sun 2024-09-22 07:41:50 UTC
-2 3bef166cbe6a40978cc160b6251ffa1a Tue 2024-10-01 13:56:57 UTC Tue 2024-10-01 18:17:01 UTC
-1 3c7d7cbf5c59454581c6f24b8a84323f Tue 2024-10-01 20:14:38 UTC Tue 2024-10-01 21:28:33 UTC
0 9cf28a5f90024748a2982c4166feb28a Tue 2024-10-01 21:28:59 UTC Wed 2024-10-02 05:17:01 UTC
root@vagrant-debian-12:~/filebeat#
main
(it will be released in 8.16.0)Since we migrated to using
journalctl
to read journal logs we're only ingesting the logs from the current boot. That happens because when we calljournalctl
with the-f
flag, it only returns logs from the current boot.How to reproduce
Download a 8.16.0 snapshot or build Filebeat from
main
Create the following filebeat.yml
filebeat.yml
Start Filebeat
Check the different boots in the events
You will find only a single boot ID.
Repeat the same procedure with Filebeat 8.15.2, there will be multiple boot IDs
How to test
example.journal.tar.gz contains 6 entries from 3 different boots:
You can also validate that when the
-f
option is passed only the last boot is returned:The text was updated successfully, but these errors were encountered: