Skip to content

Commit 32aae65

Browse files
committed
Enhance log alert message with key details.
Include the specific blocklisted key in the alert message to provide clearer context and improve debugging efficiency. This update ensures more actionable and informative alerts.
1 parent ac3172e commit 32aae65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

correlation/ti/ti.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func IsBlocklisted() {
9696

9797
if strings.Contains(log, key) {
9898
correlation.Alert(
99-
fmt.Sprintf("Maliciuos %s found in log", value),
99+
fmt.Sprintf("Malicious %s found in log: %s", value, key),
100100
"Low",
101101
"A blocklisted element has been identified in the logs. Further investigation is recommended.",
102102
"",

0 commit comments

Comments
 (0)