xref: /openbmc/phosphor-debug-collector/tools/dreport.d/plugins.d/journalpretty (revision 14d790fe54f40b836cf160144fe4f8e91fe47036)
1*14d790feSJayanth Othayoth#!/bin/bash
2*14d790feSJayanth Othayoth#
3*14d790feSJayanth Othayoth# config: 2 10
4*14d790feSJayanth Othayoth# @brief: Collect Journal pretty log information.
5*14d790feSJayanth Othayoth#
6*14d790feSJayanth Othayoth
7*14d790feSJayanth Othayoth. $DREPORT_INCLUDE/functions
8*14d790feSJayanth Othayoth
9*14d790feSJayanth Othayothdesc="Journal pretty log"
10*14d790feSJayanth Othayothfile_name="journal-pretty.log"
11*14d790feSJayanth Othayothcommand="journalctl -o json-pretty -r"
12*14d790feSJayanth Othayoth
13*14d790feSJayanth Othayothadd_cmd_output "$command" "$file_name" "$desc"
14