summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJayanth Othayoth <ojayanth@in.ibm.com>2017-10-15 05:45:58 -0500
committerJayanth Othayoth <ojayanth@in.ibm.com>2017-10-24 10:12:06 -0500
commita172469dbee78988d66b4cff97344bc944b64907 (patch)
tree4bcedf38dae5fba0b500f9baf4f1bc468582149e
parent42d6ab7c7ff746c3a9a343f4fa17d92fc3ddb538 (diff)
downloadphosphor-debug-collector-a172469dbee78988d66b4cff97344bc944b64907.tar.gz
phosphor-debug-collector-a172469dbee78988d66b4cff97344bc944b64907.zip
dreport: Added PID based journal log plugin
Added plugin for collecting user initialized PID specific journal log data. Change-Id: Ifc6243c288d94aceba65709b028841b344e02132 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
-rw-r--r--tools/dreport.d/plugins.d/journalpid13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/dreport.d/plugins.d/journalpid b/tools/dreport.d/plugins.d/journalpid
new file mode 100644
index 0000000..aa6a19a
--- /dev/null
+++ b/tools/dreport.d/plugins.d/journalpid
@@ -0,0 +1,13 @@
+#!/bin/bash
+#
+# config: 13 1
+# @brief: Collect user initialized PID specific journal log information.
+#
+
+. $DREPORT_INCLUDE/functions
+
+desc="Journal pid:$pid log"
+file_name="journal-pid-$pid.log"
+command="journalctl -o verbose _PID=$pid"
+
+add_cmd_output "$command" "$file_name" "$desc"
OpenPOWER on IntegriCloud