Test to read XML logs
[gnucomo.git] / test / log_bad.xml
diff --git a/test/log_bad.xml b/test/log_bad.xml
new file mode 100644 (file)
index 0000000..7c9c0cf
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version='1.0'?>
+  <gcmt:message xmlns:gcmt='http://gnucomo.org/transport/'>
+     <gcmt:header>
+        <gcmt:messagetype>system log</gcmt:messagetype>
+        <gcmt:hostname>kithira.andromeda.nl</gcmt:hostname>
+        <gcmt:time>2003-04-17 14:40:46.312895+01:00</gcmt:time>
+     </gcmt:header>
+     <gcmt:data>
+       <gcmt:log>
+        <gcmt:raw>Apr 13 04:31:03 schiza kernel: attempt to access beyond end of device</gcmt:raw>
+        <gcmt:cooked>
+           <timestamp>2003-04-13 04:31:03+02:00</timestamp>
+           <gcmt:hostname>schiza</gcmt:hostname>
+           <gcmt:service>kernel</gcmt:service>
+           <raw>Apr 13 04:31:03 schiza kernel: 03:05: rw=0, want=1061109568, limit=2522173</raw>
+        </gcmt:cooked>
+        <gcmt:cooked>
+           <timestamp>2003-04-13 16:57:15+02:00</timestamp>
+           <gcmt:hostname>kithira</gcmt:hostname>
+           <gcmt:service>sshd</gcmt:service>
+           <gcmt:raw>Apr 13 16:57:15 kithira sshd(pam_unix)[11816]: session opened for user arjen by (uid=0)</gcmt:raw>
+        </gcmt:cooked>
+<!-- test for XML parse error
+       </gcmt:log>
+-->
+     </gcmt:data>
+  </gcmt:message>
+