Open
Conversation
…on for WAFRuleIDs (string) and EdgeResponseCompressionRatio (float)
added explicit schema
added logic to read schema from remote JSON file
update schema with additional fields
merge remote-schema
Updated cloud functions storage bucket variable
According to [docs](https://cloud.google.com/functions/docs/migrating/nodejs-runtimes) and warning emails > The Node.js 8 runtime will be deprecated on 2020-06-05 At moment I'm connecting our cloudflare to gcp, and decided to set node to 10 can confirm that everything working
upgrade to node 10
add gcp project id module
* Added Spectrum schema and bash $SCHEMA variable. * type fix for Spectrum schema * add $SCHEMA to automatic install * fix README.md * fix capitalization * Update cloudshell.md Co-authored-by: Frank Taylor <7483580+shagamemnon@users.noreply.github.com>
Resolves cloudflare#48
Contributor
|
Hey @thecodeassassin - thanks for putting this in :) The default timestamp format for Logpush is actually RFC3339 (e.g. ... which is of type It looks like you are using one of the Unix time options instead? Assuming I am reading this correctly, I'm afraid we'll need to find a different solution for your use case. |
Author
|
@shagamemnon thank you for the quick response. We created the logpush job via terraform: for_each = {
for dataset in local.datasets : dataset.id => dataset
}
zone_id = data.cloudflare_zones.zone_id_domain[each.value.domain].zones[0].id
enabled = true
name = replace("${each.value.domain}-${each.value.id}", "/([\\.-_])+/", "-")
destination_conf = "gs://${google_storage_bucket.logs[each.key].name}"
ownership_challenge = data.http.ownership_file[each.key].body
dataset = each.value.dataset
logpull_options = each.value.logpull_options
}Also, on the docs it says int or string. https://developers.cloudflare.com/logs/log-fields Maybe it's only RFC3339 when you create it via the UI? |
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The reason for this PR is to correct the data types used in the schemas.
If you don't use the correct data types the following errors occur:
{"reason":"invalidQuery","location":"query","message":"Cannot return an invalid timestamp value of -8505438273863876608 microseconds relative to the Unix epoch. The range of valid timestamp values is [0001-01-1 00:00:00, 9999-12-31 23:59:59.999999]; error in writing field EdgeEndTimestamp"}This PR fixes the incorrect data types