1. Packages
  2. Packages
  3. Gcore Provider
  4. API Docs
  5. CdnLogsUploaderPolicy
Viewing docs for gcore 2.0.0-alpha.11
published on Wednesday, Jul 1, 2026 by g-core
Viewing docs for gcore 2.0.0-alpha.11
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:

    DateFormat string
    Date format for logs.
    Description string
    Description of the policy.
    EscapeSpecialCharacters bool
    When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
    FieldDelimiter string
    Field delimiter for logs.
    FieldSeparator string
    Field separator for logs.
    Fields List<string>
    List of fields to include in logs.
    FileNameTemplate string
    Template for log file name.
    FormatType 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", "".
    IncludeEmptyLogs bool
    Include empty logs in the upload.
    IncludeShieldLogs bool
    Include logs from origin shielding in the upload.
    LogSampleRate double
    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.
    RetryIntervalMinutes double
    Interval in minutes to retry failed uploads.
    RotateIntervalMinutes double
    Interval in minutes to rotate logs.
    RotateThresholdLines double
    Threshold in lines to rotate logs.
    RotateThresholdMb double
    Threshold in MB to rotate logs.
    Tags 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.
    DateFormat string
    Date format for logs.
    Description string
    Description of the policy.
    EscapeSpecialCharacters bool
    When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
    FieldDelimiter string
    Field delimiter for logs.
    FieldSeparator string
    Field separator for logs.
    Fields []string
    List of fields to include in logs.
    FileNameTemplate string
    Template for log file name.
    FormatType 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", "".
    IncludeEmptyLogs bool
    Include empty logs in the upload.
    IncludeShieldLogs bool
    Include logs from origin shielding in the upload.
    LogSampleRate float64
    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.
    RetryIntervalMinutes float64
    Interval in minutes to retry failed uploads.
    RotateIntervalMinutes float64
    Interval in minutes to rotate logs.
    RotateThresholdLines float64
    Threshold in lines to rotate logs.
    RotateThresholdMb float64
    Threshold in MB to rotate logs.
    Tags 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_characters bool
    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_template string
    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_logs bool
    Include empty logs in the upload.
    include_shield_logs bool
    Include logs from origin shielding in the upload.
    log_sample_rate number
    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_minutes number
    Interval in minutes to retry failed uploads.
    rotate_interval_minutes number
    Interval in minutes to rotate logs.
    rotate_threshold_lines number
    Threshold in lines to rotate logs.
    rotate_threshold_mb number
    Threshold in MB to rotate logs.
    tags 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.
    dateFormat String
    Date format for logs.
    description String
    Description of the policy.
    escapeSpecialCharacters Boolean
    When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
    fieldDelimiter String
    Field delimiter for logs.
    fieldSeparator String
    Field separator for logs.
    fields List<String>
    List of fields to include in logs.
    fileNameTemplate String
    Template for log file name.
    formatType 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", "".
    includeEmptyLogs Boolean
    Include empty logs in the upload.
    includeShieldLogs Boolean
    Include logs from origin shielding in the upload.
    logSampleRate Double
    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.
    retryIntervalMinutes Double
    Interval in minutes to retry failed uploads.
    rotateIntervalMinutes Double
    Interval in minutes to rotate logs.
    rotateThresholdLines Double
    Threshold in lines to rotate logs.
    rotateThresholdMb Double
    Threshold in MB to rotate logs.
    tags 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.
    dateFormat string
    Date format for logs.
    description string
    Description of the policy.
    escapeSpecialCharacters boolean
    When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
    fieldDelimiter string
    Field delimiter for logs.
    fieldSeparator string
    Field separator for logs.
    fields string[]
    List of fields to include in logs.
    fileNameTemplate string
    Template for log file name.
    formatType 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", "".
    includeEmptyLogs boolean
    Include empty logs in the upload.
    includeShieldLogs boolean
    Include logs from origin shielding in the upload.
    logSampleRate number
    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.
    retryIntervalMinutes number
    Interval in minutes to retry failed uploads.
    rotateIntervalMinutes number
    Interval in minutes to rotate logs.
    rotateThresholdLines number
    Threshold in lines to rotate logs.
    rotateThresholdMb number
    Threshold in MB to rotate logs.
    tags {[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_characters bool
    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_template str
    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_logs bool
    Include empty logs in the upload.
    include_shield_logs bool
    Include logs from origin shielding in the upload.
    log_sample_rate float
    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_minutes float
    Interval in minutes to retry failed uploads.
    rotate_interval_minutes float
    Interval in minutes to rotate logs.
    rotate_threshold_lines float
    Threshold in lines to rotate logs.
    rotate_threshold_mb float
    Threshold in MB to rotate logs.
    tags 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.
    dateFormat String
    Date format for logs.
    description String
    Description of the policy.
    escapeSpecialCharacters Boolean
    When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
    fieldDelimiter String
    Field delimiter for logs.
    fieldSeparator String
    Field separator for logs.
    fields List<String>
    List of fields to include in logs.
    fileNameTemplate String
    Template for log file name.
    formatType 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", "".
    includeEmptyLogs Boolean
    Include empty logs in the upload.
    includeShieldLogs Boolean
    Include logs from origin shielding in the upload.
    logSampleRate Number
    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.
    retryIntervalMinutes Number
    Interval in minutes to retry failed uploads.
    rotateIntervalMinutes Number
    Interval in minutes to rotate logs.
    rotateThresholdLines Number
    Threshold in lines to rotate logs.
    rotateThresholdMb Number
    Threshold in MB to rotate logs.
    tags 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:

    CdnLogsUploaderPolicyId double
    ClientId 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.
    RelatedUploaderConfigs List<double>
    List of logs uploader configs that use this policy.
    Updated string
    Time when logs uploader policy was updated.
    CdnLogsUploaderPolicyId float64
    ClientId 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.
    RelatedUploaderConfigs []float64
    List of logs uploader configs that use this policy.
    Updated string
    Time when logs uploader policy was updated.
    cdn_logs_uploader_policy_id number
    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.
    related_uploader_configs list(number)
    List of logs uploader configs that use this policy.
    updated string
    Time when logs uploader policy was updated.
    cdnLogsUploaderPolicyId Double
    clientId 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.
    relatedUploaderConfigs List<Double>
    List of logs uploader configs that use this policy.
    updated String
    Time when logs uploader policy was updated.
    cdnLogsUploaderPolicyId number
    clientId 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.
    relatedUploaderConfigs number[]
    List of logs uploader configs that use this policy.
    updated string
    Time when logs uploader policy was updated.
    cdn_logs_uploader_policy_id float
    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.
    related_uploader_configs Sequence[float]
    List of logs uploader configs that use this policy.
    updated str
    Time when logs uploader policy was updated.
    cdnLogsUploaderPolicyId Number
    clientId 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.
    relatedUploaderConfigs 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) -> CdnLogsUploaderPolicy
    func 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.
    The following state arguments are supported:
    CdnLogsUploaderPolicyId double
    ClientId double
    Client that owns the policy.
    Created string
    Time when logs uploader policy was created.
    DateFormat string
    Date format for logs.
    Description string
    Description of the policy.
    EscapeSpecialCharacters bool
    When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
    FieldDelimiter string
    Field delimiter for logs.
    FieldSeparator string
    Field separator for logs.
    Fields List<string>
    List of fields to include in logs.
    FileNameTemplate string
    Template for log file name.
    FormatType 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", "".
    IncludeEmptyLogs bool
    Include empty logs in the upload.
    IncludeShieldLogs bool
    Include logs from origin shielding in the upload.
    LogSampleRate double
    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.
    RelatedUploaderConfigs List<double>
    List of logs uploader configs that use this policy.
    RetryIntervalMinutes double
    Interval in minutes to retry failed uploads.
    RotateIntervalMinutes double
    Interval in minutes to rotate logs.
    RotateThresholdLines double
    Threshold in lines to rotate logs.
    RotateThresholdMb double
    Threshold in MB to rotate logs.
    Tags 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.
    CdnLogsUploaderPolicyId float64
    ClientId float64
    Client that owns the policy.
    Created string
    Time when logs uploader policy was created.
    DateFormat string
    Date format for logs.
    Description string
    Description of the policy.
    EscapeSpecialCharacters bool
    When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
    FieldDelimiter string
    Field delimiter for logs.
    FieldSeparator string
    Field separator for logs.
    Fields []string
    List of fields to include in logs.
    FileNameTemplate string
    Template for log file name.
    FormatType 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", "".
    IncludeEmptyLogs bool
    Include empty logs in the upload.
    IncludeShieldLogs bool
    Include logs from origin shielding in the upload.
    LogSampleRate float64
    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.
    RelatedUploaderConfigs []float64
    List of logs uploader configs that use this policy.
    RetryIntervalMinutes float64
    Interval in minutes to retry failed uploads.
    RotateIntervalMinutes float64
    Interval in minutes to rotate logs.
    RotateThresholdLines float64
    Threshold in lines to rotate logs.
    RotateThresholdMb float64
    Threshold in MB to rotate logs.
    Tags 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_uploader_policy_id number
    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_characters bool
    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_template string
    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_logs bool
    Include empty logs in the upload.
    include_shield_logs bool
    Include logs from origin shielding in the upload.
    log_sample_rate number
    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.
    related_uploader_configs list(number)
    List of logs uploader configs that use this policy.
    retry_interval_minutes number
    Interval in minutes to retry failed uploads.
    rotate_interval_minutes number
    Interval in minutes to rotate logs.
    rotate_threshold_lines number
    Threshold in lines to rotate logs.
    rotate_threshold_mb number
    Threshold in MB to rotate logs.
    tags 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.
    cdnLogsUploaderPolicyId Double
    clientId Double
    Client that owns the policy.
    created String
    Time when logs uploader policy was created.
    dateFormat String
    Date format for logs.
    description String
    Description of the policy.
    escapeSpecialCharacters Boolean
    When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
    fieldDelimiter String
    Field delimiter for logs.
    fieldSeparator String
    Field separator for logs.
    fields List<String>
    List of fields to include in logs.
    fileNameTemplate String
    Template for log file name.
    formatType 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", "".
    includeEmptyLogs Boolean
    Include empty logs in the upload.
    includeShieldLogs Boolean
    Include logs from origin shielding in the upload.
    logSampleRate Double
    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.
    relatedUploaderConfigs List<Double>
    List of logs uploader configs that use this policy.
    retryIntervalMinutes Double
    Interval in minutes to retry failed uploads.
    rotateIntervalMinutes Double
    Interval in minutes to rotate logs.
    rotateThresholdLines Double
    Threshold in lines to rotate logs.
    rotateThresholdMb Double
    Threshold in MB to rotate logs.
    tags 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.
    cdnLogsUploaderPolicyId number
    clientId number
    Client that owns the policy.
    created string
    Time when logs uploader policy was created.
    dateFormat string
    Date format for logs.
    description string
    Description of the policy.
    escapeSpecialCharacters boolean
    When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
    fieldDelimiter string
    Field delimiter for logs.
    fieldSeparator string
    Field separator for logs.
    fields string[]
    List of fields to include in logs.
    fileNameTemplate string
    Template for log file name.
    formatType 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", "".
    includeEmptyLogs boolean
    Include empty logs in the upload.
    includeShieldLogs boolean
    Include logs from origin shielding in the upload.
    logSampleRate number
    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.
    relatedUploaderConfigs number[]
    List of logs uploader configs that use this policy.
    retryIntervalMinutes number
    Interval in minutes to retry failed uploads.
    rotateIntervalMinutes number
    Interval in minutes to rotate logs.
    rotateThresholdLines number
    Threshold in lines to rotate logs.
    rotateThresholdMb number
    Threshold in MB to rotate logs.
    tags {[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_uploader_policy_id float
    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_characters bool
    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_template str
    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_logs bool
    Include empty logs in the upload.
    include_shield_logs bool
    Include logs from origin shielding in the upload.
    log_sample_rate float
    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.
    related_uploader_configs Sequence[float]
    List of logs uploader configs that use this policy.
    retry_interval_minutes float
    Interval in minutes to retry failed uploads.
    rotate_interval_minutes float
    Interval in minutes to rotate logs.
    rotate_threshold_lines float
    Threshold in lines to rotate logs.
    rotate_threshold_mb float
    Threshold in MB to rotate logs.
    tags 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.
    cdnLogsUploaderPolicyId Number
    clientId Number
    Client that owns the policy.
    created String
    Time when logs uploader policy was created.
    dateFormat String
    Date format for logs.
    description String
    Description of the policy.
    escapeSpecialCharacters Boolean
    When set to true, the service sanitizes string values by escaping characters that may be unsafe for transport, logging, or downstream processing.
    fieldDelimiter String
    Field delimiter for logs.
    fieldSeparator String
    Field separator for logs.
    fields List<String>
    List of fields to include in logs.
    fileNameTemplate String
    Template for log file name.
    formatType 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", "".
    includeEmptyLogs Boolean
    Include empty logs in the upload.
    includeShieldLogs Boolean
    Include logs from origin shielding in the upload.
    logSampleRate Number
    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.
    relatedUploaderConfigs List<Number>
    List of logs uploader configs that use this policy.
    retryIntervalMinutes Number
    Interval in minutes to retry failed uploads.
    rotateIntervalMinutes Number
    Interval in minutes to rotate logs.
    rotateThresholdLines Number
    Threshold in lines to rotate logs.
    rotateThresholdMb Number
    Threshold in MB to rotate logs.
    tags 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 gcore Terraform Provider.
    Viewing docs for gcore 2.0.0-alpha.11
    published on Wednesday, Jul 1, 2026 by g-core

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial