---
title: Logpush
---

[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**

# Logpush

#### LogpushDatasets

#### LogpushDatasetsFields

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

client.logpush.datasets.fields.get("access\_requests"| "account\_abuse\_protection\_events"| "audit\_logs"| 34 moredatasetID, FieldGetParams {account\_id, zone\_id } params?, RequestOptionsoptions?): [FieldGetResponse](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.datasets.fields%20%3E%20(model)%20field_get_response%20%3E%20(schema)>)

GET/{accounts\_or\_zones}/{account\_or\_zone\_id}/logpush/datasets/{dataset\_id}/fields

##### ModelsExpand Collapse

FieldGetResponse = Record<string, string>

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

#### LogpushDatasetsJobs

##### [List Logpush jobs for a dataset](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/datasets/subresources/jobs/methods/get)

client.logpush.datasets.jobs.get("access\_requests"| "account\_abuse\_protection\_events"| "audit\_logs"| 34 moredatasetID, JobGetParams {account\_id, zone\_id } params?, RequestOptionsoptions?): SinglePage< [LogpushJob](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)>) {id, dataset, destination\_conf, 13 more } | null>

GET/{accounts\_or\_zones}/{account\_or\_zone\_id}/logpush/datasets/{dataset\_id}/jobs

#### LogpushEdge

##### [List Instant Logs jobs](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/edge/methods/get)

client.logpush.edge.get(EdgeGetParams {zone\_id } params, RequestOptionsoptions?): SinglePage< [InstantLogpushJob](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.edge%20%3E%20(model)%20instant_logpush_job%20%3E%20(schema)>) {destination\_conf, fields, filter, 2 more } | null>

GET/zones/{zone\_id}/logpush/edge/jobs

##### [Create Instant Logs job](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/edge/methods/create)

client.logpush.edge.create(EdgeCreateParams {zone\_id, fields, filter, sample } params, RequestOptionsoptions?): [InstantLogpushJob](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.edge%20%3E%20(model)%20instant_logpush_job%20%3E%20(schema)>) {destination\_conf, fields, filter, 2 more } | null

POST/zones/{zone\_id}/logpush/edge/jobs

##### ModelsExpand Collapse

<details>

<summary>

InstantLogpushJob {destination\_conf, fields, filter, 2 more }

</summary>

destination\_conf?: string

Unique WebSocket address that will receive messages from Cloudflare’s edge.

formaturi

maxLength4096

<a href="#(resource)%20logpush.edge%20%3E%20(model)%20instant_logpush_job%20%3E%20(schema)%20%3E%20(property)%20destination_conf">Link to this property</a>

fields?: string

Comma-separated list of fields.

<a href="#(resource)%20logpush.edge%20%3E%20(model)%20instant_logpush_job%20%3E%20(schema)%20%3E%20(property)%20fields">Link to this property</a>

filter?: string

Filters to drill down into specific events.

<a href="#(resource)%20logpush.edge%20%3E%20(model)%20instant_logpush_job%20%3E%20(schema)%20%3E%20(property)%20filter">Link to this property</a>

sample?: number

The sample parameter is the sample rate of the records set by the client: “sample”: 1 is 100% of records “sample”: 10 is 10% and so on.

<a href="#(resource)%20logpush.edge%20%3E%20(model)%20instant_logpush_job%20%3E%20(schema)%20%3E%20(property)%20sample">Link to this property</a>

session\_id?: string

Unique session id of the job.

<a href="#(resource)%20logpush.edge%20%3E%20(model)%20instant_logpush_job%20%3E%20(schema)%20%3E%20(property)%20session_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logpush.edge%20%3E%20(model)%20instant_logpush_job%20%3E%20(schema)>)

#### LogpushJobs

##### [List Logpush jobs](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/jobs/methods/list)

client.logpush.jobs.list(JobListParams {account\_id, zone\_id } params?, RequestOptionsoptions?): SinglePage< [LogpushJob](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)>) {id, dataset, destination\_conf, 13 more } | null>

GET/{accounts\_or\_zones}/{account\_or\_zone\_id}/logpush/jobs

##### [Get Logpush job details](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/jobs/methods/get)

client.logpush.jobs.get(numberjobID, JobGetParams {account\_id, zone\_id } params?, RequestOptionsoptions?): [LogpushJob](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)>) {id, dataset, destination\_conf, 13 more } | null

GET/{accounts\_or\_zones}/{account\_or\_zone\_id}/logpush/jobs/{job\_id}

##### [Create Logpush job](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/jobs/methods/create)

client.logpush.jobs.create(JobCreateParams {destination\_conf, account\_id, zone\_id, 13 more } params, RequestOptionsoptions?): [LogpushJob](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)>) {id, dataset, destination\_conf, 13 more } | null

POST/{accounts\_or\_zones}/{account\_or\_zone\_id}/logpush/jobs

##### [Update Logpush job](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/jobs/methods/update)

client.logpush.jobs.update(numberjobID, JobUpdateParams {account\_id, zone\_id, destination\_conf, 12 more } params, RequestOptionsoptions?): [LogpushJob](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)>) {id, dataset, destination\_conf, 13 more } | null

PUT/{accounts\_or\_zones}/{account\_or\_zone\_id}/logpush/jobs/{job\_id}

##### [Delete Logpush job](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/jobs/methods/delete)

client.logpush.jobs.delete(numberjobID, JobDeleteParams {account\_id, zone\_id } params?, RequestOptionsoptions?): [JobDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.jobs%20%3E%20(model)%20job_delete_response%20%3E%20(schema)>) {id }

DELETE/{accounts\_or\_zones}/{account\_or\_zone\_id}/logpush/jobs/{job\_id}

##### ModelsExpand Collapse

<details>

<summary>

LogpushJob {id, dataset, destination\_conf, 13 more }

</summary>

id?: number

Unique id of the job.

minimum1

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

dataset?: "access\_requests"| "account\_abuse\_protection\_events"| "audit\_logs"| 34 more| null

Name of the dataset. A list of supported datasets can be found on the <a href="https://developers.cloudflare.com/logs/reference/log-fields/">Developer Docs</a>.

</summary>

One of the following:

"access\_requests"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%200">Link to this property</a>

"account\_abuse\_protection\_events"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%201">Link to this property</a>

"audit\_logs"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%202">Link to this property</a>

"audit\_logs\_v2"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%203">Link to this property</a>

"biso\_user\_actions"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%204">Link to this property</a>

"casb\_findings"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%205">Link to this property</a>

"device\_posture\_results"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%206">Link to this property</a>

"dex\_application\_tests"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%207">Link to this property</a>

"dex\_device\_state\_events"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%208">Link to this property</a>

"dlp\_forensic\_copies"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%209">Link to this property</a>

"dns\_firewall\_logs"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2010">Link to this property</a>

"dns\_logs"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2011">Link to this property</a>

"email\_security\_alerts"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2012">Link to this property</a>

"email\_security\_post\_delivery\_events"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2013">Link to this property</a>

"firewall\_events"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2014">Link to this property</a>

"gateway\_dns"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2015">Link to this property</a>

"gateway\_http"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2016">Link to this property</a>

"gateway\_network"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2017">Link to this property</a>

"http\_requests"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2018">Link to this property</a>

"ipsec\_logs"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2019">Link to this property</a>

"magic\_bgp\_logs"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2020">Link to this property</a>

"magic\_ids\_detections"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2021">Link to this property</a>

"mcp\_portal\_logs"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2022">Link to this property</a>

"mnm\_flow\_logs"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2023">Link to this property</a>

"nel\_reports"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2024">Link to this property</a>

"network\_analytics\_logs"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2025">Link to this property</a>

"page\_shield\_events"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2026">Link to this property</a>

"sinkhole\_http\_logs"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2027">Link to this property</a>

"spectrum\_events"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2028">Link to this property</a>

"ssh\_logs"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2029">Link to this property</a>

"turnstile\_events"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2030">Link to this property</a>

"warp\_config\_changes"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2031">Link to this property</a>

"warp\_toggle\_changes"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2032">Link to this property</a>

"websocket\_analytics"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2033">Link to this property</a>

"workers\_trace\_events"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2034">Link to this property</a>

"zaraz\_events"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2035">Link to this property</a>

"zero\_trust\_network\_sessions"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset%20%3E%20(member)%2036">Link to this property</a>

</details>

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20dataset">Link to this property</a>

destination\_conf?: string

Uniquely identifies a resource (such as an s3 bucket) where data. will be pushed. Additional configuration parameters supported by the destination may be included.

formaturi

maxLength4096

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20destination_conf">Link to this property</a>

enabled?: boolean

Flag that indicates if the job is enabled.

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

error\_message?: string| null

If not null, the job is currently failing. Failures are usually. repetitive (example: no permissions to write to destination bucket). Only the last failure is recorded. On successful execution of a job the error\_message and last\_error are set to null.

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20error_message">Link to this property</a>

filter\_attack\_traffic?: boolean

When true, excludes DDoS attack traffic from logs. This option is supported for the <code>http_requests</code>, <code>firewall_events</code>, and <code>network_analytics_logs</code> datasets.

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20filter_attack_traffic">Link to this property</a>

<details>

<summary>

Deprecatedfrequency?: "high"| "low"| null

This field is deprecated. Please use <code>max_upload_*</code> parameters instead. . The frequency at which Cloudflare sends batches of logs to your destination. Setting frequency to high sends your logs in larger quantities of smaller files. Setting frequency to low sends logs in smaller quantities of larger files.

</summary>

One of the following:

"high"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20frequency%20%3E%20(member)%200">Link to this property</a>

"low"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20frequency%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20frequency">Link to this property</a>

<details>

<summary>

kind?: ""| "edge"

The kind parameter (optional) is used to differentiate between Logpush and Edge Log Delivery jobs (when supported by the dataset).

</summary>

One of the following:

""

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20kind%20%3E%20(member)%200">Link to this property</a>

"edge"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20kind%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20kind">Link to this property</a>

last\_complete?: string| null

Records the last time for which logs have been successfully pushed. If the last successful push was for logs range 2018-07-23T10:00:00Z to 2018-07-23T10:01:00Z then the value of this field will be 2018-07-23T10:01:00Z. If the job has never run or has just been enabled and hasn’t run yet then the field will be empty.

formatdate-time

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20last_complete">Link to this property</a>

last\_error?: string| null

Records the last time the job failed. If not null, the job is currently. failing. If null, the job has either never failed or has run successfully at least once since last failure. See also the error\_message field.

formatdate-time

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20last_error">Link to this property</a>

Deprecatedlogpull\_options?: string| null

This field is deprecated. Use <code>output_options</code> instead. Configuration string. It specifies things like requested fields and timestamp formats. If migrating from the logpull api, copy the url (full url or just the query string) of your call here, and logpush will keep on making this call for you, setting start and end times appropriately.

formaturi-reference

maxLength4096

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20logpull_options">Link to this property</a>

<details>

<summary>

max\_upload\_bytes?: 0| number| null

The maximum uncompressed file size of a batch of logs. This setting value must be between <code>5 MB</code> and <code>1 GB</code>, or <code>0</code> to disable it. Note that you cannot set a minimum file size; this means that log files may be much smaller than this batch size.

</summary>

One of the following:

<details>

<summary>

0

</summary>

0

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20max_upload_bytes%20%3E%20(variant)%200%20%3E%20(member)%200">Link to this property</a>

</details>

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20max_upload_bytes%20%3E%20(variant)%200">Link to this property</a>

number

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20max_upload_bytes%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20max_upload_bytes">Link to this property</a>

<details>

<summary>

max\_upload\_interval\_seconds?: 0| number| null

The maximum interval in seconds for log batches. This setting must be between 30 and 300 seconds (5 minutes), or <code>0</code> to disable it. Note that you cannot specify a minimum interval for log batches; this means that log files may be sent in shorter intervals than this.

</summary>

One of the following:

<details>

<summary>

0

</summary>

0

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20max_upload_interval_seconds%20%3E%20(variant)%200%20%3E%20(member)%200">Link to this property</a>

</details>

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20max_upload_interval_seconds%20%3E%20(variant)%200">Link to this property</a>

number

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20max_upload_interval_seconds%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20max_upload_interval_seconds">Link to this property</a>

<details>

<summary>

max\_upload\_records?: 0| number| null

The maximum number of log lines per batch. This setting must be between 1000 and 1,000,000 lines, or <code>0</code> to disable it. Note that you cannot specify a minimum number of log lines per batch; this means that log files may contain many fewer lines than this.

</summary>

One of the following:

<details>

<summary>

0

</summary>

0

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20max_upload_records%20%3E%20(variant)%200%20%3E%20(member)%200">Link to this property</a>

</details>

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20max_upload_records%20%3E%20(variant)%200">Link to this property</a>

number

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20max_upload_records%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20max_upload_records">Link to this property</a>

name?: string| null

Optional human readable job name. Not unique. Cloudflare suggests. that you set this to a meaningful string, like the domain name, to make it easier to identify your job.

maxLength512

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

output\_options?: <a href="https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)">OutputOptions</a> {batch\_prefix, batch\_suffix, CVE-2021-44228, 10 more } | null

The structured replacement for <code>logpull_options</code>. When including this field, the <code>logpull_option</code> field will be ignored.

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20output_options">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)>)

<details>

<summary>

OutputOptions {batch\_prefix, batch\_suffix, CVE-2021-44228, 10 more }

The structured replacement for <code>logpull_options</code>. When including this field, the <code>logpull_option</code> field will be ignored.

</summary>

batch\_prefix?: string| null

String to be prepended before each batch.

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20batch_prefix">Link to this property</a>

batch\_suffix?: string| null

String to be appended after each batch.

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20batch_suffix">Link to this property</a>

"CVE-2021-44228"?: boolean| null

If set to true, will cause all occurrences of <code>${</code> in the generated files to be replaced with <code>x{</code>.

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20CVE-2021-44228">Link to this property</a>

field\_delimiter?: string| null

String to join fields. This field be ignored when <code>record_template</code> is set.

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20field_delimiter">Link to this property</a>

field\_names?: Array&lt;string&gt;

List of field names to be included in the Logpush output. For the moment, there is no option to add all fields at once, so you must specify all the fields names you are interested in.

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20field_names">Link to this property</a>

merge\_subrequests?: boolean| null

If set to true, subrequests will be merged into the parent request. Only supported for the <code>http_requests</code> dataset. Not supported for account-scoped jobs.

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20merge_subrequests">Link to this property</a>

<details>

<summary>

output\_type?: "ndjson"| "csv"

Specifies the output type, such as <code>ndjson</code> or <code>csv</code>. This sets default values for the rest of the settings, depending on the chosen output type. Some formatting rules, like string quoting, are different between output types.

</summary>

One of the following:

"ndjson"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20output_type%20%3E%20(member)%200">Link to this property</a>

"csv"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20output_type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20output_type">Link to this property</a>

record\_delimiter?: string| null

String to be inserted in-between the records as separator.

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20record_delimiter">Link to this property</a>

record\_prefix?: string| null

String to be prepended before each record.

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20record_prefix">Link to this property</a>

record\_suffix?: string| null

String to be appended after each record.

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20record_suffix">Link to this property</a>

record\_template?: string| null

String to use as template for each record instead of the default json key value mapping. All fields used in the template must be present in <code>field_names</code> as well, otherwise they will end up as null. Format as a Go <code>text/template</code> without any standard functions, like conditionals, loops, sub-templates, etc.

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20record_template">Link to this property</a>

sample\_rate?: number| null

Specifies the sampling rate as a floating number greater than 0 and at most 1. Sampling is applied on top of filtering, and regardless of the current <code>sample_interval</code> of the data.

formatfloat

exclusiveMinimum

maximum1

minimum0

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20sample_rate">Link to this property</a>

<details>

<summary>

timestamp\_format?: "unixnano"| "unix"| "rfc3339"| 2 more

String to specify the format for timestamps, such as <code>unixnano</code>, <code>unix</code>, <code>rfc3339</code>, <code>rfc3339ms</code> or <code>rfc3339ns</code>.

</summary>

One of the following:

"unixnano"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20timestamp_format%20%3E%20(member)%200">Link to this property</a>

"unix"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20timestamp_format%20%3E%20(member)%201">Link to this property</a>

"rfc3339"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20timestamp_format%20%3E%20(member)%202">Link to this property</a>

"rfc3339ms"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20timestamp_format%20%3E%20(member)%203">Link to this property</a>

"rfc3339ns"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20timestamp_format%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20timestamp_format">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)>)

<details>

<summary>

JobDeleteResponse {id }

</summary>

id?: number

Unique id of the job.

minimum1

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20job_delete_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logpush.jobs%20%3E%20(model)%20job_delete_response%20%3E%20(schema)>)

#### LogpushOwnership

##### [Get ownership challenge](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/ownership/methods/create)

client.logpush.ownership.create(OwnershipCreateParams {destination\_conf, account\_id, zone\_id } params, RequestOptionsoptions?): [OwnershipCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.ownership%20%3E%20(model)%20ownership_create_response%20%3E%20(schema)>) {filename, message, valid } | null

POST/{accounts\_or\_zones}/{account\_or\_zone\_id}/logpush/ownership

##### [Validate ownership challenge](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/ownership/methods/validate)

client.logpush.ownership.validate(OwnershipValidateParams {destination\_conf, ownership\_challenge, account\_id, zone\_id } params, RequestOptionsoptions?): [OwnershipValidation](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.ownership%20%3E%20(model)%20ownership_validation%20%3E%20(schema)>) {valid } | null

POST/{accounts\_or\_zones}/{account\_or\_zone\_id}/logpush/ownership/validate

##### ModelsExpand Collapse

<details>

<summary>

OwnershipValidation {valid }

</summary>

valid?: boolean

<a href="#(resource)%20logpush.ownership%20%3E%20(model)%20ownership_validation%20%3E%20(schema)%20%3E%20(property)%20valid">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logpush.ownership%20%3E%20(model)%20ownership_validation%20%3E%20(schema)>)

<details>

<summary>

OwnershipCreateResponse {filename, message, valid }

</summary>

filename?: string

<a href="#(resource)%20logpush.ownership%20%3E%20(model)%20ownership_create_response%20%3E%20(schema)%20%3E%20(property)%20filename">Link to this property</a>

message?: string

<a href="#(resource)%20logpush.ownership%20%3E%20(model)%20ownership_create_response%20%3E%20(schema)%20%3E%20(property)%20message">Link to this property</a>

valid?: boolean

<a href="#(resource)%20logpush.ownership%20%3E%20(model)%20ownership_create_response%20%3E%20(schema)%20%3E%20(property)%20valid">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logpush.ownership%20%3E%20(model)%20ownership_create_response%20%3E%20(schema)>)

#### LogpushTransformers

##### [List transformers](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/transformers/methods/list)

client.logpush.transformers.list(TransformerListParams {account\_id } params, RequestOptionsoptions?): SinglePage< [TransformerListResponse](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_list_response%20%3E%20(schema)>) {id, associated\_jobs, created\_at, 4 more } >

GET/accounts/{account\_id}/logpush/transformers

##### [Get transformer](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/transformers/methods/get)

client.logpush.transformers.get(numbertransformerID, TransformerGetParams {account\_id } params, RequestOptionsoptions?): [TransformerGetResponse](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_get_response%20%3E%20(schema)>) {id, associated\_jobs, created\_at, 4 more }

GET/accounts/{account\_id}/logpush/transformers/{transformer\_id}

##### [Create transformer](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/transformers/methods/create)

client.logpush.transformers.create(TransformerCreateParams {account\_id, code, name, description } params, RequestOptionsoptions?): [TransformerCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_create_response%20%3E%20(schema)>) {id, associated\_jobs, created\_at, 4 more }

POST/accounts/{account\_id}/logpush/transformers

##### [Update transformer](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/transformers/methods/update)

client.logpush.transformers.update(numbertransformerID, TransformerUpdateParams {account\_id, name, code, description } params, RequestOptionsoptions?): [TransformerUpdateResponse](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_update_response%20%3E%20(schema)>) {id, associated\_jobs, created\_at, 4 more }

PUT/accounts/{account\_id}/logpush/transformers/{transformer\_id}

##### [Delete transformer](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/transformers/methods/delete)

client.logpush.transformers.delete(numbertransformerID, TransformerDeleteParams {account\_id } params, RequestOptionsoptions?): [TransformerDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_delete_response%20%3E%20(schema)>) {id }

DELETE/accounts/{account\_id}/logpush/transformers/{transformer\_id}

##### [Preview transformer](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/transformers/methods/preview)

client.logpush.transformers.preview(TransformerPreviewParams {account\_id, input, sql } params, RequestOptionsoptions?): SinglePage< [TransformerPreviewResponse](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_preview_response%20%3E%20(schema)>)>

POST/accounts/{account\_id}/logpush/transformers/preview

##### ModelsExpand Collapse

<details>

<summary>

TransformerListResponse {id, associated\_jobs, created\_at, 4 more }

</summary>

id?: number

The transformer ID.

minimum1

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

associated\_jobs?: Array&lt;AssociatedJob&gt;

Logpush jobs that reference this transformer.

</summary>

id?: number

The logpush job ID.

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_list_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

name?: string

The logpush job destination name.

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_list_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

object\_tag?: string

The zone or account tag.

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_list_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20object_tag">Link to this property</a>

<details>

<summary>

object\_type?: "zone"| "account"

Whether the job is zone-scoped or account-scoped.

</summary>

One of the following:

"zone"

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_list_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20object_type%20%3E%20(member)%200">Link to this property</a>

"account"

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_list_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20object_type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_list_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20object_type">Link to this property</a>

</details>

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_list_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs">Link to this property</a>

created\_at?: string

When the transformer was created (RFC 3339).

formatdate-time

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_list_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

dataset?: string| null

The dataset this transformer operates on, derived from the SQL query’s FROM clause. Informational only. May be absent if the dataset cannot be determined from the query.

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_list_response%20%3E%20(schema)%20%3E%20(property)%20dataset">Link to this property</a>

description?: string

Optional customer-provided description.

maxLength4096

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_list_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

name?: string

Customer-provided name for identification.

maxLength255

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_list_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

updated\_at?: string

When the transformer was last modified (RFC 3339).

formatdate-time

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_list_response%20%3E%20(schema)%20%3E%20(property)%20updated_at">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_list_response%20%3E%20(schema)>)

<details>

<summary>

TransformerGetResponse {id, associated\_jobs, created\_at, 4 more }

</summary>

id?: number

The transformer ID.

minimum1

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_get_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

associated\_jobs?: Array&lt;AssociatedJob&gt;

Logpush jobs that reference this transformer.

</summary>

id?: number

The logpush job ID.

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_get_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

name?: string

The logpush job destination name.

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_get_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

object\_tag?: string

The zone or account tag.

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_get_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20object_tag">Link to this property</a>

<details>

<summary>

object\_type?: "zone"| "account"

Whether the job is zone-scoped or account-scoped.

</summary>

One of the following:

"zone"

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_get_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20object_type%20%3E%20(member)%200">Link to this property</a>

"account"

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_get_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20object_type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_get_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20object_type">Link to this property</a>

</details>

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_get_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs">Link to this property</a>

created\_at?: string

When the transformer was created (RFC 3339).

formatdate-time

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_get_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

dataset?: string| null

The dataset this transformer operates on, derived from the SQL query’s FROM clause. Informational only. May be absent if the dataset cannot be determined from the query.

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_get_response%20%3E%20(schema)%20%3E%20(property)%20dataset">Link to this property</a>

description?: string

Optional customer-provided description.

maxLength4096

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_get_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

name?: string

Customer-provided name for identification.

maxLength255

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_get_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

updated\_at?: string

When the transformer was last modified (RFC 3339).

formatdate-time

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_get_response%20%3E%20(schema)%20%3E%20(property)%20updated_at">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_get_response%20%3E%20(schema)>)

<details>

<summary>

TransformerCreateResponse {id, associated\_jobs, created\_at, 4 more }

</summary>

id?: number

The transformer ID.

minimum1

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_create_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

associated\_jobs?: Array&lt;AssociatedJob&gt;

Logpush jobs that reference this transformer.

</summary>

id?: number

The logpush job ID.

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_create_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

name?: string

The logpush job destination name.

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_create_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

object\_tag?: string

The zone or account tag.

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_create_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20object_tag">Link to this property</a>

<details>

<summary>

object\_type?: "zone"| "account"

Whether the job is zone-scoped or account-scoped.

</summary>

One of the following:

"zone"

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_create_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20object_type%20%3E%20(member)%200">Link to this property</a>

"account"

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_create_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20object_type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_create_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20object_type">Link to this property</a>

</details>

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_create_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs">Link to this property</a>

created\_at?: string

When the transformer was created (RFC 3339).

formatdate-time

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_create_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

dataset?: string| null

The dataset this transformer operates on, derived from the SQL query’s FROM clause. Informational only. May be absent if the dataset cannot be determined from the query.

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_create_response%20%3E%20(schema)%20%3E%20(property)%20dataset">Link to this property</a>

description?: string

Optional customer-provided description.

maxLength4096

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_create_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

name?: string

Customer-provided name for identification.

maxLength255

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_create_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

updated\_at?: string

When the transformer was last modified (RFC 3339).

formatdate-time

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_create_response%20%3E%20(schema)%20%3E%20(property)%20updated_at">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_create_response%20%3E%20(schema)>)

<details>

<summary>

TransformerUpdateResponse {id, associated\_jobs, created\_at, 4 more }

</summary>

id?: number

The transformer ID.

minimum1

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_update_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

associated\_jobs?: Array&lt;AssociatedJob&gt;

Logpush jobs that reference this transformer.

</summary>

id?: number

The logpush job ID.

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_update_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

name?: string

The logpush job destination name.

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_update_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

object\_tag?: string

The zone or account tag.

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_update_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20object_tag">Link to this property</a>

<details>

<summary>

object\_type?: "zone"| "account"

Whether the job is zone-scoped or account-scoped.

</summary>

One of the following:

"zone"

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_update_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20object_type%20%3E%20(member)%200">Link to this property</a>

"account"

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_update_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20object_type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_update_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs%20%3E%20(items)%20%3E%20(property)%20object_type">Link to this property</a>

</details>

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_update_response%20%3E%20(schema)%20%3E%20(property)%20associated_jobs">Link to this property</a>

created\_at?: string

When the transformer was created (RFC 3339).

formatdate-time

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_update_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

dataset?: string| null

The dataset this transformer operates on, derived from the SQL query’s FROM clause. Informational only. May be absent if the dataset cannot be determined from the query.

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_update_response%20%3E%20(schema)%20%3E%20(property)%20dataset">Link to this property</a>

description?: string

Optional customer-provided description.

maxLength4096

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_update_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

name?: string

Customer-provided name for identification.

maxLength255

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_update_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

updated\_at?: string

When the transformer was last modified (RFC 3339).

formatdate-time

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_update_response%20%3E%20(schema)%20%3E%20(property)%20updated_at">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_update_response%20%3E%20(schema)>)

<details>

<summary>

TransformerDeleteResponse {id }

</summary>

id?: number

The deleted transformer’s ID.

<a href="#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_delete_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_delete_response%20%3E%20(schema)>)

TransformerPreviewResponse = Record<string, unknown>

[Link to this property](<#(resource)%20logpush.transformers%20%3E%20(model)%20transformer_preview_response%20%3E%20(schema)>)

#### LogpushTransformersContent

##### [Get transformer content](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/transformers/subresources/content/methods/get)

client.logpush.transformers.content.get(numbertransformerID, ContentGetParams {account\_id, version\_id } params, RequestOptionsoptions?): [ContentGetResponse](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.transformers.content%20%3E%20(model)%20content_get_response%20%3E%20(schema)>) {content }

GET/accounts/{account\_id}/logpush/transformers/{transformer\_id}/content

##### ModelsExpand Collapse

<details>

<summary>

ContentGetResponse {content }

</summary>

content?: string

The SQL query content.

<a href="#(resource)%20logpush.transformers.content%20%3E%20(model)%20content_get_response%20%3E%20(schema)%20%3E%20(property)%20content">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logpush.transformers.content%20%3E%20(model)%20content_get_response%20%3E%20(schema)>)

#### LogpushTransformersVersions

##### [List transformer versions](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/transformers/subresources/versions/methods/list)

client.logpush.transformers.versions.list(numbertransformerID, VersionListParams {account\_id, limit } params, RequestOptionsoptions?): SinglePage< [VersionListResponse](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.transformers.versions%20%3E%20(model)%20version_list_response%20%3E%20(schema)>) {id, created\_at, version } >

GET/accounts/{account\_id}/logpush/transformers/{transformer\_id}/versions

##### ModelsExpand Collapse

<details>

<summary>

VersionListResponse {id, created\_at, version }

</summary>

id?: number

Unique identifier for this version.

formatint64

minimum1

<a href="#(resource)%20logpush.transformers.versions%20%3E%20(model)%20version_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created\_at?: string

When this version was created (RFC 3339).

formatdate-time

<a href="#(resource)%20logpush.transformers.versions%20%3E%20(model)%20version_list_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

version?: number

Sequential version number.

minimum1

<a href="#(resource)%20logpush.transformers.versions%20%3E%20(model)%20version_list_response%20%3E%20(schema)%20%3E%20(property)%20version">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logpush.transformers.versions%20%3E%20(model)%20version_list_response%20%3E%20(schema)>)

#### LogpushValidate

##### [Validate destination](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/validate/methods/destination)

client.logpush.validate.destination(ValidateDestinationParams {destination\_conf, account\_id, zone\_id } params, RequestOptionsoptions?): [ValidateDestinationResponse](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.validate%20%3E%20(model)%20validate_destination_response%20%3E%20(schema)>) {message, valid } | null

POST/{accounts\_or\_zones}/{account\_or\_zone\_id}/logpush/validate/destination

##### [Check destination exists](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/validate/methods/destination_exists)

client.logpush.validate.destinationExists(ValidateDestinationExistsParams {destination\_conf, account\_id, zone\_id } params, RequestOptionsoptions?): [ValidateDestinationExistsResponse](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.validate%20%3E%20(model)%20validate_destination_exists_response%20%3E%20(schema)>) {exists } | null

POST/{accounts\_or\_zones}/{account\_or\_zone\_id}/logpush/validate/destination/exists

##### [Validate origin](https://developers.cloudflare.com/api/typescript/resources/logpush/subresources/validate/methods/origin)

client.logpush.validate.origin(ValidateOriginParams {logpull\_options, account\_id, zone\_id } params, RequestOptionsoptions?): [ValidateOriginResponse](<https://developers.cloudflare.com/api/typescript/resources/logpush#(resource)%20logpush.validate%20%3E%20(model)%20validate_origin_response%20%3E%20(schema)>) {message, valid } | null

POST/{accounts\_or\_zones}/{account\_or\_zone\_id}/logpush/validate/origin

##### ModelsExpand Collapse

<details>

<summary>

ValidateDestinationResponse {message, valid }

</summary>

message?: string

<a href="#(resource)%20logpush.validate%20%3E%20(model)%20validate_destination_response%20%3E%20(schema)%20%3E%20(property)%20message">Link to this property</a>

valid?: boolean

<a href="#(resource)%20logpush.validate%20%3E%20(model)%20validate_destination_response%20%3E%20(schema)%20%3E%20(property)%20valid">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logpush.validate%20%3E%20(model)%20validate_destination_response%20%3E%20(schema)>)

<details>

<summary>

ValidateDestinationExistsResponse {exists }

</summary>

exists?: boolean

<a href="#(resource)%20logpush.validate%20%3E%20(model)%20validate_destination_exists_response%20%3E%20(schema)%20%3E%20(property)%20exists">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logpush.validate%20%3E%20(model)%20validate_destination_exists_response%20%3E%20(schema)>)

<details>

<summary>

ValidateOriginResponse {message, valid }

</summary>

message?: string

<a href="#(resource)%20logpush.validate%20%3E%20(model)%20validate_origin_response%20%3E%20(schema)%20%3E%20(property)%20message">Link to this property</a>

valid?: boolean

<a href="#(resource)%20logpush.validate%20%3E%20(model)%20validate_origin_response%20%3E%20(schema)%20%3E%20(property)%20valid">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logpush.validate%20%3E%20(model)%20validate_origin_response%20%3E%20(schema)>)