PUT /zones/{zone_id}/logpush/jobs/{job_id}
Updates a Logpush job.
Servers
- https://api.cloudflare.com/client/v4
Path parameters
Name | Type | Required | Description |
---|---|---|---|
job_id |
Integer | Yes | |
zone_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 Possible values:
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 Default value: 30 |
output_options |
Object | No |
The structured replacement for |
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 Possible values:
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 |
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 Default value: false |
output_options.timestamp_format |
String | No |
String to specify the format for timestamps, such as Possible values:
Default value: "unixnano" |
output_options.field_delimiter |
String | No |
String to join fields. This field be ignored when |
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 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 Possible values:
|
max_upload_bytes |
Integer | No |
The maximum uncompressed file size of a batch of logs. This setting value must be between |
logpull_options |
String | No |
This field is deprecated. Use |
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 Default value: 100000 |
How to start integrating
- Add HTTP Task to your workflow definition.
- 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.
- Click Test request to test run your request to the API and see the API's response.