Event export
Last updated
Last updated
All fulfillmenttools events will be logged and made available in a daily export. The daily event files are saved in a Google Cloud Storage bucket. This enables you to leverage the data from your fulfillment process for additional processing and analytics.
This functionality is not activated by default, if you would like to use it, please contact us at professionalservice@fulfillmenttools.com.
Google offers multiple client libraries for accessing Google Cloud Storage buckets and you can also use the Google Cloud Storage API directly. Another alternative is to use the gcloud CLI from the Google Cloud SDK.
You will need to use a Google service account to use any of these methods. On request, fulfillmenttools will provide you with a service account key that you have to use for authentication. The service account can only be used to access this particular bucket. It cannot be used to access the fulfilmenttools API or the client applications.
The service account key will be a file named {YOUR_TENANT_NAME}-<key_id>.json
. This file contains a JSON representation of the service account.
This file contains the service account key and allows access to the bucket, so make sure to store it securely. See the official Google documentation for further information.
The bucket is named {YOUR_TENANT_NAME}-<tier>-public-events-export-bucket
and can be accessed in a variety of ways. Access to this bucket is restricted, so only authorized accounts can access this data.
For each day a folder is created in the bucket (with the pattern YYYY-MM-DD
), containing the events of the corresponding day:
Each folder contains one or more gzipped files. Each of these files contains multiple lines, one line corresponds to one event in the fulfillmenttools platform:
Each line of the file is a JSON object containing some metadata fields and the event payload:
Data in the buckets is stored for 90 days, after 90 days, the data is deleted.
Here's an example how to copy files from a Google Cloud Storage bucket using the Google gsutil CLI.
Check the official Google documentation about gsutil for further details.
The service account email id can be found in the provided key file under client_email.
Use this to switch to the service account:
You can use gcloud auth list
to list all credentialed accounts and check the active one. Also, you may want to check your setup using gcloud config list
.
Here's how to list the contents of the bucket:
You can either download individual files or the whole bucket to a local folder: