Solved

Front Events Download Question

  • 15 December 2022
  • 1 reply
  • 45 views

Badge +2

We are currently after a historical backload of our Front's event stream prior to 14-06-2022.

I've looked at the get_events API and tried fetching events from it but:

  1. No matter how we specify the start/end timestamp parameter the API will return the event starting from the current time
  2. It only emits 15 events per fetch.

Please let me know

icon

Best answer by Javier - Developer Relations 15 December 2022, 01:10

View original

1 reply

Userlevel 5
Badge +8

Historical export of events, prior to 14-06-2022

We have a couple of options for you here. 

The first (and likely easiest) is to use Front's full events export to generate a single CSV file (with whatever columns and event types you are interested in) to pull that historical data. This is the only option to get a full audit of all events.

 

The other option is using the API:

Use of GET /events API endpoint

The endpoint should be used in the following way to send dates;

 

  GET /events?q[before]=1655164800

 

Regarding the limit, we have recently updated the API docs to correctly specify the 15 event limit per API call. Unfortunately calls to this endpoint are extremely resource intensive, so we have to limit the amount of data that can be returned by a single call to 15. Our engineers are investigating methods of optimizing this, but for now we have the 15 event limit in place.

 

 

I hope this is helpful - Please let me know if you have any further questions.

 

--Jason

Reply