Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

🦔 Injest only those events satisfying the given filter conditions

License

Notifications You must be signed in to change notification settings

plibither8/posthog-filter-out-plugin

Repository files navigation

🦔 PostHog Filter Out Plugin

Injest only those events satisfying the given filter conditions


Development and support for this plugin has been moved to PostHog/posthog-filter-out-plugin. Create issues and PRs in PostHog's repository instead.


Configuration

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

Example filters:

Only keep events where all the following conditions are met:

  • Email does not contain yourcompany.com
  • Host is not localhost:8000
  • Browser version greater than 100
[
  {
    "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

About

🦔 Injest only those events satisfying the given filter conditions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published