mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Deleted logstash
This commit is contained in:
parent
d2eac81d39
commit
b68f4d15e5
@ -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