Commit graph

20 commits

Author SHA1 Message Date
Luca Deri
8d7be8ca86 Scritp not necessary 2023-08-03 21:31:33 +02:00
Luca Deri
82b3c2faeb Added script for triggering periodic scans 2023-08-03 19:37:57 +02:00
Matteo Biscosi
119db1f070 Removed not useful imports 2023-07-18 08:41:09 +00:00
Matteo Biscosi
a1df1ab8de Fixes backup function not called (#7397) 2023-04-13 18:08:03 +02:00
Luca
824beccc6e Changes to address #7397 issues 2023-04-13 15:21:53 +02:00
Nicolò Maio
574e941947
Add configurations backup. (#5780) (#7390) 2023-04-12 17:01:08 +02:00
Luca Deri
61235af7f7 Implemented in pro/ 2023-02-24 17:34:40 +01:00
Luca Deri
be60111e45 Added clickhouse retention script 2023-02-24 16:35:21 +01:00
Luca Deri
f726b867c7 Updated (C) 2023-01-01 16:37:57 +01:00
Luca Deri
e3be9b993a Removed files not necessary 2022-12-18 11:19:09 +01:00
Luca
686112d3eb Initial implementation of host check rules. This is work in progress and ** subject to change **
Under the network interface -> Wheel there's a new field named "JSON Host Rules"
that can accept JSON in the format below:

- target can be * (= all local hosts) or a specific IP address
- frequency can be hourly or daily and it specifies the timeperiod on which the condition is evaluated
- metric can be set to bytes, score or a L7 protocol supported in nDPI
- threshold is the numerical value over which the alert is triggered

[
{ "target": "*",  "frequency": "hourly", "metric": "bytes",  "threshold": 354333 },
{"target": "146.48.56.79","metric": "AmazonAWS","frequency": "daily","threshold": 5000 }
]
2022-11-02 19:00:45 +01:00
MatteoBiscosi
6c9f571196 Separated the two data retentions 2022-03-31 16:39:58 +02:00
Luca Deri
5ab94c8eb4 Script not necessary 2022-03-01 11:01:55 +01:00
Luca Deri
81ffc1ebf4 Improved MySQL purge tracings 2022-02-08 10:49:08 +01:00
Luca Deri
ebaba91def
Added tracing message when old records are purged 2022-02-07 08:56:43 +01:00
Luca Deri
b93d2a8feb Delete old discard and tmp files 2022-01-31 12:40:46 +01:00
Luca Deri
8828a9ca90 MySQL retention is implemented serially in order to avoid that slow MySQL DBs create issues 2022-01-26 13:01:47 +01:00
Luca Deri
189c2bb739 Cleaned up DB detention scripts 2022-01-26 12:02:32 +01:00
Luca Deri
6f8d6df226 Renamed daily retention scripts 2022-01-26 11:27:26 +01:00
Luca Deri
fcaa071acb Added delayed scripts that are executed with minimal time drift to avoid all scripts to be executed at the same time and thus cause load spikes 2022-01-03 18:55:18 +01:00