summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJayanth Othayoth <ojayanth@in.ibm.com>2017-10-15 05:48:25 -0500
committerJayanth Othayoth <ojayanth@in.ibm.com>2017-10-24 10:12:06 -0500
commit14d790fe54f40b836cf160144fe4f8e91fe47036 (patch)
treefbe4f88d2fb723da0873c64415d880ef09d2169e
parenta172469dbee78988d66b4cff97344bc944b64907 (diff)
downloadphosphor-debug-collector-14d790fe54f40b836cf160144fe4f8e91fe47036.tar.gz
phosphor-debug-collector-14d790fe54f40b836cf160144fe4f8e91fe47036.zip
dreport: Added journal pretty log plugin
Plugin used for collecting journal pretty log data. Change-Id: I5923708f0f08800d8c3d75faeabc2b9b09999b2d Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
-rw-r--r--tools/dreport.d/plugins.d/journalpretty13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/dreport.d/plugins.d/journalpretty b/tools/dreport.d/plugins.d/journalpretty
new file mode 100644
index 0000000..3183611
--- /dev/null
+++ b/tools/dreport.d/plugins.d/journalpretty
@@ -0,0 +1,13 @@
+#!/bin/bash
+#
+# config: 2 10
+# @brief: Collect Journal pretty log information.
+#
+
+. $DREPORT_INCLUDE/functions
+
+desc="Journal pretty log"
+file_name="journal-pretty.log"
+command="journalctl -o json-pretty -r"
+
+add_cmd_output "$command" "$file_name" "$desc"
OpenPOWER on IntegriCloud