Initial commit

Signed-off-by: Artem Senichev <a.senichev@yadro.com>
diff --git a/integration/dreport.plugin b/integration/dreport.plugin
new file mode 100644
index 0000000..d884785
--- /dev/null
+++ b/integration/dreport.plugin
@@ -0,0 +1,17 @@
+#!/bin/bash
+#
+# config: 123 20
+# @brief: Collect host's logs
+#
+
+. $DREPORT_INCLUDE/functions
+
+desc="Logs from host"
+file_name="/var/lib/obmc/hostlogs"
+
+# Flush currently collected messages
+busctl --no-pager --verbose call \
+    xyz.openbmc_project.HostLogger /xyz/openbmc_project/HostLogger \
+    xyz.openbmc_project.HostLogger Flush
+
+add_copy_file "$file_name" "$desc"