SASI Alert Dedup
AI-generatedOverview
The SASI Alert Dedup node is designed to deduplicate SASI alerts or messages using an AWS DynamoDB table. It checks whether a given alert (identified by its id field in the input JSON) has already been processed for a specific monitoring system, as defined by the "Monitoring System ID". If the alert is new (not found in the table), it marks it as not duplicated; otherwise, it flags it as duplicated.
Common scenarios:
- Preventing duplicate processing of alerts/messages in automated workflows.
- Ensuring that only unique alerts are acted upon in monitoring or notification systems.
- Integrating with AWS DynamoDB for scalable and persistent deduplication across distributed systems.
Practical example:
A security operations workflow receives alerts from multiple sources. This node ensures each unique alert is processed only once per monitoring system, avoiding redundant notifications or actions.
Properties
| Name | Meaning |
|---|---|
| Table Name | DynamoDB table to be used for deduplication. Options are dynamically loaded from your AWS account. |
| Monitoring System ID | Unique numeric identifier for this monitoring system instance. Used to separate deduplication scopes. |
Output
The node outputs the original input data with additional fields in the json object:
duplicated: Boolean.trueif the alert/message was already present in the DynamoDB table (i.e., it's a duplicate).falseif the alert/message is new (not a duplicate).
errored: Boolean (optional).- Present and set to
trueif there was an error during processing and the node is configured to continue on failure.
- Present and set to
Example output:
{
"id": "alert-123",
"message": "CPU usage high",
"duplicated": false
}
If an error occurs and "Continue On Fail" is enabled:
{
"id": "alert-123",
"message": "CPU usage high",
"errored": true
}
Dependencies
- AWS Credentials:
Requires valid AWS credentials configured in n8n to access DynamoDB tables. - DynamoDB Table:
The specified table must exist in your AWS account. - n8n Configuration:
The node expects the AWS credential type namedawsto be available.
Troubleshooting
Missing or Incorrect AWS Credentials:
Error: "The security token included in the request is invalid."
Resolution: Ensure your AWS credentials are correctly configured in n8n.Table Not Found:
Error: "Requested resource not found" or similar.
Resolution: Verify the selected DynamoDB table exists and the name is correct.Input Data Missing
idField:
Error: May result in unexpected deduplication behavior.
Resolution: Ensure each input item contains a uniqueidfield.Insufficient Permissions:
Error: "User is not authorized to perform: dynamodb:PutItem"
Resolution: Update your AWS IAM policy to allow required DynamoDB actions.