Skip to content

Commit

Permalink
feature(syslong): move all default filters to client side
Browse files Browse the repository at this point in the history
since we have more and more filters on the log we apply by default
trying to move them into client side, and not send them out
at all, and not waste time apply those filter while reading the logs
  • Loading branch information
fruch committed Dec 31, 2023
1 parent 93260b2 commit 50b9bcc
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion sdcm/provision/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,21 @@ def configure_syslogng_target_script(host: str, port: int, throttle_per_second:
fi
if ! grep -P "log {{.*destination\\\\(remote_sct\\\\)" /etc/syslog-ng/syslog-ng.conf; then
echo "log {{ source($source_name); destination(remote_sct); }};" >> /etc/syslog-ng/syslog-ng.conf
cat <<EOF >>/etc/syslog-ng/syslog-ng.conf
filter filter_sct {{
not message(".*workload prioritization - update_service_levels_from_distributed_data: an error occurred while retrieving configuration") and
not message("cdc - Could not update CDC description table with generation") and
not message(".*view update generator not plugged to push updates") and
not message(".*sidecar/controller.go.*std::runtime_error \(Operation decommission is in progress, try again\)") and
not message(".*view - Error applying view update.*") and
not message("Rate-limit: supressed") and
not message("Rate-limit: suppressed") and
not message("abort_requested_exception");
}};
EOF
echo "log {{ source($source_name); filter(filter_sct) ; destination(remote_sct); }};" >> /etc/syslog-ng/syslog-ng.conf
fi
if [ ! -z "{hostname}" ]; then
Expand Down

0 comments on commit 50b9bcc

Please sign in to comment.