published on Wednesday, Jul 1, 2026 by g-core
published on Wednesday, Jul 1, 2026 by g-core
Logs uploader policies define how CDN logs are formatted and delivered, including field selection, field ordering, delimiters, delivery frequency, and file size limits.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const exampleCdnLogsUploaderPolicy = new gcore.CdnLogsUploaderPolicy("example_cdn_logs_uploader_policy", {
dateFormat: "[02/Jan/2006:15:04:05 -0700]",
description: "New policy",
escapeSpecialCharacters: true,
fieldDelimiter: ",",
fieldSeparator: ";",
fields: [
"remote_addr",
"status",
],
fileNameTemplate: "{{YYYY}}_{{MM}}_{{DD}}_{{HH}}_{{mm}}_{{ss}}_access.log.gz",
formatType: "json",
includeEmptyLogs: true,
includeShieldLogs: true,
logSampleRate: 1,
name: "Policy",
retryIntervalMinutes: 32,
rotateIntervalMinutes: 32,
rotateThresholdLines: 5000,
rotateThresholdMb: 252,
tags: {},
});
import pulumi
import pulumi_gcore as gcore
example_cdn_logs_uploader_policy = gcore.CdnLogsUploaderPolicy("example_cdn_logs_uploader_policy",
date_format="[02/Jan/2006:15:04:05 -0700]",
description="New policy",
escape_special_characters=True,
field_delimiter=",",
field_separator=";",
fields=[
"remote_addr",
"status",
],
file_name_template="{{YYYY}}_{{MM}}_{{DD}}_{{HH}}_{{mm}}_{{ss}}_access.log.gz",
format_type="json",
include_empty_logs=True,
include_shield_logs=True,
log_sample_rate=1,
name="Policy",
retry_interval_minutes=32,
rotate_interval_minutes=32,
rotate_threshold_lines=5000,
rotate_threshold_mb=252,
tags={})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gcore.NewCdnLogsUploaderPolicy(ctx, "example_cdn_logs_uploader_policy", &gcore.CdnLogsUploaderPolicyArgs{
DateFormat: pulumi.String("[02/Jan/2006:15:04:05 -0700]"),
Description: pulumi.String("New policy"),
EscapeSpecialCharacters: pulumi.Bool(true),
FieldDelimiter: pulumi.String(","),
FieldSeparator: pulumi.String(";"),
Fields: pulumi.StringArray{
pulumi.String("remote_addr"),
pulumi.String("status"),
},
FileNameTemplate: pulumi.String("{{YYYY}}_{{MM}}_{{DD}}_{{HH}}_{{mm}}_{{ss}}_access.log.gz"),
FormatType: pulumi.String("json"),
IncludeEmptyLogs: pulumi.Bool(true),
IncludeShieldLogs: pulumi.Bool(true),
LogSampleRate: pulumi.Float64(1),
Name: pulumi.String("Policy"),
RetryIntervalMinutes: pulumi.Float64(32),
RotateIntervalMinutes: pulumi.Float64(32),
RotateThresholdLines: pulumi.Float64(5000),
RotateThresholdMb: pulumi.Float64(252),
Tags: pulumi.StringMap{},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var exampleCdnLogsUploaderPolicy = new Gcore.CdnLogsUploaderPolicy("example_cdn_logs_uploader_policy", new()
{
DateFormat = "[02/Jan/2006:15:04:05 -0700]",
Description = "New policy",
EscapeSpecialCharacters = true,
FieldDelimiter = ",",
FieldSeparator = ";",
Fields = new[]
{
"remote_addr",
"status",
},
FileNameTemplate = "{{YYYY}}_{{MM}}_{{DD}}_{{HH}}_{{mm}}_{{ss}}_access.log.gz",
FormatType = "json",
IncludeEmptyLogs = true,
IncludeShieldLogs = true,
LogSampleRate = 1,
Name = "Policy",
RetryIntervalMinutes = 32,
RotateIntervalMinutes = 32,
RotateThresholdLines = 5000,
RotateThresholdMb = 252,
Tags = null,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.CdnLogsUploaderPolicy;
import com.pulumi.gcore.CdnLogsUploaderPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleCdnLogsUploaderPolicy = new CdnLogsUploaderPolicy("exampleCdnLogsUploaderPolicy", CdnLogsUploaderPolicyArgs.builder()
.dateFormat("[02/Jan/2006:15:04:05 -0700]")
.description("New policy")
.escapeSpecialCharacters(true)
.fieldDelimiter(",")
.fieldSeparator(";")
.fields(
"remote_addr",
"status")
.fileNameTemplate("{{YYYY}}_{{MM}}_{{DD}}_{{HH}}_{{mm}}_{{ss}}_access.log.gz")
.formatType("json")
.includeEmptyLogs(true)
.includeShieldLogs(true)
.logSampleRate(1.0)
.name("Policy")
.retryIntervalMinutes(32.0)
.rotateIntervalMinutes(32.0)
.rotateThresholdLines(5000.0)
.rotateThresholdMb(252.0)
.tags(Map.ofEntries(
))
.build());
}
}
resources:
exampleCdnLogsUploaderPolicy:
type: gcore:CdnLogsUploaderPolicy
name: example_cdn_logs_uploader_policy
properties:
dateFormat: '[02/Jan/2006:15:04:05 -0700]'
description: New policy
escapeSpecialCharacters: true
fieldDelimiter: ','
fieldSeparator: ;
fields:
- remote_addr
- status
fileNameTemplate: '{{YYYY}}_{{MM}}_{{DD}}_{{HH}}_{{mm}}_{{ss}}_access.log.gz'
formatType: json
includeEmptyLogs: true
includeShieldLogs: true
logSampleRate: 1
name: Policy
retryIntervalMinutes: 32
rotateIntervalMinutes: 32
rotateThresholdLines: 5000
rotateThresholdMb: 252
tags: {}
Example coming soon!
Create CdnLogsUploaderPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CdnLogsUploaderPolicy(name: string, args?: CdnLogsUploaderPolicyArgs, opts?: CustomResourceOptions);@overload
def CdnLogsUploaderPolicy(resource_name: str,
args: Optional[CdnLogsUploaderPolicyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def CdnLogsUploaderPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
date_format: Optional[str] = None,
description: Optional[str] = None,
escape_special_characters: Optional[bool] = None,
field_delimiter: Optional[str] = None,
field_separator: Optional[str] = None,
fields: Optional[Sequence[str]] = None,
file_name_template: Optional[str] = None,
format_type: Optional[str] = None,
include_empty_logs: Optional[bool] = None,
include_shield_logs: Optional[bool] = None,
log_sample_rate: Optional[float] = None,
name: Optional[str] = None,
retry_interval_minutes: Optional[float] = None,
rotate_interval_minutes: Optional[float] = None,
rotate_threshold_lines: Optional[float] = None,
rotate_threshold_mb: Optional[float] = None,
tags: Optional[Mapping[str, str]] = None)func NewCdnLogsUploaderPolicy(ctx *Context, name string, args *CdnLogsUploaderPolicyArgs, opts ...ResourceOption) (*CdnLogsUploaderPolicy, error)public CdnLogsUploaderPolicy(string name, CdnLogsUploaderPolicyArgs? args = null, CustomResourceOptions? opts = null)
public CdnLogsUploaderPolicy(String name, CdnLogsUploaderPolicyArgs args)
public CdnLogsUploaderPolicy(String name, CdnLogsUploaderPolicyArgs args, CustomResourceOptions options)
type: gcore:CdnLogsUploaderPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "gcore_cdnlogsuploaderpolicy" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CdnLogsUploaderPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CdnLogsUploaderPolicyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CdnLogsUploaderPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CdnLogsUploaderPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CdnLogsUploaderPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var cdnLogsUploaderPolicyResource = new Gcore.CdnLogsUploaderPolicy("cdnLogsUploaderPolicyResource", new()
{
DateFormat = "string",
Description = "string",
EscapeSpecialCharacters = false,
FieldDelimiter = "string",
FieldSeparator = "string",
Fields = new[]
{
"string",
},
FileNameTemplate = "string",
FormatType = "string",
IncludeEmptyLogs = false,
IncludeShieldLogs = false,
LogSampleRate = 0,
Name = "string",
RetryIntervalMinutes = 0,
RotateIntervalMinutes = 0,
RotateThresholdLines = 0,
RotateThresholdMb = 0,
Tags =
{
{ "string", "string" },
},
});
example, err := gcore.NewCdnLogsUploaderPolicy(ctx, "cdnLogsUploaderPolicyResource", &gcore.CdnLogsUploaderPolicyArgs{
DateFormat: pulumi.String("string"),
Description: pulumi.String("string"),
EscapeSpecialCharacters: pulumi.Bool(false),
FieldDelimiter: pulumi.String("string"),
FieldSeparator: pulumi.String("string"),
Fields: pulumi.StringArray{
pulumi.String("string"),
},
FileNameTemplate: pulumi.String("string"),
FormatType: pulumi.String("string"),
IncludeEmptyLogs: pulumi.Bool(false),
IncludeShieldLogs: pulumi.Bool(false),
LogSampleRate: pulumi.Float64(0),
Name: pulumi.String("string"),
RetryIntervalMinutes: pulumi.Float64(0),
RotateIntervalMinutes: pulumi.Float64(0),
RotateThresholdLines: pulumi.Float64(0),
RotateThresholdMb: pulumi.Float64(0),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
resource "gcore_cdnlogsuploaderpolicy" "cdnLogsUploaderPolicyResource" {
date_format = "string"
description = "string"
escape_special_characters = false
field_delimiter = "string"
field_separator = "string"
fields = ["string"]
file_name_template = "string"
format_type = "string"
include_empty_logs = false
include_shield_logs = false
log_sample_rate = 0
name = "string"
retry_interval_minutes = 0
rotate_interval_minutes = 0
rotate_threshold_lines = 0
rotate_threshold_mb = 0
tags = {
"string" = "string"
}
}
var cdnLogsUploaderPolicyResource = new CdnLogsUploaderPolicy("cdnLogsUploaderPolicyResource", CdnLogsUploaderPolicyArgs.builder()
.dateFormat("string")
.description("string")
.escapeSpecialCharacters(false)
.fieldDelimiter("string")
.fieldSeparator("string")
.fields("string")
.fileNameTemplate("string")
.formatType("string")
.includeEmptyLogs(false)
.includeShieldLogs(false)
.logSampleRate(0.0)
.name("string")
.retryIntervalMinutes(0.0)
.rotateIntervalMinutes(0.0)
.rotateThresholdLines(0.0)
.rotateThresholdMb(0.0)
.tags(Map.of("string", "string"))
.build());
cdn_logs_uploader_policy_resource = gcore.CdnLogsUploaderPolicy("cdnLogsUploaderPolicyResource",
date_format="string",
description="string",
escape_special_characters=False,
field_delimiter="string",
field_separator="string",
fields=["string"],
file_name_template="string",
format_type="string",
include_empty_logs=False,
include_shield_logs=False,
log_sample_rate=float(0),
name="string",
retry_interval_minutes=float(0),
rotate_interval_minutes=float(0),
rotate_threshold_lines=float(0),
rotate_threshold_mb=float(0),
tags={
"string": "string",
})
const cdnLogsUploaderPolicyResource = new gcore.CdnLogsUploaderPolicy("cdnLogsUploaderPolicyResource", {
dateFormat: "string",
description: "string",
escapeSpecialCharacters: false,
fieldDelimiter: "string",
fieldSeparator: "string",
fields: ["string"],
fileNameTemplate: "string",
formatType: "string",
includeEmptyLogs: false,
includeShieldLogs: false,
logSampleRate: 0,
name: "string",
retryIntervalMinutes: 0,
rotateIntervalMinutes: 0,
rotateThresholdLines: 0,
rotateThresholdMb: 0,
tags: {
string: "string",
},
});
type: gcore:CdnLogsUploaderPolicy
properties:
dateFormat: string
description: string
escapeSpecialCharacters: false
fieldDelimiter: string
fieldSeparator: string
fields:
- string
fileNameTemplate: string
formatType: string
includeEmptyLogs: false
includeShieldLogs: false
logSampleRate: 0
name: string
retryIntervalMinutes: 0
rotateIntervalMinutes: 0
rotateThresholdLines: 0
rotateThresholdMb: 0
tags:
string: string
CdnLogsUploaderPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CdnLogsUploaderPolicy resource accepts the following input properties:
- Date
Format string - Date format for logs.
- Description string
- Description of the policy.
- Escape
Special boolCharacters - When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
- Field
Delimiter string - Field delimiter for logs.
- Field
Separator string - Field separator for logs.
- Fields List<string>
- List of fields to include in logs.
- File
Name stringTemplate - Template for log file name.
- Format
Type string Format type for logs.
Possible values:
- "" - empty, it means it will apply the format configurations from the policy.
- "json" - output the logs as json lines. Available values: "json", "".
- Include
Empty boolLogs - Include empty logs in the upload.
- Include
Shield boolLogs - Include logs from origin shielding in the upload.
- Log
Sample doubleRate - Sampling rate for logs. A value between 0 and 1 that determines the fraction of log entries to collect.
- 1 - collect all logs (default).
- 0.5 - collect approximately 50% of logs.
- 0 - collect no logs (effectively disables logging without removing the policy).
- Name string
- Name of the policy.
- Retry
Interval doubleMinutes - Interval in minutes to retry failed uploads.
- Rotate
Interval doubleMinutes - Interval in minutes to rotate logs.
- Rotate
Threshold doubleLines - Threshold in lines to rotate logs.
- Rotate
Threshold doubleMb - Threshold in MB to rotate logs.
- Dictionary<string, string>
- Tags allow for dynamic decoration of logs by adding predefined fields to the log format. These tags serve as customizable key-value pairs that can be included in log entries to enhance context and readability.
- Date
Format string - Date format for logs.
- Description string
- Description of the policy.
- Escape
Special boolCharacters - When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
- Field
Delimiter string - Field delimiter for logs.
- Field
Separator string - Field separator for logs.
- Fields []string
- List of fields to include in logs.
- File
Name stringTemplate - Template for log file name.
- Format
Type string Format type for logs.
Possible values:
- "" - empty, it means it will apply the format configurations from the policy.
- "json" - output the logs as json lines. Available values: "json", "".
- Include
Empty boolLogs - Include empty logs in the upload.
- Include
Shield boolLogs - Include logs from origin shielding in the upload.
- Log
Sample float64Rate - Sampling rate for logs. A value between 0 and 1 that determines the fraction of log entries to collect.
- 1 - collect all logs (default).
- 0.5 - collect approximately 50% of logs.
- 0 - collect no logs (effectively disables logging without removing the policy).
- Name string
- Name of the policy.
- Retry
Interval float64Minutes - Interval in minutes to retry failed uploads.
- Rotate
Interval float64Minutes - Interval in minutes to rotate logs.
- Rotate
Threshold float64Lines - Threshold in lines to rotate logs.
- Rotate
Threshold float64Mb - Threshold in MB to rotate logs.
- map[string]string
- Tags allow for dynamic decoration of logs by adding predefined fields to the log format. These tags serve as customizable key-value pairs that can be included in log entries to enhance context and readability.
- date_
format string - Date format for logs.
- description string
- Description of the policy.
- escape_
special_ boolcharacters - When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
- field_
delimiter string - Field delimiter for logs.
- field_
separator string - Field separator for logs.
- fields list(string)
- List of fields to include in logs.
- file_
name_ stringtemplate - Template for log file name.
- format_
type string Format type for logs.
Possible values:
- "" - empty, it means it will apply the format configurations from the policy.
- "json" - output the logs as json lines. Available values: "json", "".
- include_
empty_ boollogs - Include empty logs in the upload.
- include_
shield_ boollogs - Include logs from origin shielding in the upload.
- log_
sample_ numberrate - Sampling rate for logs. A value between 0 and 1 that determines the fraction of log entries to collect.
- 1 - collect all logs (default).
- 0.5 - collect approximately 50% of logs.
- 0 - collect no logs (effectively disables logging without removing the policy).
- name string
- Name of the policy.
- retry_
interval_ numberminutes - Interval in minutes to retry failed uploads.
- rotate_
interval_ numberminutes - Interval in minutes to rotate logs.
- rotate_
threshold_ numberlines - Threshold in lines to rotate logs.
- rotate_
threshold_ numbermb - Threshold in MB to rotate logs.
- map(string)
- Tags allow for dynamic decoration of logs by adding predefined fields to the log format. These tags serve as customizable key-value pairs that can be included in log entries to enhance context and readability.
- date
Format String - Date format for logs.
- description String
- Description of the policy.
- escape
Special BooleanCharacters - When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
- field
Delimiter String - Field delimiter for logs.
- field
Separator String - Field separator for logs.
- fields List<String>
- List of fields to include in logs.
- file
Name StringTemplate - Template for log file name.
- format
Type String Format type for logs.
Possible values:
- "" - empty, it means it will apply the format configurations from the policy.
- "json" - output the logs as json lines. Available values: "json", "".
- include
Empty BooleanLogs - Include empty logs in the upload.
- include
Shield BooleanLogs - Include logs from origin shielding in the upload.
- log
Sample DoubleRate - Sampling rate for logs. A value between 0 and 1 that determines the fraction of log entries to collect.
- 1 - collect all logs (default).
- 0.5 - collect approximately 50% of logs.
- 0 - collect no logs (effectively disables logging without removing the policy).
- name String
- Name of the policy.
- retry
Interval DoubleMinutes - Interval in minutes to retry failed uploads.
- rotate
Interval DoubleMinutes - Interval in minutes to rotate logs.
- rotate
Threshold DoubleLines - Threshold in lines to rotate logs.
- rotate
Threshold DoubleMb - Threshold in MB to rotate logs.
- Map<String,String>
- Tags allow for dynamic decoration of logs by adding predefined fields to the log format. These tags serve as customizable key-value pairs that can be included in log entries to enhance context and readability.
- date
Format string - Date format for logs.
- description string
- Description of the policy.
- escape
Special booleanCharacters - When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
- field
Delimiter string - Field delimiter for logs.
- field
Separator string - Field separator for logs.
- fields string[]
- List of fields to include in logs.
- file
Name stringTemplate - Template for log file name.
- format
Type string Format type for logs.
Possible values:
- "" - empty, it means it will apply the format configurations from the policy.
- "json" - output the logs as json lines. Available values: "json", "".
- include
Empty booleanLogs - Include empty logs in the upload.
- include
Shield booleanLogs - Include logs from origin shielding in the upload.
- log
Sample numberRate - Sampling rate for logs. A value between 0 and 1 that determines the fraction of log entries to collect.
- 1 - collect all logs (default).
- 0.5 - collect approximately 50% of logs.
- 0 - collect no logs (effectively disables logging without removing the policy).
- name string
- Name of the policy.
- retry
Interval numberMinutes - Interval in minutes to retry failed uploads.
- rotate
Interval numberMinutes - Interval in minutes to rotate logs.
- rotate
Threshold numberLines - Threshold in lines to rotate logs.
- rotate
Threshold numberMb - Threshold in MB to rotate logs.
- {[key: string]: string}
- Tags allow for dynamic decoration of logs by adding predefined fields to the log format. These tags serve as customizable key-value pairs that can be included in log entries to enhance context and readability.
- date_
format str - Date format for logs.
- description str
- Description of the policy.
- escape_
special_ boolcharacters - When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
- field_
delimiter str - Field delimiter for logs.
- field_
separator str - Field separator for logs.
- fields Sequence[str]
- List of fields to include in logs.
- file_
name_ strtemplate - Template for log file name.
- format_
type str Format type for logs.
Possible values:
- "" - empty, it means it will apply the format configurations from the policy.
- "json" - output the logs as json lines. Available values: "json", "".
- include_
empty_ boollogs - Include empty logs in the upload.
- include_
shield_ boollogs - Include logs from origin shielding in the upload.
- log_
sample_ floatrate - Sampling rate for logs. A value between 0 and 1 that determines the fraction of log entries to collect.
- 1 - collect all logs (default).
- 0.5 - collect approximately 50% of logs.
- 0 - collect no logs (effectively disables logging without removing the policy).
- name str
- Name of the policy.
- retry_
interval_ floatminutes - Interval in minutes to retry failed uploads.
- rotate_
interval_ floatminutes - Interval in minutes to rotate logs.
- rotate_
threshold_ floatlines - Threshold in lines to rotate logs.
- rotate_
threshold_ floatmb - Threshold in MB to rotate logs.
- Mapping[str, str]
- Tags allow for dynamic decoration of logs by adding predefined fields to the log format. These tags serve as customizable key-value pairs that can be included in log entries to enhance context and readability.
- date
Format String - Date format for logs.
- description String
- Description of the policy.
- escape
Special BooleanCharacters - When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
- field
Delimiter String - Field delimiter for logs.
- field
Separator String - Field separator for logs.
- fields List<String>
- List of fields to include in logs.
- file
Name StringTemplate - Template for log file name.
- format
Type String Format type for logs.
Possible values:
- "" - empty, it means it will apply the format configurations from the policy.
- "json" - output the logs as json lines. Available values: "json", "".
- include
Empty BooleanLogs - Include empty logs in the upload.
- include
Shield BooleanLogs - Include logs from origin shielding in the upload.
- log
Sample NumberRate - Sampling rate for logs. A value between 0 and 1 that determines the fraction of log entries to collect.
- 1 - collect all logs (default).
- 0.5 - collect approximately 50% of logs.
- 0 - collect no logs (effectively disables logging without removing the policy).
- name String
- Name of the policy.
- retry
Interval NumberMinutes - Interval in minutes to retry failed uploads.
- rotate
Interval NumberMinutes - Interval in minutes to rotate logs.
- rotate
Threshold NumberLines - Threshold in lines to rotate logs.
- rotate
Threshold NumberMb - Threshold in MB to rotate logs.
- Map<String>
- Tags allow for dynamic decoration of logs by adding predefined fields to the log format. These tags serve as customizable key-value pairs that can be included in log entries to enhance context and readability.
Outputs
All input properties are implicitly available as output properties. Additionally, the CdnLogsUploaderPolicy resource produces the following output properties:
- Cdn
Logs doubleUploader Policy Id - Client
Id double - Client that owns the policy.
- Created string
- Time when logs uploader policy was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- List<double>
- List of logs uploader configs that use this policy.
- Updated string
- Time when logs uploader policy was updated.
- Cdn
Logs float64Uploader Policy Id - Client
Id float64 - Client that owns the policy.
- Created string
- Time when logs uploader policy was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- []float64
- List of logs uploader configs that use this policy.
- Updated string
- Time when logs uploader policy was updated.
- cdn_
logs_ numberuploader_ policy_ id - client_
id number - Client that owns the policy.
- created string
- Time when logs uploader policy was created.
- id string
- The provider-assigned unique ID for this managed resource.
- list(number)
- List of logs uploader configs that use this policy.
- updated string
- Time when logs uploader policy was updated.
- cdn
Logs DoubleUploader Policy Id - client
Id Double - Client that owns the policy.
- created String
- Time when logs uploader policy was created.
- id String
- The provider-assigned unique ID for this managed resource.
- List<Double>
- List of logs uploader configs that use this policy.
- updated String
- Time when logs uploader policy was updated.
- cdn
Logs numberUploader Policy Id - client
Id number - Client that owns the policy.
- created string
- Time when logs uploader policy was created.
- id string
- The provider-assigned unique ID for this managed resource.
- number[]
- List of logs uploader configs that use this policy.
- updated string
- Time when logs uploader policy was updated.
- cdn_
logs_ floatuploader_ policy_ id - client_
id float - Client that owns the policy.
- created str
- Time when logs uploader policy was created.
- id str
- The provider-assigned unique ID for this managed resource.
- Sequence[float]
- List of logs uploader configs that use this policy.
- updated str
- Time when logs uploader policy was updated.
- cdn
Logs NumberUploader Policy Id - client
Id Number - Client that owns the policy.
- created String
- Time when logs uploader policy was created.
- id String
- The provider-assigned unique ID for this managed resource.
- List<Number>
- List of logs uploader configs that use this policy.
- updated String
- Time when logs uploader policy was updated.
Look up Existing CdnLogsUploaderPolicy Resource
Get an existing CdnLogsUploaderPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CdnLogsUploaderPolicyState, opts?: CustomResourceOptions): CdnLogsUploaderPolicy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cdn_logs_uploader_policy_id: Optional[float] = None,
client_id: Optional[float] = None,
created: Optional[str] = None,
date_format: Optional[str] = None,
description: Optional[str] = None,
escape_special_characters: Optional[bool] = None,
field_delimiter: Optional[str] = None,
field_separator: Optional[str] = None,
fields: Optional[Sequence[str]] = None,
file_name_template: Optional[str] = None,
format_type: Optional[str] = None,
include_empty_logs: Optional[bool] = None,
include_shield_logs: Optional[bool] = None,
log_sample_rate: Optional[float] = None,
name: Optional[str] = None,
related_uploader_configs: Optional[Sequence[float]] = None,
retry_interval_minutes: Optional[float] = None,
rotate_interval_minutes: Optional[float] = None,
rotate_threshold_lines: Optional[float] = None,
rotate_threshold_mb: Optional[float] = None,
tags: Optional[Mapping[str, str]] = None,
updated: Optional[str] = None) -> CdnLogsUploaderPolicyfunc GetCdnLogsUploaderPolicy(ctx *Context, name string, id IDInput, state *CdnLogsUploaderPolicyState, opts ...ResourceOption) (*CdnLogsUploaderPolicy, error)public static CdnLogsUploaderPolicy Get(string name, Input<string> id, CdnLogsUploaderPolicyState? state, CustomResourceOptions? opts = null)public static CdnLogsUploaderPolicy get(String name, Output<String> id, CdnLogsUploaderPolicyState state, CustomResourceOptions options)resources: _: type: gcore:CdnLogsUploaderPolicy get: id: ${id}import {
to = gcore_cdnlogsuploaderpolicy.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cdn
Logs doubleUploader Policy Id - Client
Id double - Client that owns the policy.
- Created string
- Time when logs uploader policy was created.
- Date
Format string - Date format for logs.
- Description string
- Description of the policy.
- Escape
Special boolCharacters - When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
- Field
Delimiter string - Field delimiter for logs.
- Field
Separator string - Field separator for logs.
- Fields List<string>
- List of fields to include in logs.
- File
Name stringTemplate - Template for log file name.
- Format
Type string Format type for logs.
Possible values:
- "" - empty, it means it will apply the format configurations from the policy.
- "json" - output the logs as json lines. Available values: "json", "".
- Include
Empty boolLogs - Include empty logs in the upload.
- Include
Shield boolLogs - Include logs from origin shielding in the upload.
- Log
Sample doubleRate - Sampling rate for logs. A value between 0 and 1 that determines the fraction of log entries to collect.
- 1 - collect all logs (default).
- 0.5 - collect approximately 50% of logs.
- 0 - collect no logs (effectively disables logging without removing the policy).
- Name string
- Name of the policy.
- List<double>
- List of logs uploader configs that use this policy.
- Retry
Interval doubleMinutes - Interval in minutes to retry failed uploads.
- Rotate
Interval doubleMinutes - Interval in minutes to rotate logs.
- Rotate
Threshold doubleLines - Threshold in lines to rotate logs.
- Rotate
Threshold doubleMb - Threshold in MB to rotate logs.
- Dictionary<string, string>
- Tags allow for dynamic decoration of logs by adding predefined fields to the log format. These tags serve as customizable key-value pairs that can be included in log entries to enhance context and readability.
- Updated string
- Time when logs uploader policy was updated.
- Cdn
Logs float64Uploader Policy Id - Client
Id float64 - Client that owns the policy.
- Created string
- Time when logs uploader policy was created.
- Date
Format string - Date format for logs.
- Description string
- Description of the policy.
- Escape
Special boolCharacters - When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
- Field
Delimiter string - Field delimiter for logs.
- Field
Separator string - Field separator for logs.
- Fields []string
- List of fields to include in logs.
- File
Name stringTemplate - Template for log file name.
- Format
Type string Format type for logs.
Possible values:
- "" - empty, it means it will apply the format configurations from the policy.
- "json" - output the logs as json lines. Available values: "json", "".
- Include
Empty boolLogs - Include empty logs in the upload.
- Include
Shield boolLogs - Include logs from origin shielding in the upload.
- Log
Sample float64Rate - Sampling rate for logs. A value between 0 and 1 that determines the fraction of log entries to collect.
- 1 - collect all logs (default).
- 0.5 - collect approximately 50% of logs.
- 0 - collect no logs (effectively disables logging without removing the policy).
- Name string
- Name of the policy.
- []float64
- List of logs uploader configs that use this policy.
- Retry
Interval float64Minutes - Interval in minutes to retry failed uploads.
- Rotate
Interval float64Minutes - Interval in minutes to rotate logs.
- Rotate
Threshold float64Lines - Threshold in lines to rotate logs.
- Rotate
Threshold float64Mb - Threshold in MB to rotate logs.
- map[string]string
- Tags allow for dynamic decoration of logs by adding predefined fields to the log format. These tags serve as customizable key-value pairs that can be included in log entries to enhance context and readability.
- Updated string
- Time when logs uploader policy was updated.
- cdn_
logs_ numberuploader_ policy_ id - client_
id number - Client that owns the policy.
- created string
- Time when logs uploader policy was created.
- date_
format string - Date format for logs.
- description string
- Description of the policy.
- escape_
special_ boolcharacters - When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
- field_
delimiter string - Field delimiter for logs.
- field_
separator string - Field separator for logs.
- fields list(string)
- List of fields to include in logs.
- file_
name_ stringtemplate - Template for log file name.
- format_
type string Format type for logs.
Possible values:
- "" - empty, it means it will apply the format configurations from the policy.
- "json" - output the logs as json lines. Available values: "json", "".
- include_
empty_ boollogs - Include empty logs in the upload.
- include_
shield_ boollogs - Include logs from origin shielding in the upload.
- log_
sample_ numberrate - Sampling rate for logs. A value between 0 and 1 that determines the fraction of log entries to collect.
- 1 - collect all logs (default).
- 0.5 - collect approximately 50% of logs.
- 0 - collect no logs (effectively disables logging without removing the policy).
- name string
- Name of the policy.
- list(number)
- List of logs uploader configs that use this policy.
- retry_
interval_ numberminutes - Interval in minutes to retry failed uploads.
- rotate_
interval_ numberminutes - Interval in minutes to rotate logs.
- rotate_
threshold_ numberlines - Threshold in lines to rotate logs.
- rotate_
threshold_ numbermb - Threshold in MB to rotate logs.
- map(string)
- Tags allow for dynamic decoration of logs by adding predefined fields to the log format. These tags serve as customizable key-value pairs that can be included in log entries to enhance context and readability.
- updated string
- Time when logs uploader policy was updated.
- cdn
Logs DoubleUploader Policy Id - client
Id Double - Client that owns the policy.
- created String
- Time when logs uploader policy was created.
- date
Format String - Date format for logs.
- description String
- Description of the policy.
- escape
Special BooleanCharacters - When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
- field
Delimiter String - Field delimiter for logs.
- field
Separator String - Field separator for logs.
- fields List<String>
- List of fields to include in logs.
- file
Name StringTemplate - Template for log file name.
- format
Type String Format type for logs.
Possible values:
- "" - empty, it means it will apply the format configurations from the policy.
- "json" - output the logs as json lines. Available values: "json", "".
- include
Empty BooleanLogs - Include empty logs in the upload.
- include
Shield BooleanLogs - Include logs from origin shielding in the upload.
- log
Sample DoubleRate - Sampling rate for logs. A value between 0 and 1 that determines the fraction of log entries to collect.
- 1 - collect all logs (default).
- 0.5 - collect approximately 50% of logs.
- 0 - collect no logs (effectively disables logging without removing the policy).
- name String
- Name of the policy.
- List<Double>
- List of logs uploader configs that use this policy.
- retry
Interval DoubleMinutes - Interval in minutes to retry failed uploads.
- rotate
Interval DoubleMinutes - Interval in minutes to rotate logs.
- rotate
Threshold DoubleLines - Threshold in lines to rotate logs.
- rotate
Threshold DoubleMb - Threshold in MB to rotate logs.
- Map<String,String>
- Tags allow for dynamic decoration of logs by adding predefined fields to the log format. These tags serve as customizable key-value pairs that can be included in log entries to enhance context and readability.
- updated String
- Time when logs uploader policy was updated.
- cdn
Logs numberUploader Policy Id - client
Id number - Client that owns the policy.
- created string
- Time when logs uploader policy was created.
- date
Format string - Date format for logs.
- description string
- Description of the policy.
- escape
Special booleanCharacters - When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
- field
Delimiter string - Field delimiter for logs.
- field
Separator string - Field separator for logs.
- fields string[]
- List of fields to include in logs.
- file
Name stringTemplate - Template for log file name.
- format
Type string Format type for logs.
Possible values:
- "" - empty, it means it will apply the format configurations from the policy.
- "json" - output the logs as json lines. Available values: "json", "".
- include
Empty booleanLogs - Include empty logs in the upload.
- include
Shield booleanLogs - Include logs from origin shielding in the upload.
- log
Sample numberRate - Sampling rate for logs. A value between 0 and 1 that determines the fraction of log entries to collect.
- 1 - collect all logs (default).
- 0.5 - collect approximately 50% of logs.
- 0 - collect no logs (effectively disables logging without removing the policy).
- name string
- Name of the policy.
- number[]
- List of logs uploader configs that use this policy.
- retry
Interval numberMinutes - Interval in minutes to retry failed uploads.
- rotate
Interval numberMinutes - Interval in minutes to rotate logs.
- rotate
Threshold numberLines - Threshold in lines to rotate logs.
- rotate
Threshold numberMb - Threshold in MB to rotate logs.
- {[key: string]: string}
- Tags allow for dynamic decoration of logs by adding predefined fields to the log format. These tags serve as customizable key-value pairs that can be included in log entries to enhance context and readability.
- updated string
- Time when logs uploader policy was updated.
- cdn_
logs_ floatuploader_ policy_ id - client_
id float - Client that owns the policy.
- created str
- Time when logs uploader policy was created.
- date_
format str - Date format for logs.
- description str
- Description of the policy.
- escape_
special_ boolcharacters - When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
- field_
delimiter str - Field delimiter for logs.
- field_
separator str - Field separator for logs.
- fields Sequence[str]
- List of fields to include in logs.
- file_
name_ strtemplate - Template for log file name.
- format_
type str Format type for logs.
Possible values:
- "" - empty, it means it will apply the format configurations from the policy.
- "json" - output the logs as json lines. Available values: "json", "".
- include_
empty_ boollogs - Include empty logs in the upload.
- include_
shield_ boollogs - Include logs from origin shielding in the upload.
- log_
sample_ floatrate - Sampling rate for logs. A value between 0 and 1 that determines the fraction of log entries to collect.
- 1 - collect all logs (default).
- 0.5 - collect approximately 50% of logs.
- 0 - collect no logs (effectively disables logging without removing the policy).
- name str
- Name of the policy.
- Sequence[float]
- List of logs uploader configs that use this policy.
- retry_
interval_ floatminutes - Interval in minutes to retry failed uploads.
- rotate_
interval_ floatminutes - Interval in minutes to rotate logs.
- rotate_
threshold_ floatlines - Threshold in lines to rotate logs.
- rotate_
threshold_ floatmb - Threshold in MB to rotate logs.
- Mapping[str, str]
- Tags allow for dynamic decoration of logs by adding predefined fields to the log format. These tags serve as customizable key-value pairs that can be included in log entries to enhance context and readability.
- updated str
- Time when logs uploader policy was updated.
- cdn
Logs NumberUploader Policy Id - client
Id Number - Client that owns the policy.
- created String
- Time when logs uploader policy was created.
- date
Format String - Date format for logs.
- description String
- Description of the policy.
- escape
Special BooleanCharacters - When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
- field
Delimiter String - Field delimiter for logs.
- field
Separator String - Field separator for logs.
- fields List<String>
- List of fields to include in logs.
- file
Name StringTemplate - Template for log file name.
- format
Type String Format type for logs.
Possible values:
- "" - empty, it means it will apply the format configurations from the policy.
- "json" - output the logs as json lines. Available values: "json", "".
- include
Empty BooleanLogs - Include empty logs in the upload.
- include
Shield BooleanLogs - Include logs from origin shielding in the upload.
- log
Sample NumberRate - Sampling rate for logs. A value between 0 and 1 that determines the fraction of log entries to collect.
- 1 - collect all logs (default).
- 0.5 - collect approximately 50% of logs.
- 0 - collect no logs (effectively disables logging without removing the policy).
- name String
- Name of the policy.
- List<Number>
- List of logs uploader configs that use this policy.
- retry
Interval NumberMinutes - Interval in minutes to retry failed uploads.
- rotate
Interval NumberMinutes - Interval in minutes to rotate logs.
- rotate
Threshold NumberLines - Threshold in lines to rotate logs.
- rotate
Threshold NumberMb - Threshold in MB to rotate logs.
- Map<String>
- Tags allow for dynamic decoration of logs by adding predefined fields to the log format. These tags serve as customizable key-value pairs that can be included in log entries to enhance context and readability.
- updated String
- Time when logs uploader policy was updated.
Import
The pulumi import command can be used, for example:
$ pulumi import gcore:index/cdnLogsUploaderPolicy:CdnLogsUploaderPolicy example '<id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcoreTerraform Provider.
published on Wednesday, Jul 1, 2026 by g-core