@@ -50,7 +50,7 @@ local function clamav_config(opts) | |||
end | |||
if not clamav_conf.prefix then | |||
clamav_conf.prefix = 'rs_cl' | |||
clamav_conf.prefix = 'rs_' .. clamav_conf.name .. '_' | |||
end | |||
if not clamav_conf.log_prefix then |
@@ -253,6 +253,10 @@ local function dcc_config(opts) | |||
dcc_conf = lua_util.override_defaults(dcc_conf, opts) | |||
if not dcc_conf.prefix then | |||
dcc_conf.prefix = 'rs_' .. dcc_conf.name .. '_' | |||
end | |||
if not dcc_conf.log_prefix then | |||
if dcc_conf.name:lower() == dcc_conf.type:lower() then | |||
dcc_conf.log_prefix = dcc_conf.name |
@@ -49,7 +49,7 @@ local function fprot_config(opts) | |||
end | |||
if not fprot_conf.prefix then | |||
fprot_conf.prefix = 'rs_fp' | |||
fprot_conf.prefix = 'rs_' .. fprot_conf.name .. '_' | |||
end | |||
if not fprot_conf.log_prefix then |
@@ -44,11 +44,14 @@ local function kaspersky_config(opts) | |||
message = default_message, | |||
detection_category = "virus", | |||
tmpdir = '/tmp', | |||
prefix = 'rs_ak', | |||
} | |||
kaspersky_conf = lua_util.override_defaults(kaspersky_conf, opts) | |||
if not kaspersky_conf.prefix then | |||
kaspersky_conf.prefix = 'rs_' .. kaspersky_conf.name .. '_' | |||
end | |||
if not kaspersky_conf.log_prefix then | |||
if kaspersky_conf.name:lower() == kaspersky_conf.type:lower() then | |||
kaspersky_conf.log_prefix = kaspersky_conf.name |
@@ -236,7 +236,7 @@ local function oletools_config(opts) | |||
oletools_conf = lua_util.override_defaults(oletools_conf, opts) | |||
if not oletools_conf.prefix then | |||
oletools_conf.prefix = 'rs_av_' .. oletools_conf.name .. '_' | |||
oletools_conf.prefix = 'rs_' .. oletools_conf.name .. '_' | |||
end | |||
if not oletools_conf.log_prefix then |
@@ -51,6 +51,10 @@ local function savapi_config(opts) | |||
savapi_conf[k] = v | |||
end | |||
if not savapi_conf.prefix then | |||
savapi_conf.prefix = 'rs_' .. savapi_conf.name .. '_' | |||
end | |||
if not savapi_conf.prefix then | |||
savapi_conf.prefix = 'rs_ap' | |||
end |
@@ -51,7 +51,7 @@ local function sophos_config(opts) | |||
end | |||
if not sophos_conf.prefix then | |||
sophos_conf.prefix = 'rs_sp' | |||
sophos_conf.prefix = 'rs_' .. sophos_conf.name .. '_' | |||
end | |||
if not sophos_conf.log_prefix then |