zfsev

ZFS Event Stream -- ZFS's even stream data as json.

Stars
6

Don't use this. The code is cobbled together from openzfs/zfs, so I guess it is licensed compatibly.

[nix-shell:~/zfsev]$ sudo ./result/bin/zfsev
{"dropped_events": 1}
{"version":0,"class":"sysevent.fs.zfs.history_event","pool":"tank","pool_guid":16259297902699518045,"pool_state":0,"pool_context":0,"history_hostname":"Petunia","history_dsname":"tank/local/junk/zed/meh3@foo","history_internal_str":" ","history_internal_name":"snapshot","history_dsid":1880,"history_txg":2224054,"history_time":1613506620,"time":[1613506620,969869012],"eid":590}
{"version":0,"class":"sysevent.fs.zfs.history_event","pool":"tank","pool_guid":16259297902699518045,"pool_state":0,"pool_context":0,"history_hostname":"Petunia","history_dsname":"tank/local/junk/zed/meh4@foo","history_internal_str":" ","history_internal_name":"snapshot","history_dsid":1882,"history_txg":2224054,"history_time":1613506620,"time":[1613506620,969869012],"eid":591}
{"version":0,"class":"sysevent.fs.zfs.history_event","pool":"tank","pool_guid":16259297902699518045,"pool_state":0,"pool_context":0,"history_hostname":"Petunia","history_dsname":"tank/local/junk/zed/meh7@foo","history_internal_str":" ","history_internal_name":"snapshot","history_dsid":1884,"history_txg":2224054,"history_time":1613506620,"time":[1613506620,969869012],"eid":592}