Dot_Files/.config/lnav/formats/default/partition-by-boot.lnav
2022-01-08 15:24:29 -06:00

13 lines
338 B
Plaintext
Executable File

#
# DO NOT EDIT THIS FILE, IT WILL BE OVERWRITTEN!
#
# @synopsis: partition-by-boot
# @description: Partition the log view based on boot messages from the Linux kernel.
#
;UPDATE syslog_log
SET log_part = 'Boot: ' || log_time
WHERE log_text LIKE '%kernel:%Linux version%';
;SELECT 'Created ' || changes() || ' partitions(s)';