mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-25 23:05:30 +02:00
Merge branch 'ent-5463-modificar-la-obtencion-de-logs-desde-la-consola-elastic' into 'develop'
Deleted logstash See merge request artica/pandorafms!3123
This commit is contained in:
commit
ea631afb52
@ -402,16 +402,11 @@ sub pandora_purgedb ($$) {
|
|||||||
log_message ('PURGE', 'netflow_max_lifetime is set to 0. Old netflow data will not be deleted.');
|
log_message ('PURGE', 'netflow_max_lifetime is set to 0. Old netflow data will not be deleted.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Delete old log data
|
# Delete old log data
|
||||||
log_message ('PURGE', "Deleting old log data.");
|
log_message ('PURGE', "Deleting old log data.");
|
||||||
if (!defined ($conf->{'logstash_host'}) || $conf->{'logstash_host'} eq '') {
|
if (defined($conf->{'_days_purge_old_information'}) && $conf->{'_days_purge_old_information'} > 0) {
|
||||||
log_message ('!', "Log collection disabled.");
|
|
||||||
}
|
|
||||||
elsif (defined($conf->{'_days_purge_old_information'}) && $conf->{'_days_purge_old_information'} > 0) {
|
|
||||||
log_message ('PURGE', 'Deleting log data older than ' . $conf->{'_days_purge_old_information'} . ' days.');
|
log_message ('PURGE', 'Deleting log data older than ' . $conf->{'_days_purge_old_information'} . ' days.');
|
||||||
enterprise_hook ('pandora_purge_logs', [$dbh, $conf]);
|
enterprise_hook ('pandora_purge_logs', [$dbh, $conf]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
log_message ('PURGE', 'days_purge_old_data is set to 0. Old log data will not be deleted.');
|
log_message ('PURGE', 'days_purge_old_data is set to 0. Old log data will not be deleted.');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user