-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
artif: new systemd journal artifacts
Add new artifact to collect the "*.journal~". These journal files are created when system crashes or fails to shut down properly. Also, add artifacts related to "journalctl" command. These artifacts verify the integrity of journal files and show a listing of time periods between boots.
- Loading branch information
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
version: 1.0 | ||
version: 1.1 | ||
artifacts: | ||
- | ||
description: Collect journal log files. | ||
supported_os: [linux] | ||
collector: file | ||
path: / | ||
name_pattern: ["*.journal"] | ||
name_pattern: ["*.journal", "*.journal~"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: 1.0 | ||
condition: command_exists "journalctl" | ||
output_directory: /live_response/system | ||
artifacts: | ||
- | ||
description: Verify the integrity of journal log files. | ||
supported_os: [linux] | ||
collector: command | ||
command: journalctl --verify | ||
output_file: journalctl_--verify.txt | ||
- | ||
description: Show a listing of time periods between boots. | ||
supported_os: [linux] | ||
collector: command | ||
command: journalctl --list-boots | ||
output_file: journalctl_--list-boots.txt |