Commit graph

735 commits

Author SHA1 Message Date
Simone Mainardi
813d93db16 Adds support to link flows from host alerts with VLANs 2021-07-30 17:37:50 +02:00
Simone Mainardi
820e497253 Unifies epoch-related variables in Lua and JS 2021-07-30 15:38:06 +02:00
Simone Mainardi
f2d9ee41be Improves selection of epochs in alert flows drilldown 2021-07-30 14:56:33 +02:00
Simone Mainardi
af7b722510 Allows "ip" to search for client and server hosts 2021-07-30 12:51:46 +02:00
Simone Mainardi
41b23003a1 Implements generation of link from alerts to past flows
Addresses #5326
2021-07-29 16:54:15 +02:00
Simone Mainardi
50e3f40a8b Fixes attempt to concat boolean value
Fixes #5722
2021-07-29 09:15:57 +02:00
Simone Mainardi
de576aa999 Implements historical floww search function for all host alerts
Addresses #5326
2021-07-28 18:16:32 +02:00
Simone Mainardi
0ccb7b2864 Removes a debug print 2021-07-28 17:22:49 +02:00
Simone Mainardi
b6913c946d Implements skeleton to drilldown historical flows from alerts
Addresses #5326
2021-07-28 17:19:44 +02:00
Alfredo Cardigliano
aa072bef55 Fix flow alerts export (e.g. email) 2021-07-19 10:19:31 +02:00
Simone Mainardi
b117e8a23a Adds new REST API v2/
Addresses #5269
2021-07-08 09:57:46 +02:00
Simone Mainardi
38b3c9ebdc Shows acknowledged messages when present
Addresses #5600
2021-07-06 17:32:37 +02:00
Alfredo Cardigliano
ca6707c54a Rename haveAdminPrivileges -> isAdministratorOrPrintErr (use meaningful names) 2021-07-02 16:51:40 +02:00
Simone Mainardi
e70c16be27 Adds cog icon to configure checks from the flow details page
Addresses #5606
2021-07-01 17:28:37 +02:00
MatteoBiscosi
be198c2a99 Added L7 iface proto behavior analysis and alert (#5499 #5474) 2021-06-29 16:50:56 +02:00
MatteoBiscosi
4620e5c72d Fixes alert utils null indexing 2021-06-28 12:41:56 +02:00
MatteoBiscosi
c3a85560a7 Fixes wrongly formatter used for behavior anomaly alert 2021-06-28 11:38:39 +02:00
MatteoBiscosi
1ad608e905 Changed behavior alert family key into entities id 2021-06-25 15:06:21 +02:00
Simone Mainardi
63168f5ff2 Implements 'Subject' column for interface alerts
Addresses #5563
2021-06-24 15:51:17 +02:00
MatteoBiscosi
47497ca666 Fixes behavior anomaly alert key not found 2021-06-23 22:55:08 +02:00
MatteoBiscosi
fd40e51428 Changed alert behavior location 2021-06-23 17:58:30 +02:00
MatteoBiscosi
a6aa647624 Removed path and timeseries string from behavior alerts 2021-06-23 16:23:45 +02:00
MatteoBiscosi
462eaa384b Fixes ASes and Networks alert behavior 2021-06-23 15:14:03 +02:00
MatteoBiscosi
f4d4543fab Changed behavior anomaly alert (#5521) 2021-06-21 09:41:53 +02:00
MatteoBiscosi
5c4142fdcb Implements behavioral alerts (#5500 #5501) 2021-06-17 17:10:02 +02:00
Simone Mainardi
76fd315d1b Refactors user_scripts into checks (lua) 2021-06-16 18:02:22 +02:00
Simone Mainardi
ccb61a7444 Harmonizes remaining hardcoded Lua scores 2021-05-15 11:00:20 +02:00
Alfredo Cardigliano
064c20db29 Implement support for alert filters using a dialog (WIP) 2021-05-13 19:02:28 +02:00
Simone Mainardi
d45ab54934 Harmonizes scores for Lua-triggered alerts
Addresses #5315
2021-05-12 12:56:12 +02:00
Alfredo Cardigliano
41b72c1125 Cleanup alert description (move configset link as additional field). Add ellipsis to long descriptions, with tooltips. 2021-05-11 17:18:13 +02:00
Alfredo Cardigliano
16da9a3961 Cleanup unised alerts code 2021-05-10 11:10:35 +02:00
Alfredo Cardigliano
450b6c4575 Remove AlertsManager (no longer used). Add back entity value or 5-tuple to exported alerts (fix #5285) 2021-05-10 10:57:43 +02:00
Simone Mainardi
ec5a92514d Fixes and simplifies getters of engaged alert counters 2021-05-07 15:06:55 +02:00
Simone Mainardi
228c85d850 Removes old inefficient alert functions 2021-05-07 11:40:07 +02:00
Alfredo Cardigliano
24e703ae20 Merge client and server in flow alerts (fix #5288) 2021-05-06 17:02:30 +02:00
Simone Mainardi
d44ce09da1 Adds the user script config wheel to flow alerts 2021-05-05 17:37:54 +02:00
Alfredo Cardigliano
c7fa2a458d Remove alert name column, improve description 2021-05-05 14:34:03 +02:00
Simone Mainardi
ddc3c3de6b Implements ability to disable all alerts
Implements #5283
2021-05-05 13:07:19 +02:00
Alfredo Cardigliano
24321cba24 Add mapScoreToSeverity call 2021-05-05 10:40:10 +02:00
Simone Mainardi
4cb19a1be8 Migrates severities to score in alert_utils 2021-05-05 10:38:04 +02:00
Simone Mainardi
602ea765e2 Fixes and updates for score and severity 2021-05-05 10:34:39 +02:00
Alfredo Cardigliano
ef65671794 Remove alert severity from Alerts. Always use score (convert to severity when required for UI or similar) 2021-05-05 09:54:14 +02:00
Simone Mainardi
83f0c38937 Massive cleanup of old alerts code 2021-05-03 18:16:46 +02:00
Alfredo Cardigliano
8dd0f903a1 Move host log alerts to host alerts. Fix syslog alerts. 2021-05-03 17:37:18 +02:00
Simone Mainardi
44861bcc0c Fixes deletion of old alerts 2021-05-03 16:48:30 +02:00
Alfredo Cardigliano
92b4ae4828 Alerts DB housekeeping 2021-04-29 19:31:49 +02:00
Simone Mainardi
16d5a31af4 Fixes disabling of alerts for flows/hosts 2021-04-27 18:16:34 +02:00
Simone Mainardi
c7082a4647 Implements new alerts database and drilldown
alert store skeleton

Alert database type changes

Implement alert store for host alerts. All alert store skeletons.

Fix class method access

Enable tracing

Implements simple queries for host alerts

Implement flow alert store

Fixes escaping of INSERT queries

Flow alerts database schema fixes

Adds escaping for alert JSON in flows and hosts

Implements queries .select() for alerts store

Adds limit and offset to perform paginated queries

Adds new REST getter for flow alerts

Name changes alert_severity to severity, alert_json to json

Fixes alert message not shown

Implement active monitoring alerts store

Implements sort of queries in the new dataabase

Changes alert_type to alert_id

Implement mac alerts store

Fixes flow alert messages

Implement system alerts store

Implement snmp alert store

Add missing items to the flow alerts

Add missing items to the host alerts

Add missing items to the mac alerts

Implements COUNT aplerts api

Add device_name to snmp alerts

add flow alerts templates

updated gitignore

fix for missing order field

add families defined in `alert_store_schema.sql`

Reworks and simplifies alert store subclasses

Implements REST API to fetch alert timeseries

Fixes date in flow REST api

Host alert json fix

Add get/host/alert/list.lua

Move alert/list.lua to alert/past/list.lua

Add alert/past/list.lua for all alert families

Add entity_id to system table to identify the alert type based on <alert_id, entity_id>

Add missing field

Implements facilities to query engaged alerts via REST

Handle both historical and past alerts in alert/list.lua

Fix count

Update params of select_historical

Implement method to add family-specific filters

Add alert/ts.lua for all alert families

Implements facilities and REST endpoints to delete alerts

Implements ordering of alert queries

Fix add_order_by group_by

Rest API tests update

Tests output update

Remove debug trace

Use alert_id instead of type. Add more flow alert info.

Update http lint

Format obsolete tlv version alerts. Add more host info.

Add row_id to list of alerts

Fix selection of engaged alerts

Add test for mac alerts (bcast domains)

Removes attempt to format alerts as flow alerts

Fixes interface selection for active monitoring

Update test output with rest changes

Add more fields to be ignores

Set alert count to 1 for the time being

add bar timeseries chart

add apexcharts

improvements on timeseries bar chart

registered chart callbakcs

working on alert page

fix for date format

Fixes acrive monitoring REST API

Fixes alignment of grouped alert data

Additional fix for alert histogram

remove useless if

formatting alerts page

fixes on flows alert stats table

rename local networks to device

format host pagie in alert_stats

add tag support for hosts and flow

implemented single delete action

add release modal

Fixes format of threshold cross interface alerts

Fixes wrong increase of dropped alerts

Implements exclusion list for invalid dns queries

Reworks exclusions lists for hosts and flows

Addresses #5212
Addresses #5113

Adds host alert keys in host callbacks definitions

Adds alert ids to flow callbacks

fix for not working button (#5215)

Fixes reported timeseries name

removed any additional button inside chart's toolbar (#5200)

Add tables for interfaces, networks, users to the schema. Skeleton alert_store classes

fixed broken range picker layout in firefox (#5199)

Alert insert fixes

Add more info to network alerts

Add rest endpoint for interface, network, user alerts

Fix endpoint selection in alerts_stats

Unifies columns between engaged and past alerts

Fixes Missing mandatory 'alert_granularity'

Minor fixes for missing alert_severity

Fixes arithmetic on a nil value (field 'last_seen')

Fixes get/system/alert/list.lua

use tstamp for column names (#5221)

Implements host alert formatter

Add alerts_store format_record_common

Use common format_record for am, system alerts

Use common format_record for all alerts

Fixes formatting of alerts of all types

Fixes nil in function 'hostinfo2label'

fixes on disable modal

add pages for network, user and interface endpoint (#5224)

Set alert_entity in all classes

Unifies influxdb alerts into system alerts

Addresses #5224

Unifies process alerts into system alerts

Addresses #5224

Cleanup unused periodicActivityEntity

Unifies category lists alerts into system alerts

Addresses #5224

Aligns new alert enums

Addresses #5224

Fixes alert page links

Fixes insertion of interface alerts

Implement filters for Host alerts

Fixes active monitoring alerts not triggering

Implement filters on flow alerts

Fixes for internal alerts timestamp and subtype

implements disable for the alerts

formatted alert disable label

Add address and device type to mac alert records

fix for delete alert toggle

Fix access to entity_val in alert_unexpected_new_device

add mac address and device type inside table

Fixes for new alert fields not handled

Fixes alert_definitions to handle new fields

Add ip/port to snmp alert records

Implements deletion of stored flow alerts

Add alert_name to all alert records via rest. Fix duration.

fixes for snmp tab

Implements delete of past host alerts

Add name to snmp alert records

fixes on system tab

Fix Date column

fixes link

Update menu

Fixes bad argument #3 to 'format' in snmp alerts

updated interface link

new alerts url for host (#5228)

Fixes sort of engaged alert

Minor cleanup

Fixes data returned for local network alerts

Fix duration for one shot. Note.

Fix duration override

Fixes interface selection for system alerts

Move host alert page

fixes for local network tab

Minor fix

Fix engaged host alerts

fixes on user tab

Fix alert_user_activity message
2021-04-26 19:41:34 +02:00
gabryon99
efbf5e599f auto width for the actions columns 2021-04-11 23:15:50 +02:00
Simone Mainardi
5faf713bd0 Handles new <type,id> alerts in alert pages and dropdowns 2021-04-07 16:08:36 +02:00