---
title: Logs
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/typescript)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Logs

#### LogsLog Explorer

#### LogsLog ExplorerQuery

##### [Run a log query](https://developers.cloudflare.com/api/typescript/resources/logs/subresources/log_explorer/subresources/query/methods/sql)

client.logs.logExplorer.query.sql(QuerySqlParams {body, account\_id, zone\_id } params, RequestOptionsoptions?): SinglePage< [QuerySqlResponse](<https://developers.cloudflare.com/api/typescript/resources/logs#(resource)%20logs.log_explorer.query%20%3E%20(model)%20query_sql_response%20%3E%20(schema)>)>

POST/{accounts\_or\_zones}/{account\_or\_zone\_id}/logs/explorer/query/sql

##### ModelsExpand Collapse

QuerySqlResponse = Record<string, unknown>

[Link to this property](<#(resource)%20logs.log_explorer.query%20%3E%20(model)%20query_sql_response%20%3E%20(schema)>)

#### LogsLog ExplorerDatasets

##### [List account or zone datasets](https://developers.cloudflare.com/api/typescript/resources/logs/subresources/log_explorer/subresources/datasets/methods/list)

client.logs.logExplorer.datasets.list(DatasetListParams {account\_id, zone\_id, include\_zones } params?, RequestOptionsoptions?): SinglePage< [DatasetSummary](<https://developers.cloudflare.com/api/typescript/resources/logs#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset_summary%20%3E%20(schema)>) {created\_at, dataset, dataset\_id, 5 more } >

GET/{accounts\_or\_zones}/{account\_or\_zone\_id}/logs/explorer/datasets

##### [Get an account or zone dataset](https://developers.cloudflare.com/api/typescript/resources/logs/subresources/log_explorer/subresources/datasets/methods/get)

client.logs.logExplorer.datasets.get(stringdatasetID, DatasetGetParams {account\_id, zone\_id } params?, RequestOptionsoptions?): [Dataset](<https://developers.cloudflare.com/api/typescript/resources/logs#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset%20%3E%20(schema)>) {created\_at, dataset, dataset\_id, 8 more }

GET/{accounts\_or\_zones}/{account\_or\_zone\_id}/logs/explorer/datasets/{dataset\_id}

##### [Create an account or zone dataset](https://developers.cloudflare.com/api/typescript/resources/logs/subresources/log_explorer/subresources/datasets/methods/create)

client.logs.logExplorer.datasets.create(DatasetCreateParams {dataset, account\_id, zone\_id, 3 more } params, RequestOptionsoptions?): [Dataset](<https://developers.cloudflare.com/api/typescript/resources/logs#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset%20%3E%20(schema)>) {created\_at, dataset, dataset\_id, 8 more }

POST/{accounts\_or\_zones}/{account\_or\_zone\_id}/logs/explorer/datasets

##### [Update an account or zone dataset](https://developers.cloudflare.com/api/typescript/resources/logs/subresources/log_explorer/subresources/datasets/methods/update)

client.logs.logExplorer.datasets.update(stringdatasetID, DatasetUpdateParams {enabled, account\_id, zone\_id, 4 more } params, RequestOptionsoptions?): [Dataset](<https://developers.cloudflare.com/api/typescript/resources/logs#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset%20%3E%20(schema)>) {created\_at, dataset, dataset\_id, 8 more }

PUT/{accounts\_or\_zones}/{account\_or\_zone\_id}/logs/explorer/datasets/{dataset\_id}

##### [Delete an account or zone dataset](https://developers.cloudflare.com/api/typescript/resources/logs/subresources/log_explorer/subresources/datasets/methods/delete)

client.logs.logExplorer.datasets.delete(stringdatasetID, DatasetDeleteParams {account\_id, zone\_id } params?, RequestOptionsoptions?): [Dataset](<https://developers.cloudflare.com/api/typescript/resources/logs#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset%20%3E%20(schema)>) {created\_at, dataset, dataset\_id, 8 more }

DELETE/{accounts\_or\_zones}/{account\_or\_zone\_id}/logs/explorer/datasets/{dataset\_id}

##### ModelsExpand Collapse

<details>

<summary>

CreateRequest {dataset, fields, filter, filter\_attack\_traffic }

</summary>

dataset: string

Dataset type name to create (e.g. <code>http_requests</code>).

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20create_request%20%3E%20(schema)%20%3E%20(property)%20dataset">Link to this property</a>

<details>

<summary>

fields?: Array&lt;Field&gt;

Controls which fields the API ingests. Defaults to all available fields when absent.

</summary>

enabled: boolean

Whether the API includes this field in log ingest.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20create_request%20%3E%20(schema)%20%3E%20(property)%20fields%20%3E%20(items)%20%3E%20(property)%20enabled">Link to this property</a>

name: string

Field name in lowercase.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20create_request%20%3E%20(schema)%20%3E%20(property)%20fields%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20create_request%20%3E%20(schema)%20%3E%20(property)%20fields">Link to this property</a>

filter?: string

Optional Logpush filter predicate to restrict which events are ingested. See <a href="https://developers.cloudflare.com/logs/reference/filters/">Logpush filters</a> for syntax and examples.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20create_request%20%3E%20(schema)%20%3E%20(property)%20filter">Link to this property</a>

filter\_attack\_traffic?: boolean

Whether to filter attack traffic from the Logpush job. Defaults to <code>true</code> for supported datasets when omitted. Supported datasets are <code>http_requests</code>, <code>firewall_events</code>, and <code>network_analytics_logs</code>.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20create_request%20%3E%20(schema)%20%3E%20(property)%20filter_attack_traffic">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20create_request%20%3E%20(schema)>)

<details>

<summary>

Dataset {created\_at, dataset, dataset\_id, 8 more }

A Log Explorer dataset summary. List endpoints return this type and omit field configuration; use the single-dataset endpoint to retrieve it.

</summary>

created\_at: string

RFC3339 timestamp recording when the API created this dataset.

formatdate-time

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

dataset: string

Dataset type name (e.g. <code>http_requests</code>).

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset%20%3E%20(schema)%20%3E%20(property)%20dataset">Link to this property</a>

dataset\_id: string

Unique dataset ID.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset%20%3E%20(schema)%20%3E%20(property)%20dataset_id">Link to this property</a>

deletion\_protection: boolean

Whether deletion is blocked. Set to <code>false</code> before deleting the dataset.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset%20%3E%20(schema)%20%3E%20(property)%20deletion_protection">Link to this property</a>

enabled: boolean

Whether log ingest is currently active for this dataset.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

fields: Array&lt;Field&gt;

The field configuration for this dataset.

</summary>

enabled: boolean

Whether the API includes this field in log ingest.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset%20%3E%20(schema)%20%3E%20(property)%20fields%20%3E%20(items)%20%3E%20(property)%20enabled">Link to this property</a>

name: string

Field name in lowercase.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset%20%3E%20(schema)%20%3E%20(property)%20fields%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset%20%3E%20(schema)%20%3E%20(property)%20fields">Link to this property</a>

object\_id: string

Public ID of the account or zone that owns this dataset.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset%20%3E%20(schema)%20%3E%20(property)%20object_id">Link to this property</a>

<details>

<summary>

object\_type: "account"| "zone"

Whether this dataset belongs to an account or a zone.

</summary>

One of the following:

"account"

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset%20%3E%20(schema)%20%3E%20(property)%20object_type%20%3E%20(member)%200">Link to this property</a>

"zone"

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset%20%3E%20(schema)%20%3E%20(property)%20object_type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset%20%3E%20(schema)%20%3E%20(property)%20object_type">Link to this property</a>

updated\_at: string

RFC3339 timestamp recording when the API last updated this dataset.

formatdate-time

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset%20%3E%20(schema)%20%3E%20(property)%20updated_at">Link to this property</a>

filter?: string

The Logpush filter predicate applied to this dataset. Omitted when no filter is set.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset%20%3E%20(schema)%20%3E%20(property)%20filter">Link to this property</a>

filter\_attack\_traffic?: boolean

Whether the Logpush job filters attack traffic. Omitted for datasets that do not support this option.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset%20%3E%20(schema)%20%3E%20(property)%20filter_attack_traffic">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset%20%3E%20(schema)>)

<details>

<summary>

DatasetSummary {created\_at, dataset, dataset\_id, 5 more }

A Log Explorer dataset summary. List endpoints return this type and omit field configuration; use the single-dataset endpoint to retrieve it.

</summary>

created\_at: string

RFC3339 timestamp recording when the API created this dataset.

formatdate-time

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset_summary%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

dataset: string

Dataset type name (e.g. <code>http_requests</code>).

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset_summary%20%3E%20(schema)%20%3E%20(property)%20dataset">Link to this property</a>

dataset\_id: string

Unique dataset ID.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset_summary%20%3E%20(schema)%20%3E%20(property)%20dataset_id">Link to this property</a>

deletion\_protection: boolean

Whether deletion is blocked. Set to <code>false</code> before deleting the dataset.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset_summary%20%3E%20(schema)%20%3E%20(property)%20deletion_protection">Link to this property</a>

enabled: boolean

Whether log ingest is currently active for this dataset.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset_summary%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

object\_id: string

Public ID of the account or zone that owns this dataset.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset_summary%20%3E%20(schema)%20%3E%20(property)%20object_id">Link to this property</a>

<details>

<summary>

object\_type: "account"| "zone"

Whether this dataset belongs to an account or a zone.

</summary>

One of the following:

"account"

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset_summary%20%3E%20(schema)%20%3E%20(property)%20object_type%20%3E%20(member)%200">Link to this property</a>

"zone"

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset_summary%20%3E%20(schema)%20%3E%20(property)%20object_type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset_summary%20%3E%20(schema)%20%3E%20(property)%20object_type">Link to this property</a>

updated\_at: string

RFC3339 timestamp recording when the API last updated this dataset.

formatdate-time

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset_summary%20%3E%20(schema)%20%3E%20(property)%20updated_at">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20dataset_summary%20%3E%20(schema)>)

<details>

<summary>

UpdateRequest {enabled, deletion\_protection, fields, 2 more }

</summary>

enabled: boolean

Whether to enable or disable log ingest for this dataset.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20update_request%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

deletion\_protection?: boolean

Set to <code>false</code> to allow deletion of this dataset.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20update_request%20%3E%20(schema)%20%3E%20(property)%20deletion_protection">Link to this property</a>

<details>

<summary>

fields?: Array&lt;Field&gt;

Controls which fields the API ingests after the update. Defaults to all available fields when absent.

</summary>

enabled: boolean

Whether the API includes this field in log ingest.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20update_request%20%3E%20(schema)%20%3E%20(property)%20fields%20%3E%20(items)%20%3E%20(property)%20enabled">Link to this property</a>

name: string

Field name in lowercase.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20update_request%20%3E%20(schema)%20%3E%20(property)%20fields%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20update_request%20%3E%20(schema)%20%3E%20(property)%20fields">Link to this property</a>

filter?: string| null

Optional Logpush filter predicate to restrict which events are ingested. If omitted, the existing filter is left unchanged. Set to an empty string (<code>""</code>) to clear the filter. Otherwise, replaces the dataset’s filter entirely. See <a href="https://developers.cloudflare.com/logs/reference/filters/">Logpush filters</a> for syntax and examples.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20update_request%20%3E%20(schema)%20%3E%20(property)%20filter">Link to this property</a>

filter\_attack\_traffic?: boolean

Whether to filter attack traffic from the Logpush job. If omitted, the existing setting is left unchanged. Supported datasets are <code>http_requests</code>, <code>firewall_events</code>, and <code>network_analytics_logs</code>.

<a href="#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20update_request%20%3E%20(schema)%20%3E%20(property)%20filter_attack_traffic">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logs.log_explorer.datasets%20%3E%20(model)%20update_request%20%3E%20(schema)>)

#### LogsLog ExplorerDatasetsAvailable

##### [List available account or zone datasets](https://developers.cloudflare.com/api/typescript/resources/logs/subresources/log_explorer/subresources/datasets/subresources/available/methods/list)

client.logs.logExplorer.datasets.available.list(AvailableListParams {account\_id, zone\_id } params?, RequestOptionsoptions?): SinglePage< [AvailableDataset](<https://developers.cloudflare.com/api/typescript/resources/logs#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_dataset%20%3E%20(schema)>) {dataset, object\_type, schema, timestamp\_field } >

GET/{accounts\_or\_zones}/{account\_or\_zone\_id}/logs/explorer/datasets/available

##### ModelsExpand Collapse

<details>

<summary>

AvailableDataset {dataset, object\_type, schema, timestamp\_field }

A dataset type that the account or zone can create.

</summary>

dataset: string

Dataset type name (e.g. <code>http_requests</code>).

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_dataset%20%3E%20(schema)%20%3E%20(property)%20dataset">Link to this property</a>

<details>

<summary>

object\_type: "account"| "zone"

Whether this dataset type is account-scoped or zone-scoped.

</summary>

One of the following:

"account"

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_dataset%20%3E%20(schema)%20%3E%20(property)%20object_type%20%3E%20(member)%200">Link to this property</a>

"zone"

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_dataset%20%3E%20(schema)%20%3E%20(property)%20object_type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_dataset%20%3E%20(schema)%20%3E%20(property)%20object_type">Link to this property</a>

<details>

<summary>

schema: Schema {properties, required, type }

JSON Schema that describes the fields this dataset exposes.

</summary>

properties?: Record&lt;string, unknown&gt;

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_dataset%20%3E%20(schema)%20%3E%20(property)%20schema%20%3E%20(property)%20properties">Link to this property</a>

required?: Array&lt;string&gt;

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_dataset%20%3E%20(schema)%20%3E%20(property)%20schema%20%3E%20(property)%20required">Link to this property</a>

type?: "object"

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_dataset%20%3E%20(schema)%20%3E%20(property)%20schema%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_dataset%20%3E%20(schema)%20%3E%20(property)%20schema">Link to this property</a>

timestamp\_field: string

The primary timestamp field name for this dataset.

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_dataset%20%3E%20(schema)%20%3E%20(property)%20timestamp_field">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_dataset%20%3E%20(schema)>)

<details>

<summary>

AvailableList {errors, messages, success, result }

</summary>

<details>

<summary>

errors: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)">ResponseInfo</a> {code, message, documentation\_url, source } &gt;

</summary>

code: number

minimum1000

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20code">Link to this property</a>

message: string

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url?: string

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source?: Source {pointer }

</summary>

pointer?: string

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_list%20%3E%20(schema)%20%3E%20(property)%20errors">Link to this property</a>

messages: Array&lt;string&gt;

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_list%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

success: boolean

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_list%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

<details>

<summary>

result?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/logs#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_dataset%20%3E%20(schema)">AvailableDataset</a> {dataset, object\_type, schema, timestamp\_field } &gt;| null

</summary>

dataset: string

Dataset type name (e.g. <code>http_requests</code>).

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_dataset%20%3E%20(schema)%20%3E%20(property)%20dataset">Link to this property</a>

<details>

<summary>

object\_type: "account"| "zone"

Whether this dataset type is account-scoped or zone-scoped.

</summary>

One of the following:

"account"

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_dataset%20%3E%20(schema)%20%3E%20(property)%20object_type%20%3E%20(member)%200">Link to this property</a>

"zone"

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_dataset%20%3E%20(schema)%20%3E%20(property)%20object_type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_dataset%20%3E%20(schema)%20%3E%20(property)%20object_type">Link to this property</a>

<details>

<summary>

schema: Schema {properties, required, type }

JSON Schema that describes the fields this dataset exposes.

</summary>

properties?: Record&lt;string, unknown&gt;

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_dataset%20%3E%20(schema)%20%3E%20(property)%20schema%20%3E%20(property)%20properties">Link to this property</a>

required?: Array&lt;string&gt;

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_dataset%20%3E%20(schema)%20%3E%20(property)%20schema%20%3E%20(property)%20required">Link to this property</a>

type?: "object"

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_dataset%20%3E%20(schema)%20%3E%20(property)%20schema%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_dataset%20%3E%20(schema)%20%3E%20(property)%20schema">Link to this property</a>

timestamp\_field: string

The primary timestamp field name for this dataset.

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_dataset%20%3E%20(schema)%20%3E%20(property)%20timestamp_field">Link to this property</a>

</details>

<a href="#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_list%20%3E%20(schema)%20%3E%20(property)%20result">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logs.log_explorer.datasets.available%20%3E%20(model)%20available_list%20%3E%20(schema)>)

#### LogsControl

#### LogsControlRetention

##### [Get log retention flag](https://developers.cloudflare.com/api/typescript/resources/logs/subresources/control/subresources/retention/methods/get)

client.logs.control.retention.get(RetentionGetParams {zone\_id } params, RequestOptionsoptions?): [RetentionGetResponse](<https://developers.cloudflare.com/api/typescript/resources/logs#(resource)%20logs.control.retention%20%3E%20(model)%20retention_get_response%20%3E%20(schema)>) {flag } | null

GET/zones/{zone\_id}/logs/control/retention/flag

##### [Update log retention flag](https://developers.cloudflare.com/api/typescript/resources/logs/subresources/control/subresources/retention/methods/create)

client.logs.control.retention.create(RetentionCreateParams {zone\_id, flag } params, RequestOptionsoptions?): [RetentionCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/logs#(resource)%20logs.control.retention%20%3E%20(model)%20retention_create_response%20%3E%20(schema)>) {flag } | null

POST/zones/{zone\_id}/logs/control/retention/flag

##### ModelsExpand Collapse

<details>

<summary>

RetentionGetResponse {flag }

</summary>

flag?: boolean

The log retention flag for Logpull API.

<a href="#(resource)%20logs.control.retention%20%3E%20(model)%20retention_get_response%20%3E%20(schema)%20%3E%20(property)%20flag">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logs.control.retention%20%3E%20(model)%20retention_get_response%20%3E%20(schema)>)

<details>

<summary>

RetentionCreateResponse {flag }

</summary>

flag?: boolean

The log retention flag for Logpull API.

<a href="#(resource)%20logs.control.retention%20%3E%20(model)%20retention_create_response%20%3E%20(schema)%20%3E%20(property)%20flag">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logs.control.retention%20%3E%20(model)%20retention_create_response%20%3E%20(schema)>)

#### LogsControlCmb

#### LogsControlCmbConfig

##### [Get CMB config](https://developers.cloudflare.com/api/typescript/resources/logs/subresources/control/subresources/cmb/subresources/config/methods/get)

client.logs.control.cmb.config.get(ConfigGetParams {account\_id } params, RequestOptionsoptions?): [CmbConfig](<https://developers.cloudflare.com/api/typescript/resources/logs#(resource)%20logs.control.cmb.config%20%3E%20(model)%20cmb_config%20%3E%20(schema)>) {allow\_out\_of\_region\_access, regions } | null

GET/accounts/{account\_id}/logs/control/cmb/config

##### [Update CMB config](https://developers.cloudflare.com/api/typescript/resources/logs/subresources/control/subresources/cmb/subresources/config/methods/create)

client.logs.control.cmb.config.create(ConfigCreateParams {account\_id, allow\_out\_of\_region\_access, regions } params, RequestOptionsoptions?): [CmbConfig](<https://developers.cloudflare.com/api/typescript/resources/logs#(resource)%20logs.control.cmb.config%20%3E%20(model)%20cmb_config%20%3E%20(schema)>) {allow\_out\_of\_region\_access, regions } | null

POST/accounts/{account\_id}/logs/control/cmb/config

##### [Delete CMB config](https://developers.cloudflare.com/api/typescript/resources/logs/subresources/control/subresources/cmb/subresources/config/methods/delete)

client.logs.control.cmb.config.delete(ConfigDeleteParams {account\_id } params, RequestOptionsoptions?): [ConfigDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/logs#(resource)%20logs.control.cmb.config%20%3E%20(model)%20config_delete_response%20%3E%20(schema)>)| null

DELETE/accounts/{account\_id}/logs/control/cmb/config

##### ModelsExpand Collapse

<details>

<summary>

CmbConfig {allow\_out\_of\_region\_access, regions }

</summary>

allow\_out\_of\_region\_access?: boolean

Allow out of region access

<a href="#(resource)%20logs.control.cmb.config%20%3E%20(model)%20cmb_config%20%3E%20(schema)%20%3E%20(property)%20allow_out_of_region_access">Link to this property</a>

regions?: string

Name of the region.

maxLength256

<a href="#(resource)%20logs.control.cmb.config%20%3E%20(model)%20cmb_config%20%3E%20(schema)%20%3E%20(property)%20regions">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logs.control.cmb.config%20%3E%20(model)%20cmb_config%20%3E%20(schema)>)

ConfigDeleteResponse = unknown

[Link to this property](<#(resource)%20logs.control.cmb.config%20%3E%20(model)%20config_delete_response%20%3E%20(schema)>)

#### LogsRayID

##### [Get logs RayIDs](https://developers.cloudflare.com/api/typescript/resources/logs/subresources/rayid/methods/get)

client.logs.RayID.get(stringRayID, RayIDGetParams {zone\_id, fields, timestamps } params, RequestOptionsoptions?): [RayIDGetResponse](<https://developers.cloudflare.com/api/typescript/resources/logs#(resource)%20logs.rayid%20%3E%20(model)%20rayid_get_response%20%3E%20(schema)>)

GET/zones/{zone\_id}/logs/rayids/{ray\_id}

##### ModelsExpand Collapse

<details>

<summary>

RayIDGetResponse = string| unknown

</summary>

One of the following:

string

<a href="#(resource)%20logs.rayid%20%3E%20(model)%20rayid_get_response%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

unknown

<a href="#(resource)%20logs.rayid%20%3E%20(model)%20rayid_get_response%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logs.rayid%20%3E%20(model)%20rayid_get_response%20%3E%20(schema)>)

#### LogsReceived

##### [Get logs received](https://developers.cloudflare.com/api/typescript/resources/logs/subresources/received/methods/get)

client.logs.received.get(ReceivedGetParams {zone\_id, end, count, 4 more } params, RequestOptionsoptions?): [ReceivedGetResponse](<https://developers.cloudflare.com/api/typescript/resources/logs#(resource)%20logs.received%20%3E%20(model)%20received_get_response%20%3E%20(schema)>)

GET/zones/{zone\_id}/logs/received

##### ModelsExpand Collapse

<details>

<summary>

ReceivedGetResponse = string| unknown

</summary>

One of the following:

string

<a href="#(resource)%20logs.received%20%3E%20(model)%20received_get_response%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

unknown

<a href="#(resource)%20logs.received%20%3E%20(model)%20received_get_response%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logs.received%20%3E%20(model)%20received_get_response%20%3E%20(schema)>)

#### LogsReceivedFields

##### [List fields](https://developers.cloudflare.com/api/typescript/resources/logs/subresources/received/subresources/fields/methods/get)

client.logs.received.fields.get(FieldGetParams {zone\_id } params, RequestOptionsoptions?): [FieldGetResponse](<https://developers.cloudflare.com/api/typescript/resources/logs#(resource)%20logs.received.fields%20%3E%20(model)%20field_get_response%20%3E%20(schema)>) {key }

GET/zones/{zone\_id}/logs/received/fields

##### ModelsExpand Collapse

<details>

<summary>

FieldGetResponse {key }

</summary>

key?: string

<a href="#(resource)%20logs.received.fields%20%3E%20(model)%20field_get_response%20%3E%20(schema)%20%3E%20(property)%20key">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logs.received.fields%20%3E%20(model)%20field_get_response%20%3E%20(schema)>)