Anyway to sync AI Gateway logs to R2 Storage or BigQuery?

We are trying to use AI gateway for calling Open AI API. Right now AI Gateway could logs all the API calls in the Real-Time logs in web ui. However, I am wondering if there is a way to sync these logs to R2 storage or external data warehouse like BigQuery?

Then we could analyze the data directly, rather than logging it somewhere else by ourselves.