forked from PinSpace-Org/GistPin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlog-patterns.json
More file actions
93 lines (93 loc) 路 2.13 KB
/
Copy pathlog-patterns.json
File metadata and controls
93 lines (93 loc) 路 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"error_patterns": [
{
"name": "critical_system_errors",
"patterns": [
"out of memory",
"stack overflow",
"segmentation fault",
"unhandled exception",
"fatal error",
"panic:"
],
"level": "critical",
"alert_threshold": 1,
"window": "5m",
"deduplication_window": "15m"
},
{
"name": "database_errors",
"patterns": [
"connection refused",
"connection reset",
"deadlock detected",
"query timeout",
"too many connections",
"integrity constraint violation"
],
"level": "error",
"alert_threshold": 5,
"window": "5m",
"deduplication_window": "10m"
},
{
"name": "security_errors",
"patterns": [
"invalid credentials",
"authentication failed",
"unauthorized access",
"forbidden access",
"csrf token invalid",
"xss attempt detected",
"sql injection attempt"
],
"level": "warning",
"alert_threshold": 20,
"window": "10m",
"deduplication_window": "5m"
},
{
"name": "api_errors",
"patterns": [
"internal server error",
"bad gateway",
"service unavailable",
"gateway timeout",
"bad request",
"not found"
],
"level": "error",
"alert_threshold": 10,
"window": "5m",
"deduplication_window": "5m"
},
{
"name": "network_errors",
"patterns": [
"connection timed out",
"network unreachable",
"dns resolution failed",
"tls handshake failed",
"ssl error"
],
"level": "warning",
"alert_threshold": 15,
"window": "10m",
"deduplication_window": "10m"
}
],
"anomaly_detection": {
"enabled": true,
"baseline_window": "7d",
"training_window": "24h",
"sensitivity": 2.0,
"seasonality": true,
"seasonality_period": "24h"
},
"deduplication": {
"enabled": true,
"default_window": "15m",
"fields": ["instance", "level", "message_pattern"],
"max_alerts_per_window": 5
}
}