xref: /openbmc/phosphor-debug-collector/tools/dreport.d/plugins.d/auditlog (revision 4e0251d1d7d2fb415ded18b858c92d3c2364f858)
1#!/usr/bin/env bash
2#
3# config: 2 40
4# @brief: Save the audit log
5#
6
7# shellcheck disable=SC1091
8. "$DREPORT_INCLUDE"/functions
9
10# Multiple audit.log files can exist in the $log_path
11# directory. Copy all that exist to the dump.
12desc="Audit Log"
13log_path="/var/log/audit/"
14
15if [ -e "$log_path" ]; then
16    add_copy_file "$log_path" "$desc"
17fi
18