Merge branch 'ent-10013-filtros-procesamiento-syslog-server' into 'develop'

Ent 10013 filtros procesamiento syslog server

See merge request artica/pandorafms!6245
This commit is contained in:
Rafael Ameijeiras 2023-07-17 06:03:41 +00:00
commit b7211b5f9e
3 changed files with 20 additions and 0 deletions

View File

@ -659,6 +659,12 @@ syslog_threads 2
# Maximum number of lines queued by the Syslog Server's producer on each run (PANDORA FMS ENTERPRISE ONLY).
syslog_max 65535
# Blacklist regexp filter for the Syslog Server (PANDORA FMS ENTERPRISE ONLY).
# syslog_blacklist [regex]
# Whitelist regexp filter for the Syslog Server (PANDORA FMS ENTERPRISE ONLY).
# syslog_whitelist .*
# Sync Server
#syncserver

View File

@ -658,6 +658,12 @@ syslog_threads 2
# Maximum number of lines queued by the Syslog Server's producer on each run (PANDORA FMS ENTERPRISE ONLY).
syslog_max 65535
# Blacklist regexp filter for the Syslog Server (PANDORA FMS ENTERPRISE ONLY).
# syslog_blacklist [regex]
# Whitelist regexp filter for the Syslog Server (PANDORA FMS ENTERPRISE ONLY).
# syslog_whitelist .*
# Sync Server
#syncserver

View File

@ -515,6 +515,8 @@ sub pandora_load_config {
$pa_config->{"syslog_file"} = '/var/log/messages/'; # 7.0.716
$pa_config->{"syslog_max"} = 65535; # 7.0.716
$pa_config->{"syslog_threads"} = 4; # 7.0.716
$pa_config->{"syslog_blacklist"} = undef; # 7.0.773
$pa_config->{"syslog_whitelist"} = undef; # 7.0 773
# External .enc files for XML::Parser.
$pa_config->{"enc_dir"} = ""; # > 6.0SP4
@ -1254,6 +1256,12 @@ sub pandora_load_config {
elsif ($parametro =~ m/^syslog_threads\s+([0-9]*)/i) {
$pa_config->{'syslog_threads'}= clean_blank($1);
}
elsif ($parametro =~ m/^syslog_blacklist\s+(.*)/i) {
$pa_config->{'syslog_blacklist'}= clean_blank($1);
}
elsif ($parametro =~ m/^syslog_whitelist\s+(.*)/i) {
$pa_config->{'syslog_whitelist'}= clean_blank($1);
}
elsif ($parametro =~ m/^thread_log\s+([0-1])/i) {
$pa_config->{'thread_log'}= clean_blank($1);
}