This app enables you to reduce how many events a deployment of PostHog will ingest. This is especially useful for users who have huge volumes of data, but don't need to analyze it all and want to avoid large bills.

Requirements

The Downsampler app requires either PostHog Cloud, or a self-hosted PostHog instance running version 1.30.0 or later.

Not running 1.30.0? Find out how to update your self-hosted PostHog deployment!

Installation

  1. In PostHog, click the "Data pipeline" tab in the left sidebar.
  2. Search for 'Downsampling' and select the app, press Install.
  3. Follow the on-screen steps to configure the app.

Can I use the Downsampler app to control my PostHog bill?

Yes. Paid-for versions of PostHog are priced per event and the Downsampling app enables you to reduce the number of events which your instance ingests, thereby giving you greater control over billing.

Configuration

OptionDescription
% of events to keep
Type: string
Required: False
Reduces events flowing in to the percentage value above
Sampling method
Type: choice
Required: False
Distinct ID aware sampling will sample based on distinct IDs, meaning that a user's events will all be ingested or all be dropped at a given sample percentage.

FAQ

Is the source code for this app available?

PostHog is open-source and so are all apps on the platform. The source code for the Downsampler app is available on GitHub.

Who created this app?

We'd like to thank PostHog team members Michael Matloka and Marius Andra and Neil Kakkar for creating the Downsampler.

Who maintains this app?

This app is maintained by PostHog. If you have issues with the app not functioning as intended, please let us know!

What if I have feedback on this app?

We love feature requests and feedback! Please tell us what you think! to tell us what you think.

What if my question isn't answered above?

We love answering questions. Ask us anything via our community forum, or drop us a message.

Questions?

Was this page useful?

Next article

Event Sequence Timer

🚧 Note: We are currently in the process of reworking our app server and have therefore disabled new installs of the event sequence timer. You can still analyze the timing of event sequences using HogQL . For example, to get the average time between a $pageview and $pageleave events this year, create an SQL insight and use the following SQL statement: This can be customized with different events or properties. See an example use case in our “ How to calculate time on page ” tutorial…

Read next article