Export user events
You can export user events using the ReachFive Console.
This export allows you to retrieve all events or just the latest events.
Exports are handled by jobs and can be executed on demand or scheduled as needed.
You can export data in CSV
or JSONL
format.
Exporting user events
The instructions below guide you step-by-step in exporting user events from the ReachFive Console. The visual below shows you a high-level flow of the process.
Prerequisites
-
You must have access to the ReachFive Console.
-
You must have a Developer, Manager, or Administrator role.
-
You must have the Export Jobs feature enabled.
Instructions
The instructions below apply to both creating and editing an export job definition.
If editing an existing export job, be sure to select the instead of creating a new definition. |
-
Go to
. -
Select New definition.
-
Under General, give the export job a name and description. Don’t forget to Enable the job.
-
Under Destination, choose the protocol you wish to use to export the file.
-
Specify the Server host for the secure FTP site.
-
Specify the Server port.
-
Under Authentication method, choose the authentication method type:
Username and password:
-
Enter the Username for the server.
-
Enter the Password for the server.
OpenSSH:
-
Enter the Username for the server.
-
Enter the OpenSSH private key.
example-----BEGIN ENCRYPTED PRIVATE KEY----- MIIBpjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQI5yNCu9T5SnsCAggA MBQGCCqGSIb3DQMHBAhJISTgOAxtYwSCAWDXK/a1lxHIbRZHud1tfRMR4ROqkmr4 kVGAnfqTyGptZUt3ZtBgrYlFAaZ1z0wxnhmhn3KIbqebI4w0cIL/3tmQ6eBD1Ad1 nSEjUxZCuzTkimXQ88wZLzIS9KHc8GhINiUu5rKWbyvWA13Ykc0w65Ot5MSw3cQc w1LEDJjTculyDcRQgiRfKH5376qTzukileeTrNebNq+wbhY1kEPAHojercB7d10E +QcbjJX1Tb1Zangom1qH9t/pepmV0Hn4EMzDs6DS2SWTffTddTY4dQzvksmLkP+J i8hkFIZwUkWpT9/k7MeklgtTiy0lR/Jj9CxAIQVxP8alLWbIqwCNRApleSmqtitt Z+NdsuNeTm3iUaPGYSw237tjLyVE6pr0EJqLv7VUClvJvBnH2qhQEtWYB9gvE1dS BioGu40pXVfjiLqhEKVVVEoHpI32oMkojhCGJs8Oow4bAxkzQFCtuWB1 -----END ENCRYPTED PRIVATE KEY-----
-
-
Specify the Path where the export file is to be sent.
- For example
-
<serverhost>/path-to-file/file.csv
. - Example w/variables
-
<serverhost>/path-to-file/file-{{datetime}}.csv
See Export path variables for more details.
-
Specify the URL for the S3 bucket.
-
Specify the name Bucket.
-
Enter the Region for the server.
-
Enter the Access key for AWS.
-
Enter the Secret key for AWS.
-
Specify the Path where the export file is to be sent.
- For example
-
<serverhost>/path-to-file/file.csv
. - Example w/variables
-
<serverhost>/path-to-file/file-{{datetime}}.csv
See Export path variables for more details.
-
Specify the Project ID for the Google Cloud Storage.
-
Specify the App name.
-
Enter the User name for the server.
-
Specify the name Bucket.
-
Enter the Credentials in JSON format.
-
Specify the Path where the export file is to be sent.
- For example
-
<serverhost>/path-to-file/file.csv
. - Example w/variables
-
<serverhost>/path-to-file/file-{{datetime}}.csv
See Export path variables for more details.
-
-
Still under Destination, if desired, click Overwrite existing file.
-
Under Schedule, if desired, use a cron expression for scheduling the job.
-
Under File format, select the file format type you wish to export. This will be either JSONL or CSV.
-
Choose the Encoding standard for your JSONL file. This is either
UTF-8
orISO-8859-1
. -
Define the fields to include in the export. You can include all attributes of the user event types model.
-
Select the user profile fields to be exported.
Choosing to include user profile fields as part of a user event export can significantly reduce the job performance.
-
Choose the Encoding standard for your CSV file. This is either
UTF-8
orISO-8859-1
. -
Define the columns to include in the export. You can include all attributes of the user event types model.
You can drag and drop the fields to sort the order in which you want the columns displayed as part of the export job.
-
Select the user profile fields to be exported.
Choosing to include user profile fields as part of a user event export can significantly reduce the job performance. -
Enter your Delimiter. The default is
;
. -
Enter your Quote char. The default is
"
. -
Enter your Escape character. The default is
\
.
The data for custom fields that contain the multiple
type (such astags
) are separated by the sameDelimiter
that is configured in the job definition. -
-
Optional If you want, you can filter user events.
If you filter the events by the event type
user_deleted
oruser_deleted_by_merge
, only the user event types model is exported as no user profile fields would be available from a deleted user.
Filter export jobs
If you want to minimise database impact, you can filter what to export to limit the size of files that are generated. Filters allow you to define a range of values to export only user events that meet certain requirements.
The more filters you add, the more refined the data becomes. |
Operator | Description | Supports | ||
---|---|---|---|---|
|
Equal to/equivalent. Example: |
|
||
|
Greater than. Example: |
Dates & Integers |
||
|
Greater than or equal to. Example: |
Dates & Integers |
||
|
Less than. Example: |
Dates & Integers |
||
|
Less than or equal to. Example: |
Dates & Integers |
||
|
Between (inclusive) two specified values. Example: |
Dates & Integers |
||
|
The value for the specified filter is not empty. Example: |
|
||
|
The value for the specified filter is empty. Example: |
|
||
|
The filter includes any of the specified values. Example:
|
|
||
|
The filter excludes any of the specified values. Example:
|
|
||
|
Filter values that start with the specified value. Example: |
String |
||
|
Filter values that end with the specified value. Example: |
String |
||
|
Filters values that contain the specified value. Example: |
String |
||
|
Filters values that have occured before the specified time. Example: |
String |
||
|
Filters values that have occurred since the specified timeframe.
Format: Example: Accepts:
|
String |
Run export job
Click next to the export definition.
When you start a run, logs are created and available in Show job reports.
All job logs are accessible in the | .
User event jobs are labelled with the user-events-export-external
tag under the Type column on the ReachFive Console.
Export path variables
In some cases, you might want to add meta information to the path of an export file for identification and analysis purposes. With export path variables, you can do just that. Wherever you would like a variable in the path, simply add it to the name of the file as shown here:
<serverhost>/path-to-file/{{datetime}}-file-{{job_execution_id}}.csv (1)
1 | In this example, {datetime} and {job_execution_id} are inserted as part of the file name as part of the export. |
The export path variable feature is available for all export types including exporting profiles, user events, and consents. |
Available export path variables
The following variables are available for you to use as part of your export.
-
{{datetime}}
is the job execution date in the format ofyyyy-MM-dd HH-mm-ss
. -
{{date}}
is the job execution date in the format ofyyyy-MM-dd
. -
{{time}}
is the job execution time in the format ofHH-mm-ss
. -
{{*datePattern}}
lets you set the date pattern as shown here. -
{{account}}
is the name of the account where the export occurred. -
{{job_execution_id}}
is the specific id of the export being executed.