Repository navigation
Conversation
Contributor
🤖 GitHub commentsJust comment with:
|
Contributor
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
christos68k
marked this pull request as draft
September 16, 2026 21:42
biscout42
added a commit
to biscout42/elastic-agent
that referenced
this pull request
Sep 24, 2026
christos68k
force-pushed
the
ck/quark
branch
from
September 28, 2026 16:20
e2e0dc2 to
effe8d9
Compare
christos68k
marked this pull request as ready for review
September 29, 2026 08:53
|
Pinging @elastic/sec-linux-platform (Team:Security-Linux Platform) |
Member
Author
biscout42
reviewed
Sep 29, 2026
biscout42
approved these changes
Sep 29, 2026
cmacknz
approved these changes
Sep 29, 2026
efd6
approved these changes
Sep 29, 2026
Contributor
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
5 tasks done
P1llus
approved these changes
Oct 5, 2026
4 of 6 tasks
4 of 6 tasks
christos68k
added a commit
that referenced
this pull request
Nov 12, 2026
* [auditbeat] Replace use of QQ_ALL_BACKENDS (#52574) The quark attribute flag QQ_ALL_BACKENDS is being removed in future versions of go-quark. This removes its use from auditbeat. Instead of using QQ_ALL_BACKENDS, consumers will be responsible for explicitly setting the backend to be used, and retrying with a different backend in case of failure. Now auditbeat will attempt eBPF first, then attempt kprobe if it fails; this is the same behaviour quark has with QQ_ALL_BACKENDS (cherry picked from commit 6861354) * auditbeat: adapt to quark 0.8 backend flags and since-boot times (#52623) * auditbeat: adapt to quark 0.8 since-boot timestamps quark 0.8 hands out Proc.TimeBoot and Exit.ExitTimeProcess as nanoseconds since boot instead of since the epoch (quark CHANGES 0.7->0.8): without conversion, process.start and process.end would be dated shortly after 1970. Convert with the new quark.TimeToWallclock() everywhere they feed process.start and process.end, in both quark providers. Emitted events are unchanged. quark's boottime epoch, cached at quark_queue_open(), also moves when the system clock is stepped (say NTP correcting a clock that was wrong at boot), and keeping it fresh is the consumer's job. Both providers call quark.UpdateBoottime() on their existing 5-second stats cadence: it re-reads /proc/stat btime, which is stable between reads and only moves on a step, and quark stores it only when it actually changed. Corrections apply retroactively to anything translated afterwards. The backend flag changes (QQ_ALL_BACKENDS removal) landed separately in #52574. go-quark is pinned to a pre-release of the 0.8 update (elastic/go-quark#40) and will be bumped to the tagged release before merging. * auditbeat: pin go-quark to v0.8.0 * auditbeat: fix goimports alignment in quark test (cherry picked from commit 7b4b565) * auditbeat: update for quark 0.9 changes (#53284) * auditbeat: update for quark 0.9 changes * auditbeat: update go-quark to v0.9.0 * auditbeat: add fragment * auditbeat: review feedback on quark 0.9 update (cherry picked from commit 181205b) Co-authored-by: Michael Wolf <michael.wolf@elastic.co> Co-authored-by: Nicholas Berlin <56366649+nicholasberlin@users.noreply.github.com>
4 of 6 tasks
christos68k
added a commit
that referenced
this pull request
Nov 12, 2026
* [auditbeat] Replace use of QQ_ALL_BACKENDS (#52574) The quark attribute flag QQ_ALL_BACKENDS is being removed in future versions of go-quark. This removes its use from auditbeat. Instead of using QQ_ALL_BACKENDS, consumers will be responsible for explicitly setting the backend to be used, and retrying with a different backend in case of failure. Now auditbeat will attempt eBPF first, then attempt kprobe if it fails; this is the same behaviour quark has with QQ_ALL_BACKENDS (cherry picked from commit 6861354) * auditbeat: adapt to quark 0.8 backend flags and since-boot times (#52623) * auditbeat: adapt to quark 0.8 since-boot timestamps quark 0.8 hands out Proc.TimeBoot and Exit.ExitTimeProcess as nanoseconds since boot instead of since the epoch (quark CHANGES 0.7->0.8): without conversion, process.start and process.end would be dated shortly after 1970. Convert with the new quark.TimeToWallclock() everywhere they feed process.start and process.end, in both quark providers. Emitted events are unchanged. quark's boottime epoch, cached at quark_queue_open(), also moves when the system clock is stepped (say NTP correcting a clock that was wrong at boot), and keeping it fresh is the consumer's job. Both providers call quark.UpdateBoottime() on their existing 5-second stats cadence: it re-reads /proc/stat btime, which is stable between reads and only moves on a step, and quark stores it only when it actually changed. Corrections apply retroactively to anything translated afterwards. The backend flag changes (QQ_ALL_BACKENDS removal) landed separately in #52574. go-quark is pinned to a pre-release of the 0.8 update (elastic/go-quark#40) and will be bumped to the tagged release before merging. * auditbeat: pin go-quark to v0.8.0 * auditbeat: fix goimports alignment in quark test (cherry picked from commit 7b4b565) * auditbeat: update for quark 0.9 changes (#53284) * auditbeat: update for quark 0.9 changes * auditbeat: update go-quark to v0.9.0 * auditbeat: add fragment * auditbeat: review feedback on quark 0.9 update (cherry picked from commit 181205b) (cherry picked from commit a998fe3) Co-authored-by: Christos Kalkanis <christos.kalkanis@elastic.co> Co-authored-by: Michael Wolf <michael.wolf@elastic.co> Co-authored-by: Nicholas Berlin <56366649+nicholasberlin@users.noreply.github.com>
1 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed commit message
Update auditbeat for the breaking changes in quark v0.9:
quark.TimeToWallclock()andquark.UpdateBoottimehave been removedWhy it is important
Once beats picks up a go-quark release with quark ≥ 0.9, logic that depends on the removed APIs would break; this PR updates such logic.
Checklist
I have made corresponding changes to the documentationN/AI have made corresponding change to the default configuration filesN/AI have added tests that prove my fix is effective or that my feature works(updated existing tests in-place)./changelog/fragmentsusing the changelog tool.How to test this PR locally
Related issues