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?