---
title: Update Logpush job
---

[Skip to content](#_top)

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

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

[Jobs](https://developers.cloudflare.com/api/go/resources/logpush/subresources/jobs)

Copy Markdown

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

---

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

# Update Logpush job

client.Logpush.Jobs.Update(ctx, jobID, params) (\*[LogpushJob](<https://developers.cloudflare.com/api/go/resources/logpush#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)>), error)

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

Updates a Logpush job.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`Logs Write`

##### ParametersExpand Collapse

jobID int64

Unique id of the job.

minimum1

[Link to this property](<#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20job_id%20%3E%20(schema)>)

<details>

<summary>

params JobUpdateParams

</summary>

AccountID param.Field\[string]Optional

Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.

<a href="#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20account_id">Link to this property</a>

ZoneID param.Field\[string]Optional

Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

<a href="#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20zone_id">Link to this property</a>

DestinationConf param.Field\[string]Optional

Body param: 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(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20destination_conf">Link to this property</a>

Enabled param.Field\[bool]Optional

Body param: Flag that indicates if the job is enabled.

<a href="#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20enabled">Link to this property</a>

Filter param.Field\[string]Optional

Body param: The filters to select the events to include and/or remove from your logs. For more information, refer to <a href="https://developers.cloudflare.com/logs/reference/filters/">Filters</a>.

<a href="#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filter">Link to this property</a>

FilterAttackTraffic param.Field\[bool]Optional

Body param: 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(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20filter_attack_traffic">Link to this property</a>

<details>

<summary>

DeprecatedFrequency param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/logpush/subresources/jobs/methods/update#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20frequency%20%3E%20(schema)">JobUpdateParamsFrequency</a>]Optional

Body param: 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>

const JobUpdateParamsFrequencyHigh <a href="https://developers.cloudflare.com/api/go/resources/logpush/subresources/jobs/methods/update#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20frequency%20%3E%20(schema)">JobUpdateParamsFrequency</a> = "high"

<a href="#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20frequency%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const JobUpdateParamsFrequencyLow <a href="https://developers.cloudflare.com/api/go/resources/logpush/subresources/jobs/methods/update#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20frequency%20%3E%20(schema)">JobUpdateParamsFrequency</a> = "low"

<a href="#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20frequency%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20frequency">Link to this property</a>

<details>

<summary>

Kind param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/logpush/subresources/jobs/methods/update#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20kind%20%3E%20(schema)">JobUpdateParamsKind</a>]Optional

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

</summary>

const JobUpdateParamsKindEmpty <a href="https://developers.cloudflare.com/api/go/resources/logpush/subresources/jobs/methods/update#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20kind%20%3E%20(schema)">JobUpdateParamsKind</a> = ""

<a href="#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20kind%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const JobUpdateParamsKindEdge <a href="https://developers.cloudflare.com/api/go/resources/logpush/subresources/jobs/methods/update#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20kind%20%3E%20(schema)">JobUpdateParamsKind</a> = "edge"

<a href="#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20kind%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20kind">Link to this property</a>

DeprecatedLogpullOptions param.Field\[string]Optional

Body param: 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(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20logpull_options">Link to this property</a>

<details>

<summary>

MaxUploadBytes param.Field\[JobUpdateParamsMaxUploadBytes]Optional

Body param: 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>

type JobUpdateParamsMaxUploadBytes int64

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.

<a href="#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20max_upload_bytes%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

int64

<a href="#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20max_upload_bytes%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20max_upload_bytes">Link to this property</a>

<details>

<summary>

MaxUploadIntervalSeconds param.Field\[JobUpdateParamsMaxUploadIntervalSeconds]Optional

Body param: 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>

type JobUpdateParamsMaxUploadIntervalSeconds int64

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.

<a href="#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20max_upload_interval_seconds%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

int64

<a href="#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20max_upload_interval_seconds%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20max_upload_interval_seconds">Link to this property</a>

<details>

<summary>

MaxUploadRecords param.Field\[JobUpdateParamsMaxUploadRecords]Optional

Body param: 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>

type JobUpdateParamsMaxUploadRecords int64

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.

<a href="#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20max_upload_records%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

int64

<a href="#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20max_upload_records%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20max_upload_records">Link to this property</a>

Name param.Field\[string]Optional

Body param: 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(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20name">Link to this property</a>

OutputOptions param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/logpush#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)">OutputOptions</a>]Optional

Body param: 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(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20output_options">Link to this property</a>

OwnershipChallenge param.Field\[string]Optional

Body param: Ownership challenge token to prove destination ownership.

maxLength4096

<a href="#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ownership_challenge">Link to this property</a>

</details>

[Link to this property](<#(resource)%20logpush.jobs%20%3E%20(method)%20update%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type LogpushJob struct{…}

</summary>

ID int64Optional

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 LogpushJobDatasetOptional

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:

const LogpushJobDatasetAccessRequests LogpushJobDataset = "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>

const LogpushJobDatasetAccountAbuseProtectionEvents LogpushJobDataset = "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>

const LogpushJobDatasetAuditLogs LogpushJobDataset = "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>

const LogpushJobDatasetAuditLogsV2 LogpushJobDataset = "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>

const LogpushJobDatasetBISOUserActions LogpushJobDataset = "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>

const LogpushJobDatasetCasbFindings LogpushJobDataset = "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>

const LogpushJobDatasetDevicePostureResults LogpushJobDataset = "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>

const LogpushJobDatasetDEXApplicationTests LogpushJobDataset = "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>

const LogpushJobDatasetDEXDeviceStateEvents LogpushJobDataset = "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>

const LogpushJobDatasetDLPForensicCopies LogpushJobDataset = "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>

const LogpushJobDatasetDNSFirewallLogs LogpushJobDataset = "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>

const LogpushJobDatasetDNSLogs LogpushJobDataset = "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>

const LogpushJobDatasetEmailSecurityAlerts LogpushJobDataset = "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>

const LogpushJobDatasetEmailSecurityPostDeliveryEvents LogpushJobDataset = "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>

const LogpushJobDatasetFirewallEvents LogpushJobDataset = "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>

const LogpushJobDatasetGatewayDNS LogpushJobDataset = "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>

const LogpushJobDatasetGatewayHTTP LogpushJobDataset = "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>

const LogpushJobDatasetGatewayNetwork LogpushJobDataset = "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>

const LogpushJobDatasetHTTPRequests LogpushJobDataset = "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>

const LogpushJobDatasetIPSECLogs LogpushJobDataset = "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>

const LogpushJobDatasetMagicBGPLogs LogpushJobDataset = "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>

const LogpushJobDatasetMagicIDsDetections LogpushJobDataset = "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>

const LogpushJobDatasetMcpPortalLogs LogpushJobDataset = "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>

const LogpushJobDatasetMNMFlowLogs LogpushJobDataset = "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>

const LogpushJobDatasetNELReports LogpushJobDataset = "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>

const LogpushJobDatasetNetworkAnalyticsLogs LogpushJobDataset = "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>

const LogpushJobDatasetPageShieldEvents LogpushJobDataset = "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>

const LogpushJobDatasetSinkholeHTTPLogs LogpushJobDataset = "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>

const LogpushJobDatasetSpectrumEvents LogpushJobDataset = "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>

const LogpushJobDatasetSSHLogs LogpushJobDataset = "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>

const LogpushJobDatasetTurnstileEvents LogpushJobDataset = "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>

const LogpushJobDatasetWARPConfigChanges LogpushJobDataset = "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>

const LogpushJobDatasetWARPToggleChanges LogpushJobDataset = "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>

const LogpushJobDatasetWebsocketAnalytics LogpushJobDataset = "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>

const LogpushJobDatasetWorkersTraceEvents LogpushJobDataset = "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>

const LogpushJobDatasetZarazEvents LogpushJobDataset = "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>

const LogpushJobDatasetZeroTrustNetworkSessions LogpushJobDataset = "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>

DestinationConf stringOptional

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 boolOptional

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>

ErrorMessage stringOptional

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>

FilterAttackTraffic boolOptional

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 LogpushJobFrequencyOptional

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:

const LogpushJobFrequencyHigh LogpushJobFrequency = "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>

const LogpushJobFrequencyLow LogpushJobFrequency = "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 LogpushJobKindOptional

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:

const LogpushJobKindEmpty LogpushJobKind = ""

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

const LogpushJobKindEdge LogpushJobKind = "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>

LastComplete TimeOptional

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>

LastError TimeOptional

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>

DeprecatedLogpullOptions stringOptional

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>

MaxUploadBytes LogpushJobMaxUploadBytesOptional

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:

type LogpushJobMaxUploadBytes int64

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.

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

int64

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

MaxUploadIntervalSeconds LogpushJobMaxUploadIntervalSecondsOptional

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:

type LogpushJobMaxUploadIntervalSeconds int64

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.

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

int64

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

MaxUploadRecords LogpushJobMaxUploadRecordsOptional

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:

type LogpushJobMaxUploadRecords int64

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.

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

int64

<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 stringOptional

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>

<details>

<summary>

OutputOptions <a href="https://developers.cloudflare.com/api/go/resources/logpush#(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)">OutputOptions</a>Optional

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

</summary>

BatchPrefix stringOptional

String to be prepended before each batch.

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

BatchSuffix stringOptional

String to be appended after each batch.

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

Cve2021\_44228 boolOptional

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)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20output_options%20%2B%20(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>

FieldDelimiter stringOptional

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

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

FieldNames \[]stringOptional

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)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20output_options%20%2B%20(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20field_names">Link to this property</a>

MergeSubrequests boolOptional

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)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20output_options%20%2B%20(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>

OutputType OutputOptionsOutputTypeOptional

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:

const OutputOptionsOutputTypeNdjson OutputOptionsOutputType = "ndjson"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20output_options%20%2B%20(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>

const OutputOptionsOutputTypeCsv OutputOptionsOutputType = "csv"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20output_options%20%2B%20(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)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20output_options%20%2B%20(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20output_type">Link to this property</a>

RecordDelimiter stringOptional

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

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

RecordPrefix stringOptional

String to be prepended before each record.

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

RecordSuffix stringOptional

String to be appended after each record.

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

RecordTemplate stringOptional

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)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20output_options%20%2B%20(resource)%20logpush.jobs%20%3E%20(model)%20output_options%20%3E%20(schema)%20%3E%20(property)%20record_template">Link to this property</a>

SampleRate float64Optional

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)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20output_options%20%2B%20(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>

TimestampFormat OutputOptionsTimestampFormatOptional

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:

const OutputOptionsTimestampFormatUnixnano OutputOptionsTimestampFormat = "unixnano"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20output_options%20%2B%20(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>

const OutputOptionsTimestampFormatUnix OutputOptionsTimestampFormat = "unix"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20output_options%20%2B%20(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>

const OutputOptionsTimestampFormatRfc3339 OutputOptionsTimestampFormat = "rfc3339"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20output_options%20%2B%20(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>

const OutputOptionsTimestampFormatRfc3339ms OutputOptionsTimestampFormat = "rfc3339ms"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20output_options%20%2B%20(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>

const OutputOptionsTimestampFormatRfc3339ns OutputOptionsTimestampFormat = "rfc3339ns"

<a href="#(resource)%20logpush.jobs%20%3E%20(model)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20output_options%20%2B%20(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)%20logpush_job%20%3E%20(schema)%20%3E%20(property)%20output_options%20%2B%20(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>

<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)>)

### Update Logpush job

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/logpush"
  "github.com/cloudflare/cloudflare-go/option"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  logpushJob, err := client.Logpush.Jobs.Update(
    context.TODO(),
    int64(1),
    logpush.JobUpdateParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", logpushJob.ID)
}
```

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": {
    "id": 1,
    "dataset": "http_requests",
    "destination_conf": "s3://mybucket/logs?region=us-west-2",
    "enabled": false,
    "error_message": "error_message",
    "filter_attack_traffic": true,
    "frequency": "high",
    "kind": "",
    "last_complete": "2019-12-27T18:11:19.117Z",
    "last_error": "2019-12-27T18:11:19.117Z",
    "logpull_options": "fields=RayID,ClientIP,EdgeStartTimestamp&timestamps=rfc3339",
    "max_upload_bytes": 5000000,
    "max_upload_interval_seconds": 30,
    "max_upload_records": 1000,
    "name": "example.com",
    "output_options": {
      "batch_prefix": "batch_prefix",
      "batch_suffix": "batch_suffix",
      "CVE-2021-44228": true,
      "field_delimiter": "field_delimiter",
      "field_names": [
        "ClientIP",
        "EdgeStartTimestamp",
        "RayID"
      ],
      "merge_subrequests": true,
      "output_type": "ndjson",
      "record_delimiter": "record_delimiter",
      "record_prefix": "record_prefix",
      "record_suffix": "record_suffix",
      "record_template": "record_template",
      "sample_rate": 1,
      "timestamp_format": "unixnano"
    }
  }
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": {
    "id": 1,
    "dataset": "http_requests",
    "destination_conf": "s3://mybucket/logs?region=us-west-2",
    "enabled": false,
    "error_message": "error_message",
    "filter_attack_traffic": true,
    "frequency": "high",
    "kind": "",
    "last_complete": "2019-12-27T18:11:19.117Z",
    "last_error": "2019-12-27T18:11:19.117Z",
    "logpull_options": "fields=RayID,ClientIP,EdgeStartTimestamp&timestamps=rfc3339",
    "max_upload_bytes": 5000000,
    "max_upload_interval_seconds": 30,
    "max_upload_records": 1000,
    "name": "example.com",
    "output_options": {
      "batch_prefix": "batch_prefix",
      "batch_suffix": "batch_suffix",
      "CVE-2021-44228": true,
      "field_delimiter": "field_delimiter",
      "field_names": [
        "ClientIP",
        "EdgeStartTimestamp",
        "RayID"
      ],
      "merge_subrequests": true,
      "output_type": "ndjson",
      "record_delimiter": "record_delimiter",
      "record_prefix": "record_prefix",
      "record_suffix": "record_suffix",
      "record_template": "record_template",
      "sample_rate": 1,
      "timestamp_format": "unixnano"
    }
  }
}
```