{ "annotations": { "list": [] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, "id": null, "links": [], "panels": [ { "id": 1, "title": "Open detections", "type": "table", "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "pluginVersion": "11.2.2", "gridPos": { "x": 0, "y": 0, "w": 24, "h": 8 }, "targets": [ { "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "editorType": "sql", "format": 1, "pluginVersion": "11.2.2", "queryType": "table", "rawSql": "SELECT ts, infobase, rule_title, entity_type, entity_id, severity, score, summary FROM analytics_1c.detections WHERE status = 'open' AND $__timeFilter(ts) ORDER BY ts DESC LIMIT 100", "refId": "A" } ], "options": { "showHeader": true, "sortBy": [ { "displayName": "ts", "desc": true } ] }, "fieldConfig": { "defaults": {}, "overrides": [] } }, { "id": 2, "title": "Top rules", "type": "table", "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "pluginVersion": "11.2.2", "gridPos": { "x": 0, "y": 8, "w": 12, "h": 8 }, "targets": [ { "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "editorType": "sql", "format": 1, "pluginVersion": "11.2.2", "queryType": "table", "rawSql": "SELECT rule_title, severity, count() AS detections_total, sum(score) AS score_total FROM analytics_1c.detections WHERE $__timeFilter(ts) GROUP BY rule_title, severity ORDER BY detections_total DESC LIMIT 20", "refId": "A" } ], "options": { "showHeader": true, "sortBy": [ { "displayName": "ts", "desc": true } ] }, "fieldConfig": { "defaults": {}, "overrides": [] } }, { "id": 3, "title": "Open cases", "type": "table", "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "pluginVersion": "11.2.2", "gridPos": { "x": 12, "y": 8, "w": 12, "h": 8 }, "targets": [ { "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "editorType": "sql", "format": 1, "pluginVersion": "11.2.2", "queryType": "table", "rawSql": "SELECT opened_at, case_id, infobase, title, severity, status FROM analytics_1c.cases ORDER BY opened_at DESC LIMIT 50", "refId": "A" } ], "options": { "showHeader": true, "sortBy": [ { "displayName": "ts", "desc": true } ] }, "fieldConfig": { "defaults": {}, "overrides": [] } }, { "id": 4, "title": "Critical / High timeline", "type": "timeseries", "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "pluginVersion": "11.2.2", "gridPos": { "x": 0, "y": 16, "w": 24, "h": 8 }, "targets": [ { "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "editorType": "sql", "format": 1, "pluginVersion": "11.2.2", "queryType": "timeSeries", "rawSql": "SELECT toStartOfHour(ts) AS time, count() AS value FROM analytics_1c.detections WHERE severity IN ('high','critical') AND $__timeFilter(ts) GROUP BY time ORDER BY time", "refId": "A" } ], "options": { "legend": { "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "multi" } }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" } }, "overrides": [] } } ], "refresh": "30s", "schemaVersion": 39, "style": "dark", "tags": [ "1c", "detections", "clickhouse" ], "templating": { "list": [ { "name": "infobase", "label": "Infobase", "type": "query", "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "refresh": 1, "definition": "SELECT DISTINCT infobase FROM analytics_1c.documents ORDER BY infobase", "query": "SELECT DISTINCT infobase FROM analytics_1c.documents ORDER BY infobase", "multi": true, "includeAll": true, "sort": 1, "current": { "selected": false, "text": "All", "value": "$__all" } }, { "name": "severity", "label": "Severity", "type": "query", "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "refresh": 1, "definition": "SELECT arrayJoin(['low','medium','high','critical'])", "query": "SELECT arrayJoin(['low','medium','high','critical'])", "multi": true, "includeAll": true, "sort": 1, "current": { "selected": false, "text": "All", "value": "$__all" } }, { "name": "host", "label": "Host", "type": "query", "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "refresh": 1, "definition": "SELECT DISTINCT host FROM analytics_1c.host_events ORDER BY host", "query": "SELECT DISTINCT host FROM analytics_1c.host_events ORDER BY host", "multi": true, "includeAll": true, "sort": 1, "current": { "selected": false, "text": "All", "value": "$__all" } }, { "name": "user", "label": "User", "type": "query", "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse-1c" }, "refresh": 1, "definition": "SELECT DISTINCT user FROM analytics_1c.reglog_events ORDER BY user", "query": "SELECT DISTINCT user FROM analytics_1c.reglog_events ORDER BY user", "multi": true, "includeAll": true, "sort": 1, "current": { "selected": false, "text": "All", "value": "$__all" } } ] }, "time": { "from": "now-7d", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "1C File - Detections", "uid": "1c-file-detections", "version": 1, "weekStart": "" }