Skip to content

Commit

Permalink
Add a Journal notebook suggestion: Simple syslog-like view (#3803)
Browse files Browse the repository at this point in the history
Add a notebook suggestion that creates a simple table that looks very
much like the default output from journalctl. I find myself studying the
identifier/unit and message exclusively most of the time. Having this
simplification as a VQL suggestion would be very handy for day-to-day
use.
  • Loading branch information
misje authored and scudette committed Oct 13, 2024
1 parent 5a11fb9 commit 1f322f9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions artifacts/definitions/Linux/Forensics/Journal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,19 @@ sources:
FROM parse_journald(filename=OSPath,
start_time=DateAfter, end_time=DateBefore)
})
notebook:
- type: vql_suggestion
name: Simplified syslog-like view
template: |
/*
# Simplified log view
*/
LET ColumnTypes<=dict(`_ClientId`='client')
SELECT System.Timestamp AS Timestamp,
ClientId AS _ClientId,
client_info(client_id=ClientId).os_info.hostname AS Hostname,
EventData.SYSLOG_IDENTIFIER AS Unit,
EventData.MESSAGE AS Message
FROM source()

0 comments on commit 1f322f9

Please sign in to comment.