Commit Graph

52 Commits

Author SHA1 Message Date
Patrick Pacher
87f19bdcc2 Fix incorrect check using reflect.Float32 instead of reflect.Float64 2023-09-07 11:59:36 +02:00
Patrick Pacher
4cd6823066 Update netquery query handler to only use strftime when the given value is a number kind 2023-09-07 11:58:07 +02:00
Patrick Pacher
d96f841bef Add support for $gt, $ge, $lt, $le operators for netquery. Update DatetimeEncoder to support values specified in seconds 2023-09-06 17:08:04 +02:00
Daniel
7a5960c52d Fix network history clear API 2023-08-18 16:52:27 +02:00
Daniel
3b70c5587c Do not add internal and localhost connections to history 2023-08-11 11:56:22 +02:00
Daniel
77d3df13cb Improve logging and naming 2023-08-09 15:22:13 +02:00
Daniel
98394c1ea6 Improve clear network history API endpoint 2023-08-09 14:52:10 +02:00
Daniel
cf70c55ab5 Improve history purging 2023-08-09 14:45:56 +02:00
Patrick Pacher
3dbde10be0 Add support for history data retention 2023-08-08 14:35:43 +02:00
Patrick Pacher
620a9c0fde Add support for SUM in netquery 2023-08-08 13:07:37 +02:00
Daniel
d0f4392b9d Fix netquery connection ID generation 2023-08-04 21:49:57 +02:00
Daniel
a98505b7da Fix and document netquery api endpoint permissions 2023-08-04 21:44:18 +02:00
Patrick Pacher
9f9838b8a1 Do not query the history database by default 2023-08-01 14:08:15 +02:00
Daniel
2452a92b8b Fix history database URI on windows 2023-07-28 16:48:38 +02:00
Daniel
07f4253e0b Improve logging and make linter happy 2023-07-21 16:05:57 +02:00
Daniel
f0ebc6e72f Update BytesReceived/Sent field names 2023-07-21 16:05:13 +02:00
Daniel
e70fd9abd7 Reduce noisy logging 2023-07-21 16:04:02 +02:00
Patrick Pacher
5dcb6b268f Persist bandwidth data in netquery DBs when enabled 2023-07-21 11:38:05 +02:00
Patrick Pacher
dbffa8827b Update netquery to support history module 2023-07-20 16:24:13 +02:00
Patrick Pacher
cf2b8f26b9 Make history module optional 2023-07-20 16:21:52 +02:00
Patrick Pacher
135b68c008 Better utilize database indexes for UNION selects 2023-07-20 16:21:52 +02:00
Patrick Pacher
e9e9b54364 Research on possible history module implementation using sqlite ATTACH DATABASE 2023-07-20 16:21:52 +02:00
Daniel
8a09ba6045 Revamp connection handling flow to fix race condition and support info-only packets 2023-06-21 15:31:45 +02:00
Daniel
5bb2813459 Fix linter errors 2023-04-25 14:37:29 +02:00
Vladimir Stoilov
834282cb0e Fix process identification key 2023-03-30 14:43:38 +02:00
Daniel
b4634a85c6 Update deps 2023-02-21 16:09:20 +01:00
Daniel
c957f33e74 Migrate puddle lib to new version 2022-12-21 11:33:50 +01:00
Daniel
144e5d8312 Fix linter errors 2022-10-10 22:57:27 +02:00
Patrick Pacher
77c0d954a9 Add support for cmdline matching and add basic interpreter support 2022-10-10 22:36:39 +02:00
Daniel
f63df67d23 Improve verdict handling and switch to immediate re-evaluation 2022-10-10 13:40:06 +02:00
Vladimir Stoilov
fdc8ef5698 issue new verdict on configuration change 2022-10-10 13:37:08 +02:00
Daniel
fd83534698 Fix linter errors 2022-09-29 14:31:00 +02:00
Daniel
8cf882f4d4 Update Go, deps and linter 2022-08-30 16:13:26 +02:00
Patrick Pacher
37951c2cff Fixed unstable SQL statement causing memory leaks due to prepared stmt caching 2022-08-03 16:54:48 +02:00
Patrick Pacher
01f7ab24b3 Fix write/readonly connection usage and linter error 2022-08-02 14:04:12 +02:00
Patrick Pacher
6a86596736 Use a dedicated write connection for persisting in sqlite and switch pool to read-only 2022-08-02 10:46:16 +02:00
Patrick Pacher
84b66e9949 Remove locking from SQlite access 2022-08-02 10:13:12 +02:00
Patrick Pacher
912ad59b9e Add connection pooling for sqlite database access 2022-08-02 10:07:13 +02:00
Patrick Pacher
6c4faa3d3c Removed duplicated field SPNUsed from netquery module 2022-08-02 08:58:06 +02:00
Daniel
90d30c14a5 Fix linter errors from netquery implementation 2022-08-01 10:47:33 +02:00
Daniel
51a2d27522 Implement some review suggestions 2022-07-14 13:44:31 +02:00
Patrick Pacher
d93c3f60ce Add additional field to internal SQL model 2022-07-12 11:27:46 +02:00
Patrick Pacher
15f85b5ae9 Add support for free-text search and minor bug fixes in netquery 2022-06-21 11:02:36 +02:00
Patrick Pacher
bef911e925 Add support for pagination to netquery module 2022-06-21 11:02:36 +02:00
Patrick Pacher
25aceaf103 Add query and chart support with multiple fixes to ORM package 2022-06-21 11:02:36 +02:00
Patrick Pacher
0d2ec9df75 wip 2022-06-21 11:02:36 +02:00
Patrick Pacher
d098f1c137 Add support for new query API 2022-06-21 11:02:35 +02:00
Patrick Pacher
e21eb16a6b Use new(record.Meta) instead of a dedicated call to SetMeta 2022-06-21 11:02:35 +02:00
Patrick Pacher
c2d2064ec8 Add and update netquery code based on review discussions 2022-06-21 11:02:35 +02:00
Patrick Pacher
021c9b178c Add documentation to query runner 2022-06-21 11:02:35 +02:00