Skip to content

Commit 1196410

Browse files
[Logs] Updates timestamp information. (#25154)
* Updates timestamp information. * Updates after review. * Update src/content/docs/logs/logpush/logpush-job/log-output-options.mdx Co-authored-by: Pedro Sousa <[email protected]> * Update src/content/docs/logs/logpush/logpush-job/api-configuration.mdx --------- Co-authored-by: Pedro Sousa <[email protected]>
1 parent a3cb864 commit 1196410

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/content/docs/logs/logpush/examples/example-logpush-curl.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ When using Sumo Logic, you may find it helpful to have [Live Tail](https://help.
9797
* **dataset** - The category of logs you want to receive. Refer to [Datasets](/logs/logpush/logpush-job/datasets/) for the full list of supported datasets; this parameter cannot be changed after the job is created.
9898
* **output\_options** (optional) - Refer to [Log Output Options](/logs/logpush/logpush-job/log-output-options/).
9999
* Typically includes the desired fields and timestamp format.
100-
* Set the timestamp format to `RFC 3339` (`&timestamps=rfc3339`) for:
100+
* Set the timestamp format to `RFC 3339` (`"timestamp_format": "rfc3339"`) for:
101101
* Google BigQuery usage.
102102
* Automated timestamp parsing within Sumo Logic; refer to [timestamps from Sumo Logic](https://help.sumologic.com/03Send-Data/Sources/04Reference-Information-for-Sources/Timestamps%2C-Time-Zones%2C-Time-Ranges%2C-and-Date-Formats) for details.
103103
* **ownership\_challenge** - Challenge token required to prove destination ownership.

src/content/docs/logs/logpush/logpush-job/api-configuration.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ Logpull\_options has been replaced with Custom Log Formatting output\_options. P
211211
If you are still using logpull\_options, here are the options that you can customize:
212212

213213
1. **Fields** (optional): Refer to [Datasets](/logs/logpush/logpush-job/datasets/) for the currently available fields. The list of fields is also accessible directly from the API: `https://api.cloudflare.com/client/v4/zones/{zone_id}/logpush/datasets/{dataset_id}/fields`. Default fields: `https://api.cloudflare.com/client/v4/zones/{zone_id}/logpush/datasets/{dataset_id}/fields/default`.
214-
2. **Timestamp format** (optional): The format in which timestamp fields will be returned. Value options: `unixnano` (default), `unix`, `rfc3339`.
215-
3. **Redaction for CVE-2021-44228** (optional): This option will replace every occurrence of `${` with `x{`. To enable it, set `CVE-2021-44228=true`.
214+
2. **Timestamp format** (optional): The format in which timestamp fields will be returned. Value options: `unixnano` (nanoseconds unit - default), `unix` (seconds unit), `rfc3339` (seconds unit).
215+
3. **Redaction for CVE-2021-44228** (optional): This option will replace every occurrence of `${` with `x{`. To enable it, set `"CVE-2021-44228": "true"`.
216216

217217
:::note[Note]
218218

src/content/docs/logs/logpush/logpush-job/log-output-options.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ The **output\_options** object has the following settings:
6262
* Comment: the `{{/* comments */}}` are silently dropped.
6363
* **record\_delimiter**: string to be inserted in-between the records as separator.
6464
* **field\_delimiter**: string to join fields. Will be ignored when **record\_template** is set.
65-
* **timestamp\_format**: string to specify format for timestamps, such as `unixnano`, `unix`, or `rfc3339`. Default `unixnano`.
65+
* **timestamp\_format**: string to specify format for timestamps, such as `unixnano` (nanoseconds unit), `unix` (seconds unit), or `rfc3339` (seconds unit). Default `unixnano`. The API default is `unixnano` when `timestamp_format` is not specified for a job. However, when creating a Logpush job in the Cloudflare dashboard, `timestamp_format` will be set explicitly to `rfc3339` as the default.
6666
* **sample\_rate**: floating number to specify sampling rate (default 1.0: no sampling). Sampling is applied on top of filtering, and regardless of the current sample\_interval of the data.
6767
* **CVE-2021-44228**: bool, default false. If set to true, will cause all occurrences of `${` in the generated files to be replaced with `x{`.
6868

0 commit comments

Comments
 (0)