1#!/bin/bash
2#
3# config: 34 20
4# @brief: Collect only user initialized elog ID details.
5#
6
7. $DREPORT_INCLUDE/functions
8
9if [ -z $elog_id ]; then
10    log_error "elog does not exist"
11    exit
12fi
13
14desc="elog id:$elog_id"
15file_name="elog-$elog_id.log"
16command="busctl --verbose --no-pager \
17                  call xyz.openbmc_project.Logging \
18                  $optional_path \
19                  org.freedesktop.DBus.Properties GetAll s \
20                  xyz.openbmc_project.Logging.Entry"
21
22add_cmd_output "$command" "$file_name" "$desc"
23