Removing "\u0000" from the end of a message #23293
-
I've been experimenting with getting my Home Assistant logs via syslog and it works great so far. What I noticed today though is that after parsing the syslog message using {
"appname": "addon_core_mosquitto",
"facility": "user",
"host": "haos"
"hostname": "haos",
"message": "2025-06-30 12:04:18: Client <unknown> closed its connection.\u0000",
"severity": "info",
"source_type": "syslog",
"timestamp": "2025-06-30T12:04:19Z"
} I'm currently trying to remove that to clean up the line but for some reason I can't get it to work using Would love some help on how to clean the message up here |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This should work just fine:
Not sure why the string replace is not working properly, it might be a bug. If you want you can dive deeper into this and file a bug report |
Beta Was this translation helpful? Give feedback.
This should work just fine:
Not sure why the string replace is not working properly, it might be a bug. If you want you can dive deeper into this and file a bug report