xref: /openbmc/phosphor-debug-collector/tools/dreport.d/plugins.d/journalpid (revision a172469dbee78988d66b4cff97344bc944b64907)
1*a172469dSJayanth Othayoth#!/bin/bash
2*a172469dSJayanth Othayoth#
3*a172469dSJayanth Othayoth# config: 13 1
4*a172469dSJayanth Othayoth# @brief: Collect user initialized PID specific journal log information.
5*a172469dSJayanth Othayoth#
6*a172469dSJayanth Othayoth
7*a172469dSJayanth Othayoth. $DREPORT_INCLUDE/functions
8*a172469dSJayanth Othayoth
9*a172469dSJayanth Othayothdesc="Journal pid:$pid log"
10*a172469dSJayanth Othayothfile_name="journal-pid-$pid.log"
11*a172469dSJayanth Othayothcommand="journalctl -o verbose _PID=$pid"
12*a172469dSJayanth Othayoth
13*a172469dSJayanth Othayothadd_cmd_output "$command" "$file_name" "$desc"
14