1. Packages
  2. Gcore Provider
  3. API Docs
  4. CdnLogsUploaderPolicy
gcore 0.27.0 published on Friday, Jul 18, 2025 by g-core

gcore.CdnLogsUploaderPolicy

Explore with Pulumi AI

gcore logo
gcore 0.27.0 published on Friday, Jul 18, 2025 by g-core

    Represent CDN logs uploader policy

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const policy1 = new gcore.CdnLogsUploaderPolicy("policy1", {
        fieldSeparator: ";",
        fields: [
            "remote_addr",
            "remote_user",
            "time_local",
            "custom_field_1",
            "custom_field_2",
        ],
        fileNameTemplate: "{{CNAME}}.{{HOST}}.{{TIMESTAMP}}.log",
        includeEmptyLogs: true,
        rotateThresholdLines: 10,
        tags: {
            custom_field_1: "value1",
            custom_field_2: "value2",
        },
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    policy1 = gcore.CdnLogsUploaderPolicy("policy1",
        field_separator=";",
        fields=[
            "remote_addr",
            "remote_user",
            "time_local",
            "custom_field_1",
            "custom_field_2",
        ],
        file_name_template="{{CNAME}}.{{HOST}}.{{TIMESTAMP}}.log",
        include_empty_logs=True,
        rotate_threshold_lines=10,
        tags={
            "custom_field_1": "value1",
            "custom_field_2": "value2",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := gcore.NewCdnLogsUploaderPolicy(ctx, "policy1", &gcore.CdnLogsUploaderPolicyArgs{
    			FieldSeparator: pulumi.String(";"),
    			Fields: pulumi.StringArray{
    				pulumi.String("remote_addr"),
    				pulumi.String("remote_user"),
    				pulumi.String("time_local"),
    				pulumi.String("custom_field_1"),
    				pulumi.String("custom_field_2"),
    			},
    			FileNameTemplate:     pulumi.String("{{CNAME}}.{{HOST}}.{{TIMESTAMP}}.log"),
    			IncludeEmptyLogs:     pulumi.Bool(true),
    			RotateThresholdLines: pulumi.Float64(10),
    			Tags: pulumi.StringMap{
    				"custom_field_1": pulumi.String("value1"),
    				"custom_field_2": pulumi.String("value2"),
    			},
    		})
    		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 policy1 = new Gcore.CdnLogsUploaderPolicy("policy1", new()
        {
            FieldSeparator = ";",
            Fields = new[]
            {
                "remote_addr",
                "remote_user",
                "time_local",
                "custom_field_1",
                "custom_field_2",
            },
            FileNameTemplate = "{{CNAME}}.{{HOST}}.{{TIMESTAMP}}.log",
            IncludeEmptyLogs = true,
            RotateThresholdLines = 10,
            Tags = 
            {
                { "custom_field_1", "value1" },
                { "custom_field_2", "value2" },
            },
        });
    
    });
    
    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 policy1 = new CdnLogsUploaderPolicy("policy1", CdnLogsUploaderPolicyArgs.builder()
                .fieldSeparator(";")
                .fields(            
                    "remote_addr",
                    "remote_user",
                    "time_local",
                    "custom_field_1",
                    "custom_field_2")
                .fileNameTemplate("{{CNAME}}.{{HOST}}.{{TIMESTAMP}}.log")
                .includeEmptyLogs(true)
                .rotateThresholdLines(10)
                .tags(Map.ofEntries(
                    Map.entry("custom_field_1", "value1"),
                    Map.entry("custom_field_2", "value2")
                ))
                .build());
    
        }
    }
    
    resources:
      policy1:
        type: gcore:CdnLogsUploaderPolicy
        properties:
          fieldSeparator: ;
          fields:
            - remote_addr
            - remote_user
            - time_local
            - custom_field_1
            - custom_field_2
          fileNameTemplate: '{{CNAME}}.{{HOST}}.{{TIMESTAMP}}.log'
          includeEmptyLogs: true
          rotateThresholdLines: 10
          tags:
            custom_field_1: value1
            custom_field_2: value2
    

    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: CdnLogsUploaderPolicyArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def CdnLogsUploaderPolicy(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              fields: Optional[Sequence[str]] = None,
                              include_empty_logs: Optional[bool] = None,
                              retry_interval_minutes: Optional[float] = None,
                              field_delimiter: Optional[str] = None,
                              field_separator: Optional[str] = None,
                              date_format: Optional[str] = None,
                              file_name_template: Optional[str] = None,
                              description: Optional[str] = None,
                              include_shield_logs: Optional[bool] = None,
                              format_type: Optional[str] = None,
                              name: Optional[str] = None,
                              cdn_logs_uploader_policy_id: Optional[str] = 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, 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.
    
    

    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()
    {
        Fields = new[]
        {
            "string",
        },
        IncludeEmptyLogs = false,
        RetryIntervalMinutes = 0,
        FieldDelimiter = "string",
        FieldSeparator = "string",
        DateFormat = "string",
        FileNameTemplate = "string",
        Description = "string",
        IncludeShieldLogs = false,
        FormatType = "string",
        Name = "string",
        CdnLogsUploaderPolicyId = "string",
        RotateIntervalMinutes = 0,
        RotateThresholdLines = 0,
        RotateThresholdMb = 0,
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := gcore.NewCdnLogsUploaderPolicy(ctx, "cdnLogsUploaderPolicyResource", &gcore.CdnLogsUploaderPolicyArgs{
    	Fields: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	IncludeEmptyLogs:        pulumi.Bool(false),
    	RetryIntervalMinutes:    pulumi.Float64(0),
    	FieldDelimiter:          pulumi.String("string"),
    	FieldSeparator:          pulumi.String("string"),
    	DateFormat:              pulumi.String("string"),
    	FileNameTemplate:        pulumi.String("string"),
    	Description:             pulumi.String("string"),
    	IncludeShieldLogs:       pulumi.Bool(false),
    	FormatType:              pulumi.String("string"),
    	Name:                    pulumi.String("string"),
    	CdnLogsUploaderPolicyId: pulumi.String("string"),
    	RotateIntervalMinutes:   pulumi.Float64(0),
    	RotateThresholdLines:    pulumi.Float64(0),
    	RotateThresholdMb:       pulumi.Float64(0),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var cdnLogsUploaderPolicyResource = new CdnLogsUploaderPolicy("cdnLogsUploaderPolicyResource", CdnLogsUploaderPolicyArgs.builder()
        .fields("string")
        .includeEmptyLogs(false)
        .retryIntervalMinutes(0.0)
        .fieldDelimiter("string")
        .fieldSeparator("string")
        .dateFormat("string")
        .fileNameTemplate("string")
        .description("string")
        .includeShieldLogs(false)
        .formatType("string")
        .name("string")
        .cdnLogsUploaderPolicyId("string")
        .rotateIntervalMinutes(0.0)
        .rotateThresholdLines(0.0)
        .rotateThresholdMb(0.0)
        .tags(Map.of("string", "string"))
        .build());
    
    cdn_logs_uploader_policy_resource = gcore.CdnLogsUploaderPolicy("cdnLogsUploaderPolicyResource",
        fields=["string"],
        include_empty_logs=False,
        retry_interval_minutes=0,
        field_delimiter="string",
        field_separator="string",
        date_format="string",
        file_name_template="string",
        description="string",
        include_shield_logs=False,
        format_type="string",
        name="string",
        cdn_logs_uploader_policy_id="string",
        rotate_interval_minutes=0,
        rotate_threshold_lines=0,
        rotate_threshold_mb=0,
        tags={
            "string": "string",
        })
    
    const cdnLogsUploaderPolicyResource = new gcore.CdnLogsUploaderPolicy("cdnLogsUploaderPolicyResource", {
        fields: ["string"],
        includeEmptyLogs: false,
        retryIntervalMinutes: 0,
        fieldDelimiter: "string",
        fieldSeparator: "string",
        dateFormat: "string",
        fileNameTemplate: "string",
        description: "string",
        includeShieldLogs: false,
        formatType: "string",
        name: "string",
        cdnLogsUploaderPolicyId: "string",
        rotateIntervalMinutes: 0,
        rotateThresholdLines: 0,
        rotateThresholdMb: 0,
        tags: {
            string: "string",
        },
    });
    
    type: gcore:CdnLogsUploaderPolicy
    properties:
        cdnLogsUploaderPolicyId: string
        dateFormat: string
        description: string
        fieldDelimiter: string
        fieldSeparator: string
        fields:
            - string
        fileNameTemplate: string
        formatType: string
        includeEmptyLogs: false
        includeShieldLogs: false
        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:

    Fields List<string>
    List of fields to include in logs.
    CdnLogsUploaderPolicyId string
    The ID of this resource.
    DateFormat string
    Date format for logs. Default value is empty string.
    Description string
    Description of the policy. Default value is empty string.
    FieldDelimiter string
    Field delimiter for logs. Default value is ".
    FieldSeparator string
    Field separator for logs. Default value is a space character.
    FileNameTemplate string
    Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
    FormatType string
    Format type for logs. Default value is empty string.
    IncludeEmptyLogs bool
    Include empty logs in the upload. Default value is false.
    IncludeShieldLogs bool
    Include logs from origin shielding in the upload. Default value is false.
    Name string
    Name of the policy. Default value is "Policy".
    RetryIntervalMinutes double
    Interval in minutes to retry failed uploads. Default value is 60.
    RotateIntervalMinutes double
    Interval in minutes to rotate logs. Default value is 5.
    RotateThresholdLines double
    Threshold in lines to rotate logs. Default value is 0.
    RotateThresholdMb double
    Threshold in MB to rotate logs. Default value is nil.
    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.
    Fields []string
    List of fields to include in logs.
    CdnLogsUploaderPolicyId string
    The ID of this resource.
    DateFormat string
    Date format for logs. Default value is empty string.
    Description string
    Description of the policy. Default value is empty string.
    FieldDelimiter string
    Field delimiter for logs. Default value is ".
    FieldSeparator string
    Field separator for logs. Default value is a space character.
    FileNameTemplate string
    Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
    FormatType string
    Format type for logs. Default value is empty string.
    IncludeEmptyLogs bool
    Include empty logs in the upload. Default value is false.
    IncludeShieldLogs bool
    Include logs from origin shielding in the upload. Default value is false.
    Name string
    Name of the policy. Default value is "Policy".
    RetryIntervalMinutes float64
    Interval in minutes to retry failed uploads. Default value is 60.
    RotateIntervalMinutes float64
    Interval in minutes to rotate logs. Default value is 5.
    RotateThresholdLines float64
    Threshold in lines to rotate logs. Default value is 0.
    RotateThresholdMb float64
    Threshold in MB to rotate logs. Default value is nil.
    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.
    fields List<String>
    List of fields to include in logs.
    cdnLogsUploaderPolicyId String
    The ID of this resource.
    dateFormat String
    Date format for logs. Default value is empty string.
    description String
    Description of the policy. Default value is empty string.
    fieldDelimiter String
    Field delimiter for logs. Default value is ".
    fieldSeparator String
    Field separator for logs. Default value is a space character.
    fileNameTemplate String
    Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
    formatType String
    Format type for logs. Default value is empty string.
    includeEmptyLogs Boolean
    Include empty logs in the upload. Default value is false.
    includeShieldLogs Boolean
    Include logs from origin shielding in the upload. Default value is false.
    name String
    Name of the policy. Default value is "Policy".
    retryIntervalMinutes Double
    Interval in minutes to retry failed uploads. Default value is 60.
    rotateIntervalMinutes Double
    Interval in minutes to rotate logs. Default value is 5.
    rotateThresholdLines Double
    Threshold in lines to rotate logs. Default value is 0.
    rotateThresholdMb Double
    Threshold in MB to rotate logs. Default value is nil.
    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.
    fields string[]
    List of fields to include in logs.
    cdnLogsUploaderPolicyId string
    The ID of this resource.
    dateFormat string
    Date format for logs. Default value is empty string.
    description string
    Description of the policy. Default value is empty string.
    fieldDelimiter string
    Field delimiter for logs. Default value is ".
    fieldSeparator string
    Field separator for logs. Default value is a space character.
    fileNameTemplate string
    Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
    formatType string
    Format type for logs. Default value is empty string.
    includeEmptyLogs boolean
    Include empty logs in the upload. Default value is false.
    includeShieldLogs boolean
    Include logs from origin shielding in the upload. Default value is false.
    name string
    Name of the policy. Default value is "Policy".
    retryIntervalMinutes number
    Interval in minutes to retry failed uploads. Default value is 60.
    rotateIntervalMinutes number
    Interval in minutes to rotate logs. Default value is 5.
    rotateThresholdLines number
    Threshold in lines to rotate logs. Default value is 0.
    rotateThresholdMb number
    Threshold in MB to rotate logs. Default value is nil.
    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.
    fields Sequence[str]
    List of fields to include in logs.
    cdn_logs_uploader_policy_id str
    The ID of this resource.
    date_format str
    Date format for logs. Default value is empty string.
    description str
    Description of the policy. Default value is empty string.
    field_delimiter str
    Field delimiter for logs. Default value is ".
    field_separator str
    Field separator for logs. Default value is a space character.
    file_name_template str
    Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
    format_type str
    Format type for logs. Default value is empty string.
    include_empty_logs bool
    Include empty logs in the upload. Default value is false.
    include_shield_logs bool
    Include logs from origin shielding in the upload. Default value is false.
    name str
    Name of the policy. Default value is "Policy".
    retry_interval_minutes float
    Interval in minutes to retry failed uploads. Default value is 60.
    rotate_interval_minutes float
    Interval in minutes to rotate logs. Default value is 5.
    rotate_threshold_lines float
    Threshold in lines to rotate logs. Default value is 0.
    rotate_threshold_mb float
    Threshold in MB to rotate logs. Default value is nil.
    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.
    fields List<String>
    List of fields to include in logs.
    cdnLogsUploaderPolicyId String
    The ID of this resource.
    dateFormat String
    Date format for logs. Default value is empty string.
    description String
    Description of the policy. Default value is empty string.
    fieldDelimiter String
    Field delimiter for logs. Default value is ".
    fieldSeparator String
    Field separator for logs. Default value is a space character.
    fileNameTemplate String
    Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
    formatType String
    Format type for logs. Default value is empty string.
    includeEmptyLogs Boolean
    Include empty logs in the upload. Default value is false.
    includeShieldLogs Boolean
    Include logs from origin shielding in the upload. Default value is false.
    name String
    Name of the policy. Default value is "Policy".
    retryIntervalMinutes Number
    Interval in minutes to retry failed uploads. Default value is 60.
    rotateIntervalMinutes Number
    Interval in minutes to rotate logs. Default value is 5.
    rotateThresholdLines Number
    Threshold in lines to rotate logs. Default value is 0.
    rotateThresholdMb Number
    Threshold in MB to rotate logs. Default value is nil.
    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:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    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[str] = None,
            date_format: Optional[str] = None,
            description: Optional[str] = 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,
            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) -> 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}
    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 string
    The ID of this resource.
    DateFormat string
    Date format for logs. Default value is empty string.
    Description string
    Description of the policy. Default value is empty string.
    FieldDelimiter string
    Field delimiter for logs. Default value is ".
    FieldSeparator string
    Field separator for logs. Default value is a space character.
    Fields List<string>
    List of fields to include in logs.
    FileNameTemplate string
    Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
    FormatType string
    Format type for logs. Default value is empty string.
    IncludeEmptyLogs bool
    Include empty logs in the upload. Default value is false.
    IncludeShieldLogs bool
    Include logs from origin shielding in the upload. Default value is false.
    Name string
    Name of the policy. Default value is "Policy".
    RetryIntervalMinutes double
    Interval in minutes to retry failed uploads. Default value is 60.
    RotateIntervalMinutes double
    Interval in minutes to rotate logs. Default value is 5.
    RotateThresholdLines double
    Threshold in lines to rotate logs. Default value is 0.
    RotateThresholdMb double
    Threshold in MB to rotate logs. Default value is nil.
    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.
    CdnLogsUploaderPolicyId string
    The ID of this resource.
    DateFormat string
    Date format for logs. Default value is empty string.
    Description string
    Description of the policy. Default value is empty string.
    FieldDelimiter string
    Field delimiter for logs. Default value is ".
    FieldSeparator string
    Field separator for logs. Default value is a space character.
    Fields []string
    List of fields to include in logs.
    FileNameTemplate string
    Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
    FormatType string
    Format type for logs. Default value is empty string.
    IncludeEmptyLogs bool
    Include empty logs in the upload. Default value is false.
    IncludeShieldLogs bool
    Include logs from origin shielding in the upload. Default value is false.
    Name string
    Name of the policy. Default value is "Policy".
    RetryIntervalMinutes float64
    Interval in minutes to retry failed uploads. Default value is 60.
    RotateIntervalMinutes float64
    Interval in minutes to rotate logs. Default value is 5.
    RotateThresholdLines float64
    Threshold in lines to rotate logs. Default value is 0.
    RotateThresholdMb float64
    Threshold in MB to rotate logs. Default value is nil.
    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.
    cdnLogsUploaderPolicyId String
    The ID of this resource.
    dateFormat String
    Date format for logs. Default value is empty string.
    description String
    Description of the policy. Default value is empty string.
    fieldDelimiter String
    Field delimiter for logs. Default value is ".
    fieldSeparator String
    Field separator for logs. Default value is a space character.
    fields List<String>
    List of fields to include in logs.
    fileNameTemplate String
    Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
    formatType String
    Format type for logs. Default value is empty string.
    includeEmptyLogs Boolean
    Include empty logs in the upload. Default value is false.
    includeShieldLogs Boolean
    Include logs from origin shielding in the upload. Default value is false.
    name String
    Name of the policy. Default value is "Policy".
    retryIntervalMinutes Double
    Interval in minutes to retry failed uploads. Default value is 60.
    rotateIntervalMinutes Double
    Interval in minutes to rotate logs. Default value is 5.
    rotateThresholdLines Double
    Threshold in lines to rotate logs. Default value is 0.
    rotateThresholdMb Double
    Threshold in MB to rotate logs. Default value is nil.
    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.
    cdnLogsUploaderPolicyId string
    The ID of this resource.
    dateFormat string
    Date format for logs. Default value is empty string.
    description string
    Description of the policy. Default value is empty string.
    fieldDelimiter string
    Field delimiter for logs. Default value is ".
    fieldSeparator string
    Field separator for logs. Default value is a space character.
    fields string[]
    List of fields to include in logs.
    fileNameTemplate string
    Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
    formatType string
    Format type for logs. Default value is empty string.
    includeEmptyLogs boolean
    Include empty logs in the upload. Default value is false.
    includeShieldLogs boolean
    Include logs from origin shielding in the upload. Default value is false.
    name string
    Name of the policy. Default value is "Policy".
    retryIntervalMinutes number
    Interval in minutes to retry failed uploads. Default value is 60.
    rotateIntervalMinutes number
    Interval in minutes to rotate logs. Default value is 5.
    rotateThresholdLines number
    Threshold in lines to rotate logs. Default value is 0.
    rotateThresholdMb number
    Threshold in MB to rotate logs. Default value is nil.
    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.
    cdn_logs_uploader_policy_id str
    The ID of this resource.
    date_format str
    Date format for logs. Default value is empty string.
    description str
    Description of the policy. Default value is empty string.
    field_delimiter str
    Field delimiter for logs. Default value is ".
    field_separator str
    Field separator for logs. Default value is a space character.
    fields Sequence[str]
    List of fields to include in logs.
    file_name_template str
    Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
    format_type str
    Format type for logs. Default value is empty string.
    include_empty_logs bool
    Include empty logs in the upload. Default value is false.
    include_shield_logs bool
    Include logs from origin shielding in the upload. Default value is false.
    name str
    Name of the policy. Default value is "Policy".
    retry_interval_minutes float
    Interval in minutes to retry failed uploads. Default value is 60.
    rotate_interval_minutes float
    Interval in minutes to rotate logs. Default value is 5.
    rotate_threshold_lines float
    Threshold in lines to rotate logs. Default value is 0.
    rotate_threshold_mb float
    Threshold in MB to rotate logs. Default value is nil.
    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.
    cdnLogsUploaderPolicyId String
    The ID of this resource.
    dateFormat String
    Date format for logs. Default value is empty string.
    description String
    Description of the policy. Default value is empty string.
    fieldDelimiter String
    Field delimiter for logs. Default value is ".
    fieldSeparator String
    Field separator for logs. Default value is a space character.
    fields List<String>
    List of fields to include in logs.
    fileNameTemplate String
    Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
    formatType String
    Format type for logs. Default value is empty string.
    includeEmptyLogs Boolean
    Include empty logs in the upload. Default value is false.
    includeShieldLogs Boolean
    Include logs from origin shielding in the upload. Default value is false.
    name String
    Name of the policy. Default value is "Policy".
    retryIntervalMinutes Number
    Interval in minutes to retry failed uploads. Default value is 60.
    rotateIntervalMinutes Number
    Interval in minutes to rotate logs. Default value is 5.
    rotateThresholdLines Number
    Threshold in lines to rotate logs. Default value is 0.
    rotateThresholdMb Number
    Threshold in MB to rotate logs. Default value is nil.
    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.

    Package Details

    Repository
    gcore g-core/terraform-provider-gcore
    License
    Notes
    This Pulumi package is based on the gcore Terraform Provider.
    gcore logo
    gcore 0.27.0 published on Friday, Jul 18, 2025 by g-core