---
title: Jobs
---

[Skip to content](#%5Ftop) 

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

[Logpush](https://developers.cloudflare.com/api/typescript/resources/logpush)

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# Jobs

##### [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#%28resource%29%20logpush.jobs%20%3E%20%28model%29%20logpush%5Fjob%20%3E%20%28schema%29) { id, dataset, destination\_conf, 12 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#%28resource%29%20logpush.jobs%20%3E%20%28model%29%20logpush%5Fjob%20%3E%20%28schema%29) { id, dataset, destination\_conf, 12 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, 12 more } params, RequestOptionsoptions?): [LogpushJob](https://developers.cloudflare.com/api/typescript/resources/logpush#%28resource%29%20logpush.jobs%20%3E%20%28model%29%20logpush%5Fjob%20%3E%20%28schema%29) { id, dataset, destination\_conf, 12 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, 11 more } params, RequestOptionsoptions?): [LogpushJob](https://developers.cloudflare.com/api/typescript/resources/logpush#%28resource%29%20logpush.jobs%20%3E%20%28model%29%20logpush%5Fjob%20%3E%20%28schema%29) { id, dataset, destination\_conf, 12 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#%28resource%29%20logpush.jobs%20%3E%20%28model%29%20job%5Fdelete%5Fresponse%20%3E%20%28schema%29) { id } 

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

##### ModelsExpand Collapse 

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

id?: number

Unique id of the job.

minimum1

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 [Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/).

One of the following:

"access\_requests"

"account\_abuse\_protection\_events"

"audit\_logs"

"audit\_logs\_v2"

"biso\_user\_actions"

"casb\_findings"

"device\_posture\_results"

"dex\_application\_tests"

"dex\_device\_state\_events"

"dlp\_forensic\_copies"

"dns\_firewall\_logs"

"dns\_logs"

"email\_security\_alerts"

"email\_security\_post\_delivery\_events"

"firewall\_events"

"gateway\_dns"

"gateway\_http"

"gateway\_network"

"http\_requests"

"ipsec\_logs"

"magic\_bgp\_logs"

"magic\_ids\_detections"

"mcp\_portal\_logs"

"mnm\_flow\_logs"

"nel\_reports"

"network\_analytics\_logs"

"page\_shield\_events"

"sinkhole\_http\_logs"

"spectrum\_events"

"ssh\_logs"

"turnstile\_events"

"warp\_config\_changes"

"warp\_toggle\_changes"

"websocket\_analytics"

"workers\_trace\_events"

"zaraz\_events"

"zero\_trust\_network\_sessions"

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

enabled?: boolean

Flag that indicates if the job is enabled.

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.

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

This field is deprecated. Please use `max_upload_*` 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.

One of the following:

"high"

"low"

kind?: "" | "edge"

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

One of the following:

""

"edge"

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

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

Deprecatedlogpull\_options?: string | null

This field is deprecated. Use `output_options` 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

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

The maximum uncompressed file size of a batch of logs. This setting value must be between `5 MB` and `1 GB`, or `0` 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.

One of the following:

0

0

number

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 `0` 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.

One of the following:

0

0

number

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 `0` 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.

One of the following:

0

0

number

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

output\_options?: [OutputOptions](https://developers.cloudflare.com/api/typescript/resources/logpush#%28resource%29%20logpush.jobs%20%3E%20%28model%29%20output%5Foptions%20%3E%20%28schema%29) { batch\_prefix, batch\_suffix, CVE-2021-44228, 10 more } | null

The structured replacement for `logpull_options`. When including this field, the `logpull_option` field will be ignored.

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

The structured replacement for `logpull_options`. When including this field, the `logpull_option` field will be ignored.

batch\_prefix?: string | null

String to be prepended before each batch.

batch\_suffix?: string | null

String to be appended after each batch.

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

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

field\_delimiter?: string | null

String to join fields. This field be ignored when `record_template` is set.

field\_names?: Array<string\>

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.

merge\_subrequests?: boolean | null

If set to true, subrequests will be merged into the parent request. Only supported for the `http_requests` dataset.

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

Specifies the output type, such as `ndjson` or `csv`. 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.

One of the following:

"ndjson"

"csv"

record\_delimiter?: string | null

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

record\_prefix?: string | null

String to be prepended before each record.

record\_suffix?: string | null

String to be appended after each record.

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 `field_names` as well, otherwise they will end up as null. Format as a Go `text/template` without any standard functions, like conditionals, loops, sub-templates, etc.

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 `sample_interval` of the data.

formatfloat

exclusiveMinimum

maximum1

minimum0

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

String to specify the format for timestamps, such as `unixnano`, `unix`, `rfc3339`, `rfc3339ms` or `rfc3339ns`.

One of the following:

"unixnano"

"unix"

"rfc3339"

"rfc3339ms"

"rfc3339ns"

JobDeleteResponse { id } 

id?: number

Unique id of the job.

minimum1