diff options
author | Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> | 2024-10-21 15:36:03 +0200 |
---|---|---|
committer | Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> | 2024-10-21 16:37:34 +0200 |
commit | 0945152bc4f99edddc926ed554b6ab6f9ed887a8 (patch) | |
tree | 1e0d4b77c7fd0339b84c8c324ae965d4374a2077 /conf/modules.d | |
parent | 96f30a7662a6702c75474b04fa46bff0300fba19 (diff) | |
download | rspamd-0945152bc4f99edddc926ed554b6ab6f9ed887a8.tar.gz rspamd-0945152bc4f99edddc926ed554b6ab6f9ed887a8.zip |
do not allow empty headers, fix stripping of headers by limit of symbols count and add headers count limit
Diffstat (limited to 'conf/modules.d')
-rw-r--r-- | conf/modules.d/elastic.conf | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/conf/modules.d/elastic.conf b/conf/modules.d/elastic.conf index aafa8cbdf..e4c70bc87 100644 --- a/conf/modules.d/elastic.conf +++ b/conf/modules.d/elastic.conf @@ -47,7 +47,8 @@ elastic { replicas_count = 1; refresh_interval = 5; # seconds dynamic_keyword_ignore_above = 256; - headers_text_ignore_above = 2048; # strip headers value and add "..." to the end; set 0 to disable limit + headers_count_ignore_above = 5; # record only N first same named headers, add "ignored above..." if reached, set 0 to disable limit + headers_text_ignore_above = 2048; # strip specific header value and add "..." to the end; set 0 to disable limit symbols_nested = false; empty_value = "unknown"; # empty numbers, ips and ipnets are not customizable they will be always 0, :: and ::/128 respectively }; |