It seems that you are already using a custom decoder for this SonicWall log. If you need to decode the VPN tunnel name as well, you will need to modify the decoder to extract the tunnel name.
To show the VPN tunnel name in the rule description, you must decode the tunnel name using a custom decoder. Using rules alone, we cannot extract a value directly from the raw log.
By default, Wazuh provides a default decoder for SonicWall events. If you have already modified the decoder, you can consider adding an additional regex pattern to decode the fields inside the note field as well. In my case, I modified the default decoder by following the Wazuh documentation, and then I added the below decoder to decode the values inside the note field separately:
Yes, if you create a custom decoder to decode the VPN tunnel name from the note field, it can affect other rules that rely on the note field.
For example, if you use the above decoder, the note field may only contain a partial value (such as Tunnel Up. policy 7). If other rules depend on the note field and expect different values, those rules may stop working. In that case, you can modify those rules to use the newly decoded fields (decoded separately) instead of relying only on the note field.

I understand your requirement. To proceed, could you please share your custom SonicWall decoder and a few sample SonicWall events that are not related to the IPsec event you shared above?
The decoder I shared earlier will only work when the log contains a format like this:
If this pattern, especially the VPN TUNNEL <name> part appears only in IPsec events, then that decoder will match only IPsec-related logs, and other SonicWall events will be ignored by that decoder.
Please share:
Your current custom SonicWall decoder
2–3 sample SonicWall logs that are not IPsec-related
Once I have those, I can test it on my end and guide you on how to update the decoder without impacting other events.
Based on the three sample logs you shared above, the custom decoder I provided will not affect those event types. As mentioned earlier, it will only decode the IPsec event type, and the rest of the events will not be decoded by that custom decoder.
This is because the regex pattern used in the decoder:
note="(\.*)\SVPN TUNNEL \S (\S*)\S
is only present in the IPsec events, and the other events do not contain this pattern. Therefore, it will not match or impact the other event types.
You can refer to the Wazuh documentation for more details.