-
-
Notifications
You must be signed in to change notification settings - Fork 150
Description
The context
I'm using parseable for logging in with Winston logger and sending alerts based on custom rules to a slack channel. This is super helpful. But still, I can only send custom strings as message content
for alerts. Actually, I wanted to send the 'log content' (including stack trace) or the value in a specific column in a log to slack. But couldn't find a way to do the same.
{ version: "v1", alerts: [ { name: "Crash Alert", message: "Server Crashed", rule: { type: "column", config: { column: "status", operator: "=", repeats: 3, value: 500, }, }, targets: [ { type: "slack", config: { url: slackUrl }, repeat: "1m", }, ], }, ], };
What would be great ?
If I can do something like this-:
{ version: "v1", alerts: [ { name: "Crash Alert", message: "Server Crashed: {log_entry.message}", rule: { type: "column", config: { column: "status", operator: "=", repeats: 3, value: 500; }, }, targets: [ { type: "slack", config: { url: slackUrl, }, repeat: "1m", }, ], }, ], };
If there's a provision to send custom fields like ({log_entry.message}
) in logs along with or within 'message' as a payload for alerts, that would be perfect.