Skip to content

topic rewrite plugin in combination with mqtt egress bridge plugin not working #333

@ropitz-wago

Description

@ropitz-wago

Hi,

We use the topic rewrite plugin in combination with the mqtt egress bridge plugin. Each plugin works fine independently. But a changed topic cannot be transfered via a bridge.


Topic rewrite works like expected.

Rewrite rule:

rules = [
     { action = "all", source_topic_filter = "foo/+/+", dest_topic = "bar/foo/$1/$2", regex = "^foo/(.+)/(.+)$"}
]

Bridge config:

[[bridges.entries]]
local.topic_filter = "bar/foo/+/+/"
remote.qos = 0
remote.retain = false
remote.topic = "${local.topic}"

The transfer works well when we publish to topic bar/foo/x/y.
If we publish to topic foo/x/y it is not tansfered, but we see the payload on the local broker on topic bar/foo/x/y.

Is this behavior known?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions