Philter User's Guide Help


Philter can optionally generate alerts when a particular type of sensitive information is identified.

Alert Conditions

In a policy, each type of sensitive information can have zero or more filter strategies. Each filter strategy can optionally have a condition associated with it. When a condition is present, the filter strategy will only be satisfied when the condition is satisfied. For example, a condition may be created to only filter phone numbers that start with the digits 123 or only filter names that start with John. Filter strategy conditions give you granular control over the filtering process.

When a filter strategy condition is satisfied, Philter can optionally generate an alert. This feature allows you to be notified when a particular type of sensitive information is identified.

Enabling Alerts

Alerts are enabled on a per-condition basis. For instance, given the following policy to identify email addresses, a condition has been added to only match the email address Because of the property alert set to true, an alert will be generated when this condition is satisfied. By default, the alert property is set to false disabling alerts for the condition.

{ "name": "email-address-alert", "identifiers": { "emailAddress": { "emailAddressFilterStrategies": [ { "id": "my-email-strategy", "strategy": "REDACT", "redactionFormat": "{{{REDACTED-%t}}}", "condition": "token == \"\"", "alert": true } ] } } }

Structure of an Alert

An alert contains the following information:

Property Name



A unique ID for the alert formatted as an UUID.


The name of the policy triggering the alert.


The ID of the filter strategy triggering the alert. In the example above the id would be my-email-strategy.


The context.


The ID of the document which triggered the alert.


The filter type ("email-address", "credit-card", etc.) triggering the alert.


A timestamp when the alert was generated formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'.

Retrieving and Deleting Alerts

The alerts that Philter has generated are available through Philter's alerts API. This API allows for retrieving and deleting alerts. Using this API you can build sophisticated notification systems around Philter's capabilities.

Last modified: 08 November 2023