v1

latestOpenAPI 3.1.02026-07-26189891.1 MB
Export

Export log lines

Use this method to export logs in JSON format from a logging instance.

get/v2/export

Query parameters

fromstring required

Start time (inclusive). Set as UNIX timestamp in seconds or milliseconds.

tostring required

End time (inclusive). Set as UNIX timestamp in seconds or milliseconds.

sizestring

Number of log lines to include in the export.

hostsstring

Comma-separated list of hosts.

appsstring

Comma-separated list of applications.

levelsstring

Comma-separated list of log levels.

querystring

Search query.

preferstring

Defines the log lines that you want to export. Valid values are head, first log lines, and tail, last log lines. If not specified, defaults to tail.

pagination_idstring

ID that indicates which page of results to be retrieved. Leave empty for the initial export request.

Response

OK

object required