Skip to content

Commit

Permalink
add inputID when creating the pipeline client
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonQ committed Feb 11, 2025
1 parent adfb888 commit 97f4983
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions filebeat/input/v2/input-cursor/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ func (inp *managedInput) runSource(
}()

client, err := pipeline.ConnectWith(beat.ClientConfig{
InputID: ctx.ID,
EventListener: newInputACKHandler(ctx.Logger),
})
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions filebeat/input/v2/input-stateless/stateless.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func (si configuredInput) Run(ctx v2.Context, pipeline beat.PipelineConnector) (
}()

client, err := pipeline.ConnectWith(beat.ClientConfig{
InputID: ctx.ID,
PublishMode: beat.DefaultGuarantees,
})
if err != nil {
Expand Down

0 comments on commit 97f4983

Please sign in to comment.