gcore.CdnLogsUploaderPolicy
Explore with Pulumi AI
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.
- Cdn
Logs stringUploader Policy Id - The ID of this resource.
- Date
Format string - Date format for logs. Default value is empty string.
- Description string
- Description of the policy. Default value is empty string.
- Field
Delimiter string - Field delimiter for logs. Default value is ".
- Field
Separator string - Field separator for logs. Default value is a space character.
- File
Name stringTemplate - Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
- Format
Type string - Format type for logs. Default value is empty string.
- Include
Empty boolLogs - Include empty logs in the upload. Default value is false.
- Include
Shield boolLogs - Include logs from origin shielding in the upload. Default value is false.
- Name string
- Name of the policy. Default value is "Policy".
- Retry
Interval doubleMinutes - Interval in minutes to retry failed uploads. Default value is 60.
- Rotate
Interval doubleMinutes - Interval in minutes to rotate logs. Default value is 5.
- Rotate
Threshold doubleLines - Threshold in lines to rotate logs. Default value is 0.
- Rotate
Threshold doubleMb - Threshold in MB to rotate logs. Default value is nil.
- 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.
- Cdn
Logs stringUploader Policy Id - The ID of this resource.
- Date
Format string - Date format for logs. Default value is empty string.
- Description string
- Description of the policy. Default value is empty string.
- Field
Delimiter string - Field delimiter for logs. Default value is ".
- Field
Separator string - Field separator for logs. Default value is a space character.
- File
Name stringTemplate - Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
- Format
Type string - Format type for logs. Default value is empty string.
- Include
Empty boolLogs - Include empty logs in the upload. Default value is false.
- Include
Shield boolLogs - Include logs from origin shielding in the upload. Default value is false.
- Name string
- Name of the policy. Default value is "Policy".
- Retry
Interval float64Minutes - Interval in minutes to retry failed uploads. Default value is 60.
- Rotate
Interval float64Minutes - Interval in minutes to rotate logs. Default value is 5.
- Rotate
Threshold float64Lines - Threshold in lines to rotate logs. Default value is 0.
- Rotate
Threshold float64Mb - Threshold in MB to rotate logs. Default value is nil.
- 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.
- cdn
Logs StringUploader Policy Id - The ID of this resource.
- date
Format String - Date format for logs. Default value is empty string.
- description String
- Description of the policy. Default value is empty string.
- field
Delimiter String - Field delimiter for logs. Default value is ".
- field
Separator String - Field separator for logs. Default value is a space character.
- file
Name StringTemplate - Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
- format
Type String - Format type for logs. Default value is empty string.
- include
Empty BooleanLogs - Include empty logs in the upload. Default value is false.
- include
Shield BooleanLogs - Include logs from origin shielding in the upload. Default value is false.
- name String
- Name of the policy. Default value is "Policy".
- retry
Interval DoubleMinutes - Interval in minutes to retry failed uploads. Default value is 60.
- rotate
Interval DoubleMinutes - Interval in minutes to rotate logs. Default value is 5.
- rotate
Threshold DoubleLines - Threshold in lines to rotate logs. Default value is 0.
- rotate
Threshold DoubleMb - Threshold in MB to rotate logs. Default value is nil.
- 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.
- cdn
Logs stringUploader Policy Id - The ID of this resource.
- date
Format string - Date format for logs. Default value is empty string.
- description string
- Description of the policy. Default value is empty string.
- field
Delimiter string - Field delimiter for logs. Default value is ".
- field
Separator string - Field separator for logs. Default value is a space character.
- file
Name stringTemplate - Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
- format
Type string - Format type for logs. Default value is empty string.
- include
Empty booleanLogs - Include empty logs in the upload. Default value is false.
- include
Shield booleanLogs - Include logs from origin shielding in the upload. Default value is false.
- name string
- Name of the policy. Default value is "Policy".
- retry
Interval numberMinutes - Interval in minutes to retry failed uploads. Default value is 60.
- rotate
Interval numberMinutes - Interval in minutes to rotate logs. Default value is 5.
- rotate
Threshold numberLines - Threshold in lines to rotate logs. Default value is 0.
- rotate
Threshold numberMb - Threshold in MB to rotate logs. Default value is nil.
- {[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_ struploader_ policy_ id - 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_ strtemplate - 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_ boollogs - Include empty logs in the upload. Default value is false.
- include_
shield_ boollogs - Include logs from origin shielding in the upload. Default value is false.
- name str
- Name of the policy. Default value is "Policy".
- retry_
interval_ floatminutes - Interval in minutes to retry failed uploads. Default value is 60.
- rotate_
interval_ floatminutes - Interval in minutes to rotate logs. Default value is 5.
- rotate_
threshold_ floatlines - Threshold in lines to rotate logs. Default value is 0.
- rotate_
threshold_ floatmb - Threshold in MB to rotate logs. Default value is nil.
- 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.
- cdn
Logs StringUploader Policy Id - The ID of this resource.
- date
Format String - Date format for logs. Default value is empty string.
- description String
- Description of the policy. Default value is empty string.
- field
Delimiter String - Field delimiter for logs. Default value is ".
- field
Separator String - Field separator for logs. Default value is a space character.
- file
Name StringTemplate - Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
- format
Type String - Format type for logs. Default value is empty string.
- include
Empty BooleanLogs - Include empty logs in the upload. Default value is false.
- include
Shield BooleanLogs - Include logs from origin shielding in the upload. Default value is false.
- name String
- Name of the policy. Default value is "Policy".
- retry
Interval NumberMinutes - Interval in minutes to retry failed uploads. Default value is 60.
- rotate
Interval NumberMinutes - Interval in minutes to rotate logs. Default value is 5.
- rotate
Threshold NumberLines - Threshold in lines to rotate logs. Default value is 0.
- rotate
Threshold NumberMb - Threshold in MB to rotate logs. Default value is nil.
- 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.
- Cdn
Logs stringUploader Policy Id - The ID of this resource.
- Date
Format string - Date format for logs. Default value is empty string.
- Description string
- Description of the policy. Default value is empty string.
- Field
Delimiter string - Field delimiter for logs. Default value is ".
- Field
Separator string - Field separator for logs. Default value is a space character.
- Fields List<string>
- List of fields to include in logs.
- File
Name stringTemplate - Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
- Format
Type string - Format type for logs. Default value is empty string.
- Include
Empty boolLogs - Include empty logs in the upload. Default value is false.
- Include
Shield boolLogs - Include logs from origin shielding in the upload. Default value is false.
- Name string
- Name of the policy. Default value is "Policy".
- Retry
Interval doubleMinutes - Interval in minutes to retry failed uploads. Default value is 60.
- Rotate
Interval doubleMinutes - Interval in minutes to rotate logs. Default value is 5.
- Rotate
Threshold doubleLines - Threshold in lines to rotate logs. Default value is 0.
- Rotate
Threshold doubleMb - Threshold in MB to rotate logs. Default value is nil.
- 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.
- Cdn
Logs stringUploader Policy Id - The ID of this resource.
- Date
Format string - Date format for logs. Default value is empty string.
- Description string
- Description of the policy. Default value is empty string.
- Field
Delimiter string - Field delimiter for logs. Default value is ".
- Field
Separator string - Field separator for logs. Default value is a space character.
- Fields []string
- List of fields to include in logs.
- File
Name stringTemplate - Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
- Format
Type string - Format type for logs. Default value is empty string.
- Include
Empty boolLogs - Include empty logs in the upload. Default value is false.
- Include
Shield boolLogs - Include logs from origin shielding in the upload. Default value is false.
- Name string
- Name of the policy. Default value is "Policy".
- Retry
Interval float64Minutes - Interval in minutes to retry failed uploads. Default value is 60.
- Rotate
Interval float64Minutes - Interval in minutes to rotate logs. Default value is 5.
- Rotate
Threshold float64Lines - Threshold in lines to rotate logs. Default value is 0.
- Rotate
Threshold float64Mb - Threshold in MB to rotate logs. Default value is nil.
- 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.
- cdn
Logs StringUploader Policy Id - The ID of this resource.
- date
Format String - Date format for logs. Default value is empty string.
- description String
- Description of the policy. Default value is empty string.
- field
Delimiter String - Field delimiter for logs. Default value is ".
- field
Separator String - Field separator for logs. Default value is a space character.
- fields List<String>
- List of fields to include in logs.
- file
Name StringTemplate - Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
- format
Type String - Format type for logs. Default value is empty string.
- include
Empty BooleanLogs - Include empty logs in the upload. Default value is false.
- include
Shield BooleanLogs - Include logs from origin shielding in the upload. Default value is false.
- name String
- Name of the policy. Default value is "Policy".
- retry
Interval DoubleMinutes - Interval in minutes to retry failed uploads. Default value is 60.
- rotate
Interval DoubleMinutes - Interval in minutes to rotate logs. Default value is 5.
- rotate
Threshold DoubleLines - Threshold in lines to rotate logs. Default value is 0.
- rotate
Threshold DoubleMb - Threshold in MB to rotate logs. Default value is nil.
- 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.
- cdn
Logs stringUploader Policy Id - The ID of this resource.
- date
Format string - Date format for logs. Default value is empty string.
- description string
- Description of the policy. Default value is empty string.
- field
Delimiter string - Field delimiter for logs. Default value is ".
- field
Separator string - Field separator for logs. Default value is a space character.
- fields string[]
- List of fields to include in logs.
- file
Name stringTemplate - Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
- format
Type string - Format type for logs. Default value is empty string.
- include
Empty booleanLogs - Include empty logs in the upload. Default value is false.
- include
Shield booleanLogs - Include logs from origin shielding in the upload. Default value is false.
- name string
- Name of the policy. Default value is "Policy".
- retry
Interval numberMinutes - Interval in minutes to retry failed uploads. Default value is 60.
- rotate
Interval numberMinutes - Interval in minutes to rotate logs. Default value is 5.
- rotate
Threshold numberLines - Threshold in lines to rotate logs. Default value is 0.
- rotate
Threshold numberMb - Threshold in MB to rotate logs. Default value is nil.
- {[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_ struploader_ policy_ id - 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_ strtemplate - 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_ boollogs - Include empty logs in the upload. Default value is false.
- include_
shield_ boollogs - Include logs from origin shielding in the upload. Default value is false.
- name str
- Name of the policy. Default value is "Policy".
- retry_
interval_ floatminutes - Interval in minutes to retry failed uploads. Default value is 60.
- rotate_
interval_ floatminutes - Interval in minutes to rotate logs. Default value is 5.
- rotate_
threshold_ floatlines - Threshold in lines to rotate logs. Default value is 0.
- rotate_
threshold_ floatmb - Threshold in MB to rotate logs. Default value is nil.
- 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.
- cdn
Logs StringUploader Policy Id - The ID of this resource.
- date
Format String - Date format for logs. Default value is empty string.
- description String
- Description of the policy. Default value is empty string.
- field
Delimiter String - Field delimiter for logs. Default value is ".
- field
Separator String - Field separator for logs. Default value is a space character.
- fields List<String>
- List of fields to include in logs.
- file
Name StringTemplate - Template for log file name. Default value is "{{YYYY}}/{{MM}}/{{DD}}/{{HH}}/{{mm}}/{{ss}}/{{HOST}}*{{CNAME}}*access.log.gz".
- format
Type String - Format type for logs. Default value is empty string.
- include
Empty BooleanLogs - Include empty logs in the upload. Default value is false.
- include
Shield BooleanLogs - Include logs from origin shielding in the upload. Default value is false.
- name String
- Name of the policy. Default value is "Policy".
- retry
Interval NumberMinutes - Interval in minutes to retry failed uploads. Default value is 60.
- rotate
Interval NumberMinutes - Interval in minutes to rotate logs. Default value is 5.
- rotate
Threshold NumberLines - Threshold in lines to rotate logs. Default value is 0.
- rotate
Threshold NumberMb - Threshold in MB to rotate logs. Default value is nil.
- 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.