Skip to content

[osquerybeat] Fix what events are published for diff queries#48438

Merged
marc-gr merged 2 commits intoelastic:mainfrom
marc-gr:fix/osquerybeat-diff
Feb 10, 2026
Merged

[osquerybeat] Fix what events are published for diff queries#48438
marc-gr merged 2 commits intoelastic:mainfrom
marc-gr:fix/osquerybeat-diff

Conversation

@marc-gr
Copy link
Contributor

@marc-gr marc-gr commented Jan 15, 2026

Proposed commit message

Fix osquerybeat differential results handling with two bugs:

  • "removed" events to show current values instead of previous values
  • Security monitoring degradation for drift detection and compliance auditing use cases

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works. Where relevant, I have used the stresstest.sh script to run them under stress conditions and race detector to verify their stability.
  • I have added an entry in ./changelog/fragments using the changelog tool.

Disruptive User Impact

None. This is a bug fix that corrects incorrect behavior. Users will now receive accurate differential results where "removed" events contain the previous values and "added" events contain the new values.

Related issues

@marc-gr marc-gr requested a review from a team as a code owner January 15, 2026 20:05
@marc-gr marc-gr added bugfix Team:Security-Windows Platform Windows Platform Team in Security Solution labels Jan 15, 2026
@elasticmachine
Copy link
Contributor

Pinging @elastic/sec-windows-platform (Team:Security-Windows Platform)

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Jan 15, 2026
@github-actions
Copy link
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)
@mergify
Copy link
Contributor

mergify bot commented Jan 15, 2026

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @marc-gr? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit
  • backport-active-all is the label that automatically backports to all active branches.
  • backport-active-8 is the label that automatically backports to all active minor branches for the 8 major.
  • backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.
@marc-gr marc-gr added the backport-active-all Automated backport with mergify to all the active branches label Feb 9, 2026
@marc-gr marc-gr merged commit f2121bf into elastic:main Feb 10, 2026
38 checks passed
@github-actions
Copy link
Contributor

@Mergifyio backport 8.19 9.2 9.3

@mergify
Copy link
Contributor

mergify bot commented Feb 10, 2026

mergify bot pushed a commit that referenced this pull request Feb 10, 2026
* Fix what events are published for diff queries

* fix: add changelog entry for differential results bug in osquerybeat

(cherry picked from commit f2121bf)
@marc-gr marc-gr deleted the fix/osquerybeat-diff branch February 10, 2026 09:45
mergify bot pushed a commit that referenced this pull request Feb 10, 2026
* Fix what events are published for diff queries

* fix: add changelog entry for differential results bug in osquerybeat

(cherry picked from commit f2121bf)
mergify bot pushed a commit that referenced this pull request Feb 10, 2026
* Fix what events are published for diff queries

* fix: add changelog entry for differential results bug in osquerybeat

(cherry picked from commit f2121bf)
marc-gr added a commit that referenced this pull request Feb 16, 2026
* Fix what events are published for diff queries

* fix: add changelog entry for differential results bug in osquerybeat

(cherry picked from commit f2121bf)
marc-gr added a commit that referenced this pull request Feb 16, 2026
* Fix what events are published for diff queries

* fix: add changelog entry for differential results bug in osquerybeat

(cherry picked from commit f2121bf)
marc-gr added a commit that referenced this pull request Feb 16, 2026
* Fix what events are published for diff queries

* fix: add changelog entry for differential results bug in osquerybeat

(cherry picked from commit f2121bf)
marc-gr added a commit that referenced this pull request Feb 16, 2026
…#48760)

* Fix what events are published for diff queries

* fix: add changelog entry for differential results bug in osquerybeat

(cherry picked from commit f2121bf)

Co-authored-by: Marc Guasch <marc-gr@users.noreply.github.com>
marc-gr added a commit that referenced this pull request Feb 16, 2026
…#48762)

* Fix what events are published for diff queries

* fix: add changelog entry for differential results bug in osquerybeat

(cherry picked from commit f2121bf)

Co-authored-by: Marc Guasch <marc-gr@users.noreply.github.com>
marc-gr added a commit that referenced this pull request Feb 16, 2026
…#48761)

* Fix what events are published for diff queries

* fix: add changelog entry for differential results bug in osquerybeat

(cherry picked from commit f2121bf)

Co-authored-by: Marc Guasch <marc-gr@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-active-all Automated backport with mergify to all the active branches bugfix Team:Security-Windows Platform Windows Platform Team in Security Solution

3 participants