Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mirror API record_delimiter defaults #3334

Merged
merged 3 commits into from
May 31, 2024

Conversation

jamesgol
Copy link
Contributor

According to https://developers.cloudflare.com/logs/reference/log-output-options/ the default options for record_suffix are "}\n" and not "}" The defaults cause malformed JSON when there is more than a single record in a time interval.

Perhaps a better default would be to set record_delimiter to "\n" and keep field_delimiter "}" but this change is intended to mirror the published documentation

According to https://developers.cloudflare.com/logs/reference/log-output-options/ the default options for
record_suffix are "}\n" and not "}" The defaults cause malformed JSON when there is more than a single record
in a time interval.

Perhaps a better default would be to set record_delimiter to "\n" and keep field_delimiter "}" but this
change is intended to mirror the published documentation
@jamesgol jamesgol requested a review from jacobbednarz as a code owner May 30, 2024 05:36
Copy link
Contributor

github-actions bot commented May 30, 2024

changelog detected ✅

@jacobbednarz
Copy link
Member

cc @nuggien @cmackenzie1

@cmackenzie1
Copy link
Contributor

This looks good to me and matches public docs for NDJSON.

Screenshot 2024-05-30 at 1 48 45 PM

@jacobbednarz jacobbednarz merged commit da42a86 into cloudflare:master May 31, 2024
8 checks passed
@github-actions github-actions bot added this to the v4.35.0 milestone May 31, 2024
github-actions bot pushed a commit that referenced this pull request May 31, 2024
Copy link
Contributor

This functionality has been released in v4.35.0 of the Terraform Cloudflare Provider.

Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants