Skip to content

Feature Request: Provision to send custom messages with log content as alerts using Alert API. #331

@ARK-ASWINRAJ

Description

@ARK-ASWINRAJ

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.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions