Jörg Sommer
d9e15cbd18
journalctl: New option --cursor-file
...
The option cursor-file takes a filename as argument. If the file exists and
contains a valid cursor, this is used to start the output after this position.
At the end, the last cursor gets written to the file.
This allows for an easy implementation of a timer that regularly looks in the
journal for some messages.
journalctl --cursor-file err-cursor -b -p err
journalctl --cursor-file audit-cursor -t audit --grep DENIED
Or you might want to walk the journal in steps of 10 messages:
journalctl --cursor-file ./curs -n10 --since=today -t systemd
2019-02-27 18:43:31 +01:00
..
2018-12-07 11:48:37 +09:00
2019-01-26 16:17:04 +01:00
2019-01-08 10:37:20 +01:00
2019-01-27 18:34:15 +01:00
2018-06-14 10:20:20 +02:00
2018-10-30 11:04:51 +01:00
2018-06-14 10:20:20 +02:00
2018-06-14 10:20:20 +02:00
2018-08-30 06:10:43 +03:00
2018-06-14 10:20:20 +02:00
2018-06-14 10:20:20 +02:00
2019-02-04 20:32:44 +01:00
2018-12-21 19:49:28 +01:00
2018-11-20 07:27:37 +01:00
2018-06-14 10:20:20 +02:00
2018-06-14 10:20:20 +02:00
2018-06-14 10:20:20 +02:00
2019-01-26 16:17:04 +01:00
2018-10-25 21:43:09 +02:00
2018-06-14 10:20:20 +02:00
2018-12-02 13:22:29 +01:00
2018-06-14 10:20:20 +02:00
2019-02-27 18:43:31 +01:00
2019-01-26 16:17:04 +01:00
2018-12-04 09:29:54 +01:00
2018-06-14 10:20:20 +02:00
2018-06-14 10:20:20 +02:00
2019-01-26 12:43:27 +01:00
2018-10-18 09:56:20 +02:00
2018-03-20 14:54:07 -07:00
2018-11-16 08:45:16 +01:00
2018-11-16 08:44:35 +01:00
2019-01-09 23:41:53 +01:00
2018-09-03 07:03:52 +00:00
2018-10-18 09:56:20 +02:00
2018-10-18 09:56:20 +02:00
2019-01-09 23:41:53 +01:00
2019-01-26 12:43:27 +01:00
2018-12-02 13:22:29 +01:00
2018-11-20 03:03:32 +01:00
2018-10-20 00:07:46 +09:00
2018-06-14 10:20:20 +02:00
2018-07-03 01:32:25 +02:00
2019-01-12 16:02:26 +01:00
2018-06-14 10:20:20 +02:00
2018-06-26 04:05:42 +09:00
2018-12-03 17:38:50 +01:00
2018-12-07 11:48:37 +09:00
2019-01-15 08:12:28 +01:00
2018-06-14 10:20:20 +02:00
2019-01-12 16:02:26 +01:00
2018-06-14 13:03:20 +02:00
2018-12-02 13:22:29 +01:00
2018-09-14 09:29:57 +02:00
2018-12-02 13:22:29 +01:00
2018-06-14 10:20:20 +02:00
2018-12-04 09:29:54 +01:00
2018-06-14 10:20:20 +02:00
2018-09-14 09:29:57 +02:00
2018-11-27 10:12:27 +01:00
2018-12-04 09:29:54 +01:00
2018-06-14 10:20:20 +02:00
2018-09-14 09:29:57 +02:00
2018-09-25 11:34:52 +02:00
2018-11-27 10:12:27 +01:00
2018-11-27 10:12:27 +01:00
2018-12-02 13:22:29 +01:00