Skip to main content
A filter is a JSON object. Each key is a path in the event body. Each value is what the path must hold. An event goes to the destination only if all keys match.

Rules

A path goes through objects only. It cannot pick an array element. A missing path does not match. There are no other operators, such as “greater than” or “contains”.

Filters run after the transform

hooksnode runs the transform first, then the filter. Write the filter for the body after the transform.

What you see

  • A filtered event shows as delivered for that destination, with status code 0 and the response {"filtered":true}.
  • If the filter is not valid JSON, or the body is not a JSON object, hooksnode delivers the event and records a warning.
Use the Test panel in the destination editor to check a filter against a sample body before you save.

Examples