]> granicus.if.org Git - zfs/commit
Allow to limit zed's syslog chattiness
authorTony Hutter <hutter2@llnl.gov>
Tue, 6 Mar 2018 23:41:52 +0000 (15:41 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 6 Mar 2018 23:41:52 +0000 (15:41 -0800)
commit639b18944a6a3483c02039621c02dac08a954a90
treeb50499c540b1da61c4fe677d0a4d0a8d7e42570f
parentd2160d053838e36df83e5fe3a9ca20abad588a4c
Allow to limit zed's syslog chattiness

Some usage patterns like send/recv of replication streams can
produce a large number of events. In such a case, the current
all-syslog.sh zedlet will hold up to its name, and flood the
logs with mostly redundant information. Two mitigate this
situation, this changeset introduces to new variables
ZED_SYSLOG_SUBCLASS_INCLUDE and ZED_SYSLOG_SUBCLASS_EXCLUDE
to zed.rc that give more control over which event classes end
up in the syslog.

Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Daniel Kobras <d.kobras@science-computing.de>
Closes #6886
Closes #7260
cmd/zed/zed.d/all-debug.sh
cmd/zed/zed.d/all-syslog.sh
cmd/zed/zed.d/zed-functions.sh
cmd/zed/zed.d/zed.rc
tests/runfiles/linux.run
tests/zfs-tests/include/libtest.shlib
tests/zfs-tests/tests/functional/events/Makefile.am
tests/zfs-tests/tests/functional/events/zed_rc_filter.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/fault/scrub_after_resilver.ksh