The Replicator app copies events from one PostHog instance to another, at the moment they are ingested. No changes are made to the events by this app if it runs in isolation.
If this app is deployed in a chain then any changes made to the event data before the Replicator runs will also be copied to the new instance. Otherwise, no changes will be copied.
Requirements
The Replicator app requires two instances of PostHog running 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!
Both versions of PostHog should ideally be running the same version.
Using the Replicator app
To migrate your events, we'll be using the PostHog Replicator app:
- Disable the GeoIP plugin of your new PostHog instance
- Log in to your old PostHog instance
- Click 'Apps' on the left-hand tool bar
- Search for 'Replicator'
- If self-hosted, select the app, press 'Install' (or make sure it's the latest version)
- For the configuration details using the following:
Host
: the hostname of your new PostHog instance e.g.app.posthog.com
if you are using US cloud,eu.posthog.com
if you were are EU cloud, or the domain you'll be sending events to if you are self-hostingProject API Key
: the API key for the new project that you want to send events to - found in the project settings page.
- After clicking save and activating it (toggle on the left side), the Replicator will start to run. Any events added to your old instance will be replicated in your new instance. It can take a little while (15-20 minutes) for the first events to show up.
- Once the Replicator is activated, go back to the configuration menu and click the gear next to "Export historical events" under "Jobs." On the calendar, select a start and end date, then click "Run job now." This will begin the process of historical events being import (and might take a while). You can see the progress in logs or by clicking the "App metrics" button (graph) and going to the "Historical exports" tab.
- To track progress of the export you can click the graph icon next to the Replicator app and then click on the "Historical Exports" tab
- Re-enable the GeoIP plugin of your new PostHog instance
- Log in to your PostHog instance
- Click 'Apps' on the left-hand tool bar
- Search for 'Replicator'
- Select the app, press 'Install' and follow the on-screen instructions
- See events come into another PostHog instance, identically to the originals
Configuration
Option | Description |
---|---|
Host Type: string Required: True | E.g. posthog.yourcompany.com |
Project API Key Type: string Required: True | Grab it from e.g. https://posthog.yourcompany.com/project/settings |
Replication Type: string Required: False | How many times should each event be sent |
Events to ignore Type: string Required: False | Comma-separated list of events to ignore, e.g. $pageleave, purchase |
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 Replicator is available on GitHub.
Who created this app?
We'd like to thank PostHog team members Yakko Majuri and Michael Matloka for creating the Replicator app.
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.