Skip to content

Commit

Permalink
artif: new systemd journal artifacts
Browse files Browse the repository at this point in the history
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
mnrkbys committed Sep 3, 2024
1 parent f5971ed commit c2bc411
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions artifacts/files/logs/journal.yaml
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~"]
16 changes: 16 additions & 0 deletions artifacts/live_response/system/journalctl.yaml
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

0 comments on commit c2bc411

Please sign in to comment.