PostHog / posthog-filter-out-plugin

🦔 Injest only those events satisfying the given filter conditions
MIT License
3 stars 3 forks source link

🦔 PostHog Filter Out Plugin

Injest only those events satisfying the given filter conditions

Configuration

The plugin configuration requires a JSON file with the following structure:

Example filters:

Only keep events where all the following conditions are met:

[
  {
    "property": "email",
    "type": "string",
    "operator": "not_contains",
    "value": "yourcompany.com"
  },
  {
    "property": "$host",
    "type": "string",
    "operator": "is_not",
    "value": "localhost:8000"
  },
  {
    "property": "$browser_version",
    "type": "number",
    "operator": "gt",
    "value": 100
  }
]

Allowed types and their operators:

Type Operators
number gt, gte, lt, lte, eq, neq
string is, is_not, contains, not_contains, regex, not_regex
boolean is, is_not

License

MIT