diff --git a/utils/log-to-scs.py b/utils/log-to-scs.py
index <HASH>..<HASH> 100644
--- a/utils/log-to-scs.py
+++ b/utils/log-to-scs.py
@@ -58,7 +58,7 @@ def _parse_stream_bytes(b):
     if not b.strip():
         return
     try:
-        tree = etree.fromstring(b"<root>"+b+b"</root>")
+        tree = etree.fromstring(b"<root xmlns:stream='http://etherx.jabber.org/streams'>"+b+b"</root>")
     except:
         print(b)
         raise
Make log-to-scs usable for ejabberd