]> git.proxmox.com Git - mirror_zfs.git/commit
zed syslog entries drop important info
authorDon Brady <don.brady@delphix.com>
Mon, 19 Oct 2020 18:01:00 +0000 (12:01 -0600)
committerGitHub <noreply@github.com>
Mon, 19 Oct 2020 18:01:00 +0000 (11:01 -0700)
commit13d65987a9d9958de77422f5d9d25b47e486537d
treedb8b6211e61f1c0090a49f056d03851836ab7bd7
parentab6a0e236e2ada3c88882b52f9060a0fdac29fec
zed syslog entries drop important info

ZED will log zevents summaries to the syslog, however the log entries
tend to drop event details that can be useful for diagnosis. This is
especially true for ereport events, like io, checksum, and delay.

Update the all-syslog.sh script to log additional event information.

Add an optional config option, ZED_SYSLOG_DISPLAY_GUIDS, to zed.rc
for choosing GUIDs over names for pool and vdev.

Change the default ZED_SYSLOG_SUBCLASS_EXCLUDE to exclude history_event
events. These events tend to be frequent, convey no meaningful info,
and are already logged in the zpool history.

Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Pavel Zakharov <pavel.zakharov@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Don Brady <don.brady@delphix.com>
Closes #10967
cmd/zed/zed.d/all-syslog.sh
cmd/zed/zed.d/zed.rc
tests/zfs-tests/tests/functional/events/events_001_pos.ksh
tests/zfs-tests/tests/functional/events/events_002_pos.ksh
tests/zfs-tests/tests/functional/events/events_common.kshlib