Skip to content

fix(windows_event_log): soft bookmark resume before future-events fallback - #26125

Open
VedantMadane wants to merge 1 commit into
vectordotdev:masterfrom
VedantMadane:fix-wel-soft-bookmark-resubscribe-26120
Open

VedantMadane wants to merge 1 commit into
vectordotdev:masterfrom
VedantMadane:fix-wel-soft-bookmark-resubscribe-26120

Conversation

@VedantMadane

Copy link
Copy Markdown

Summary

Fixes #26120.

When strict EvtSubscribeStartAfterBookmark|Strict fails (e.g. ERROR_NOT_FOUND), the previous path fell straight through to EvtSubscribeToFutureEvents when read_existing_events = false, dropping events between the last bookmark and now.

Insert a soft bookmark resume (StartAfterBookmark without Strict) before the last-resort future/oldest flags so recovery prefers continuity over a hard reset. Some re-delivery is possible; silent loss is not.

Test plan

  • Windows wevtapi integration (CI / local Windows)
  • Change localized to resubscribe_channel

@VedantMadane
VedantMadane requested a review from a team as a code owner August 17, 2026 10:49
@github-actions github-actions Bot added the domain: sources Anything related to the Vector's sources label Aug 17, 2026
@github-actions

github-actions Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@VedantMadane
VedantMadane force-pushed the fix-wel-soft-bookmark-resubscribe-26120 branch from 75ad7da to 86ba467 Compare August 17, 2026 10:49

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 83e5c4001a

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

error = %e
);
EvtSubscribe(
match EvtSubscribe(

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Apply the soft retry during initial subscription

When Vector starts with a persisted but stale bookmark and read_existing_events=false, the strict call in EventLogSubscription::new still falls directly through to a bookmark-less EvtSubscribeToFutureEvents (lines 281-299), silently skipping events between the checkpoint and startup. This new soft retry is reachable only after the running subscription reports an invalid position, so the same data-loss scenario remains on process restart; apply this retry to the initial-subscription path as well, preferably through shared logic.

Useful? React with 👍 / 👎.

@VedantMadane
VedantMadane force-pushed the fix-wel-soft-bookmark-resubscribe-26120 branch from 33c6131 to d9d2fb5 Compare September 18, 2026 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: sources Anything related to the Vector's sources

Projects

None yet

1 participant