Skip to content

MQTT sink forces multiple connections to the broker #25463

@jpiedel

Description

@jpiedel

A note for the community

No response

Problem

Many brokers for security reasons allow only one connection per credential set, and MQTT sink tries to open multiple of them without a way to stop this... even with buffer.max_events = 1.

That produces:
ERROR vector::internal_events::mqtt: MQTT connection error. error=Mqtt state: Io error: Custom { kind: ConnectionAborted, error: "connection closed by peer" } error_code="mqtt_connection_error" error_type="writer_failed" stage="sending"

Configuration


Version

0.55.0

Debug Output


Example Data

No response

Additional Context

No response

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions