-
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
Replace github.com/coreos/go-systemd/v22/sdjournal
by journalctl
#40061
Replace github.com/coreos/go-systemd/v22/sdjournal
by journalctl
#40061
Commits on Aug 7, 2024
-
[WIP] Reading journal file with journalctl
New reader to read journald using jounralclt. The reader can read from files and supports matchers. A test is added to compare both readers.
Configuration menu - View commit details
-
Copy full SHA for 999f954 - Browse repository at this point
Copy the full SHA 999f954View commit details -
Configuration menu - View commit details
-
Copy full SHA for f224875 - Browse repository at this point
Copy the full SHA f224875View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6128bd - Browse repository at this point
Copy the full SHA a6128bdView commit details -
Improve comparison test by removing fields that were not present in the go-systemd implementation.
Configuration menu - View commit details
-
Copy full SHA for bb62b30 - Browse repository at this point
Copy the full SHA bb62b30View commit details -
Configuration menu - View commit details
-
Copy full SHA for c55ce4d - Browse repository at this point
Copy the full SHA c55ce4dView commit details -
Add a journal file to test matchers and some example code of how to generate a user journal file for testing
Configuration menu - View commit details
-
Copy full SHA for 4361ee1 - Browse repository at this point
Copy the full SHA 4361ee1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d70aaf - Browse repository at this point
Copy the full SHA 5d70aafView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ca3aa0 - Browse repository at this point
Copy the full SHA 1ca3aa0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c17b406 - Browse repository at this point
Copy the full SHA c17b406View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a51434 - Browse repository at this point
Copy the full SHA 3a51434View commit details -
Configuration menu - View commit details
-
Copy full SHA for ebfd5fb - Browse repository at this point
Copy the full SHA ebfd5fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0fa3f8f - Browse repository at this point
Copy the full SHA 0fa3f8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ca2067 - Browse repository at this point
Copy the full SHA 5ca2067View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7cef9e7 - Browse repository at this point
Copy the full SHA 7cef9e7View commit details -
Remove
journalread
and simplify seek modeThis commit fully removes the `jouranlread` package that was responsible for reading the journal using `github.com/coreos/go-systemd/v22/sdjournal`. The seek mode is also greatly simplified.
Configuration menu - View commit details
-
Copy full SHA for 69073fb - Browse repository at this point
Copy the full SHA 69073fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e29fec - Browse repository at this point
Copy the full SHA 1e29fecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b1da61 - Browse repository at this point
Copy the full SHA 2b1da61View commit details -
Configuration menu - View commit details
-
Copy full SHA for 54fa0f0 - Browse repository at this point
Copy the full SHA 54fa0f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d1ab6f - Browse repository at this point
Copy the full SHA 7d1ab6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4995848 - Browse repository at this point
Copy the full SHA 4995848View commit details -
Configuration menu - View commit details
-
Copy full SHA for d6cca1b - Browse repository at this point
Copy the full SHA d6cca1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b46433a - Browse repository at this point
Copy the full SHA b46433aView commit details -
remove un-used fields from config
Because we're tailing journalctl, having a backoff config does not make sense any more.
Configuration menu - View commit details
-
Copy full SHA for 85a01c8 - Browse repository at this point
Copy the full SHA 85a01c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 876be54 - Browse repository at this point
Copy the full SHA 876be54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19ab55e - Browse repository at this point
Copy the full SHA 19ab55eView commit details -
- Remove unused methods - Remove unused variables - Fix error wrapping formatting - Simplify code
Configuration menu - View commit details
-
Copy full SHA for 42f5d83 - Browse repository at this point
Copy the full SHA 42f5d83View commit details -
- Fix types - Remove unused code/config options - Refactor variable names - Fix typos and documentation - Clean up log entries - Improve error messages
Configuration menu - View commit details
-
Copy full SHA for 763d9fe - Browse repository at this point
Copy the full SHA 763d9feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e51599 - Browse repository at this point
Copy the full SHA 3e51599View commit details -
Configuration menu - View commit details
-
Copy full SHA for 842e20d - Browse repository at this point
Copy the full SHA 842e20dView commit details -
Unblocks
Next
if cancel is cancelled and add documentationAdd documentation to all exported methods and types from `journalctl/reader.go`. `Reader.Next` now returns immediately if the cancel is cancelled.
Configuration menu - View commit details
-
Copy full SHA for 7372e99 - Browse repository at this point
Copy the full SHA 7372e99View commit details -
Gracefully terminate input and use map[string]any for events
- Gracefully terminate input on canceller cancellation, the Reader now returns ErrCancelled then the journald input reads it and gracefully returns without bubbling up the error - Journal events are now parsed as map[string]any because in some cases there can be binary data like in some core dumps.
Configuration menu - View commit details
-
Copy full SHA for d3782d1 - Browse repository at this point
Copy the full SHA d3782d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 728b0b7 - Browse repository at this point
Copy the full SHA 728b0b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for e1f8f08 - Browse repository at this point
Copy the full SHA e1f8f08View commit details -
Configuration menu - View commit details
-
Copy full SHA for 253db5d - Browse repository at this point
Copy the full SHA 253db5dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 409ba3e - Browse repository at this point
Copy the full SHA 409ba3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for be0c064 - Browse repository at this point
Copy the full SHA be0c064View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2cff54c - Browse repository at this point
Copy the full SHA 2cff54cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a1eb4b0 - Browse repository at this point
Copy the full SHA a1eb4b0View commit details -
Fix error handling when journalctl
This commit fixes two problems: - The output from stderr was read and sent to a channel, but the channel was never read. - Stderr was read in memory until EOF, which could lead to an uncontrolled memory growth. Now each line is sent to an unbuffered channel until EOF or an read error occurs. The Stop method now reads from this channel until the end (channel close) or a timeout of 1 minute occurs.
Configuration menu - View commit details
-
Copy full SHA for 1638e3c - Browse repository at this point
Copy the full SHA 1638e3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a220b9b - Browse repository at this point
Copy the full SHA a220b9bView commit details -
Configuration menu - View commit details
-
Copy full SHA for af93cbb - Browse repository at this point
Copy the full SHA af93cbbView commit details -
Fix issue with timestamp comparison on tests.
The locale/timezone from the host running the the test could generate a timestamp object different from the golden events, this commit fixes it by comparing them with their `Equal`.
Configuration menu - View commit details
-
Copy full SHA for 15536f6 - Browse repository at this point
Copy the full SHA 15536f6View commit details -
Improve seek since times to avoid issues on different hosts
On TestInputSeek set the since option to a time between the first and second entries to avoid issues with different hosts.
Configuration menu - View commit details
-
Copy full SHA for dc3a251 - Browse repository at this point
Copy the full SHA dc3a251View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b99814 - Browse repository at this point
Copy the full SHA 3b99814View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b74934 - Browse repository at this point
Copy the full SHA 6b74934View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4781a27 - Browse repository at this point
Copy the full SHA 4781a27View commit details -
The since tests was broken because newer versions of Jouranlctl accepts time stamps on RFC3339, but older versions do not. The Reader now formats the since parameter in a format accepted by older versions of systemd. The since tests ensures the timestamp is in the local timezone to avoid conflicts with jouranlct.
Configuration menu - View commit details
-
Copy full SHA for 7cc87f2 - Browse repository at this point
Copy the full SHA 7cc87f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 02ed4b6 - Browse repository at this point
Copy the full SHA 02ed4b6View commit details -
Fix failing tests due to journal format
This commit fixes tests that were failing due to an incompatible journal version. The new journal file was generated with journald 249 (249.11-0ubuntu3.12).
Configuration menu - View commit details
-
Copy full SHA for 7e4325f - Browse repository at this point
Copy the full SHA 7e4325fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5206107 - Browse repository at this point
Copy the full SHA 5206107View commit details -
Configuration menu - View commit details
-
Copy full SHA for 146d285 - Browse repository at this point
Copy the full SHA 146d285View commit details -
Add syscalls required to call journalctl
This commit adds the missing syscalls to our seccomp policy so Filebeat can start the journalctl process. The syscalls were acquired by running Filebeat with the seccomp default action set to "log", and running Auditbeat to collect those logs and convert the syscall number into a name accepted by our seccomp policy.
Configuration menu - View commit details
-
Copy full SHA for 284f7b1 - Browse repository at this point
Copy the full SHA 284f7b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4caef50 - Browse repository at this point
Copy the full SHA 4caef50View commit details
Commits on Aug 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e1e783b - Browse repository at this point
Copy the full SHA e1e783bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e8ed98b - Browse repository at this point
Copy the full SHA e8ed98bView commit details -
Add the correct syscalls to the changelog and move the entry under breaking changes.
Configuration menu - View commit details
-
Copy full SHA for 1f58c7e - Browse repository at this point
Copy the full SHA 1f58c7eView commit details -
Merge branch 'journalctl-for-journald-input' of github.com:belimawr/b…
…eats into journalctl-for-journald-input
Configuration menu - View commit details
-
Copy full SHA for 6572cb9 - Browse repository at this point
Copy the full SHA 6572cb9View commit details -
Fix merge conflicts in the changelog and improve working of one entry.
Configuration menu - View commit details
-
Copy full SHA for 35a5d8c - Browse repository at this point
Copy the full SHA 35a5d8cView commit details -
Re-add removed syscall from seccomp
Re-add a syscall that was mistakenly removes from the default seccomp policy.
Configuration menu - View commit details
-
Copy full SHA for acbe1d8 - Browse repository at this point
Copy the full SHA acbe1d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec6fc35 - Browse repository at this point
Copy the full SHA ec6fc35View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1359a65 - Browse repository at this point
Copy the full SHA 1359a65View commit details