PUT /accounts/{account_id}/logpush/jobs/{job_id}

Updates a Logpush job.

Servers

Path parameters

Name Type Required Description
job_id Integer Yes
account_id String Yes

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
frequency String No

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.

Possible values:

  • "high"
  • "low"

Default value: "high"

name String No

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.

max_upload_interval_seconds Integer No

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. This parameter is only used for jobs with edge as its kind.

Default value: 30

output_options Object No

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

output_options.record_delimiter String No

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

output_options.output_type String No

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.

Possible values:

  • "csv"
  • "ndjson"

Default value: "ndjson"

output_options.record_suffix String No

String to be appended after each record.

output_options.record_template String No

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.

output_options.batch_suffix String No

String to be appended after each batch.

output_options.CVE-2021-44228 Boolean No

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

Default value: false

output_options.timestamp_format String No

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

Possible values:

  • "unix"
  • "rfc3339"
  • "unixnano"

Default value: "unixnano"

output_options.field_delimiter String No

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

output_options.batch_prefix String No

String to be prepended before each batch.

output_options.sample_rate Number No

Floating number to specify sampling rate. Sampling is applied on top of filtering, and regardless of the current sample_interval of the data.

Default value: 1

output_options.field_names[] Array No

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.

output_options.record_prefix String No

String to be prepended before each record.

enabled Boolean No

Flag that indicates if the job is enabled.

ownership_challenge String No

Ownership challenge token to prove destination ownership.

destination_conf String No

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

kind String No

The kind parameter (optional) is used to differentiate between Logpush and Edge Log Delivery jobs. Currently, Edge Log Delivery is only supported for the http_requests dataset.

Possible values:

  • "edge"
max_upload_bytes Integer No

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. This parameter is not available for jobs with edge as its kind.

logpull_options String No

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.

max_upload_records Integer No

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. This parameter is not available for jobs with edge as its kind.

Default value: 100000

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.