]> 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)
committerTony Hutter <hutter2@llnl.gov>
Tue, 8 May 2018 00:19:56 +0000 (17:19 -0700)
commit6059ba27c44a5d63cf1ad9983aa17c5d49cdcde4
treeaeeb78e8a58e62c530d741d18fcbd899713127a4
parent927f40d08949879e333b3ec4a55aec651409ae21
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