Export log query results as CSV using the exact same filters as `GET /logs/query` (start_time, end_time, level, source, env, host, search, metadata_search, tags, excluded). `limit`/`offset` are ignored: the export returns the whole filtered set up to the cap, and refuses with a 400 when the set is larger.
GET
/logs/export
const url = 'https://api.siteqwality.com/logs/export';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.siteqwality.com/logs/export \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” start_time
string
RFC3339 lower bound
end_time
string
RFC3339 upper bound
level
string
Comma-separated levels
source
string
Comma-separated sources
env
string
Comma-separated environments
host
string
Comma-separated hosts
search
string
Full-text search
metadata_search
string
Metadata search
tags
string
Tag filters
excluded
string
Exclusion filters
Responses
Section titled “ Responses ”CSV file (text/csv attachment)
Media type text/plain
string
More than 10,000 rows match the filters
Missing or invalid authentication
Internal server error