MQTT Topic Mapping

I am new to EMQX. I would like to create a rule to perform a MQTT topic mapping operation by reading the input data payload. Is it possible? Thanks.

Input Topic company_A/Topic/# ----> Output Topic ABC/xyz/#
“field 1” : “ABC”,
“field 2” : “xyz” ,



Yes, you can use rule engine with republish action.

Example rule:

SELECT as foo

Output topic of the republish action supports templating, example: