[systemd-devel] journalctl to csv
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Sun Jan 27 21:26:43 PST 2013
On Mon, Jan 28, 2013 at 08:16:11AM +0800, Kai Hendry wrote:
> Thanks!
>
> Any ideas how to stream out only new events? Ideally both open & close?
I now added MESSAGE_IDs to logind events:
#define SD_MESSAGE_LID_OPENED SD_ID128_MAKE(b7,2e,a4,a2,88,15,45,a0,b5,0e,20,0e,55,b9,b0,6f)
#define SD_MESSAGE_LID_CLOSED SD_ID128_MAKE(b7,2e,a4,a2,88,15,45,a0,b5,0e,20,0e,55,b9,b0,70)
You can reliably filter on those.
Zbyszek
More information about the systemd-devel
mailing list