tencentcloud.ClsConfigExtra
Explore with Pulumi AI
Provides a resource to create a cls config extra
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const logset = new tencentcloud.ClsLogset("logset", {
logsetName: "tf-config-extra-test",
tags: {
test: "test",
},
});
const topic = new tencentcloud.ClsTopic("topic", {
autoSplit: true,
logsetId: logset.clsLogsetId,
maxSplitPartitions: 20,
partitionCount: 1,
period: 10,
storageType: "hot",
tags: {
test: "test",
},
topicName: "tf-config-extra-test",
});
const group = new tencentcloud.ClsMachineGroup("group", {
groupName: "tf-config-extra-test",
serviceLogging: true,
autoUpdate: true,
updateEndTime: "19:05:00",
updateStartTime: "17:05:00",
machineGroupType: {
type: "ip",
values: [
"192.168.1.1",
"192.168.1.2",
],
},
});
const extra = new tencentcloud.ClsConfigExtra("extra", {
topicId: topic.clsTopicId,
type: "container_file",
logType: "json_log",
configFlag: "label_k8s",
logsetId: logset.clsLogsetId,
logsetName: logset.logsetName,
topicName: topic.topicName,
containerFile: {
container: "nginx",
filePattern: "log",
logPath: "/nginx",
namespace: "default",
workload: {
container: "nginx",
kind: "deployment",
name: "nginx",
namespace: "default",
},
},
groupId: group.clsMachineGroupId,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
logset = tencentcloud.ClsLogset("logset",
logset_name="tf-config-extra-test",
tags={
"test": "test",
})
topic = tencentcloud.ClsTopic("topic",
auto_split=True,
logset_id=logset.cls_logset_id,
max_split_partitions=20,
partition_count=1,
period=10,
storage_type="hot",
tags={
"test": "test",
},
topic_name="tf-config-extra-test")
group = tencentcloud.ClsMachineGroup("group",
group_name="tf-config-extra-test",
service_logging=True,
auto_update=True,
update_end_time="19:05:00",
update_start_time="17:05:00",
machine_group_type={
"type": "ip",
"values": [
"192.168.1.1",
"192.168.1.2",
],
})
extra = tencentcloud.ClsConfigExtra("extra",
topic_id=topic.cls_topic_id,
type="container_file",
log_type="json_log",
config_flag="label_k8s",
logset_id=logset.cls_logset_id,
logset_name=logset.logset_name,
topic_name=topic.topic_name,
container_file={
"container": "nginx",
"file_pattern": "log",
"log_path": "/nginx",
"namespace": "default",
"workload": {
"container": "nginx",
"kind": "deployment",
"name": "nginx",
"namespace": "default",
},
},
group_id=group.cls_machine_group_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
logset, err := tencentcloud.NewClsLogset(ctx, "logset", &tencentcloud.ClsLogsetArgs{
LogsetName: pulumi.String("tf-config-extra-test"),
Tags: pulumi.StringMap{
"test": pulumi.String("test"),
},
})
if err != nil {
return err
}
topic, err := tencentcloud.NewClsTopic(ctx, "topic", &tencentcloud.ClsTopicArgs{
AutoSplit: pulumi.Bool(true),
LogsetId: logset.ClsLogsetId,
MaxSplitPartitions: pulumi.Float64(20),
PartitionCount: pulumi.Float64(1),
Period: pulumi.Float64(10),
StorageType: pulumi.String("hot"),
Tags: pulumi.StringMap{
"test": pulumi.String("test"),
},
TopicName: pulumi.String("tf-config-extra-test"),
})
if err != nil {
return err
}
group, err := tencentcloud.NewClsMachineGroup(ctx, "group", &tencentcloud.ClsMachineGroupArgs{
GroupName: pulumi.String("tf-config-extra-test"),
ServiceLogging: pulumi.Bool(true),
AutoUpdate: pulumi.Bool(true),
UpdateEndTime: pulumi.String("19:05:00"),
UpdateStartTime: pulumi.String("17:05:00"),
MachineGroupType: &tencentcloud.ClsMachineGroupMachineGroupTypeArgs{
Type: pulumi.String("ip"),
Values: pulumi.StringArray{
pulumi.String("192.168.1.1"),
pulumi.String("192.168.1.2"),
},
},
})
if err != nil {
return err
}
_, err = tencentcloud.NewClsConfigExtra(ctx, "extra", &tencentcloud.ClsConfigExtraArgs{
TopicId: topic.ClsTopicId,
Type: pulumi.String("container_file"),
LogType: pulumi.String("json_log"),
ConfigFlag: pulumi.String("label_k8s"),
LogsetId: logset.ClsLogsetId,
LogsetName: logset.LogsetName,
TopicName: topic.TopicName,
ContainerFile: &tencentcloud.ClsConfigExtraContainerFileArgs{
Container: pulumi.String("nginx"),
FilePattern: pulumi.String("log"),
LogPath: pulumi.String("/nginx"),
Namespace: pulumi.String("default"),
Workload: &tencentcloud.ClsConfigExtraContainerFileWorkloadArgs{
Container: pulumi.String("nginx"),
Kind: pulumi.String("deployment"),
Name: pulumi.String("nginx"),
Namespace: pulumi.String("default"),
},
},
GroupId: group.ClsMachineGroupId,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var logset = new Tencentcloud.ClsLogset("logset", new()
{
LogsetName = "tf-config-extra-test",
Tags =
{
{ "test", "test" },
},
});
var topic = new Tencentcloud.ClsTopic("topic", new()
{
AutoSplit = true,
LogsetId = logset.ClsLogsetId,
MaxSplitPartitions = 20,
PartitionCount = 1,
Period = 10,
StorageType = "hot",
Tags =
{
{ "test", "test" },
},
TopicName = "tf-config-extra-test",
});
var @group = new Tencentcloud.ClsMachineGroup("group", new()
{
GroupName = "tf-config-extra-test",
ServiceLogging = true,
AutoUpdate = true,
UpdateEndTime = "19:05:00",
UpdateStartTime = "17:05:00",
MachineGroupType = new Tencentcloud.Inputs.ClsMachineGroupMachineGroupTypeArgs
{
Type = "ip",
Values = new[]
{
"192.168.1.1",
"192.168.1.2",
},
},
});
var extra = new Tencentcloud.ClsConfigExtra("extra", new()
{
TopicId = topic.ClsTopicId,
Type = "container_file",
LogType = "json_log",
ConfigFlag = "label_k8s",
LogsetId = logset.ClsLogsetId,
LogsetName = logset.LogsetName,
TopicName = topic.TopicName,
ContainerFile = new Tencentcloud.Inputs.ClsConfigExtraContainerFileArgs
{
Container = "nginx",
FilePattern = "log",
LogPath = "/nginx",
Namespace = "default",
Workload = new Tencentcloud.Inputs.ClsConfigExtraContainerFileWorkloadArgs
{
Container = "nginx",
Kind = "deployment",
Name = "nginx",
Namespace = "default",
},
},
GroupId = @group.ClsMachineGroupId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ClsLogset;
import com.pulumi.tencentcloud.ClsLogsetArgs;
import com.pulumi.tencentcloud.ClsTopic;
import com.pulumi.tencentcloud.ClsTopicArgs;
import com.pulumi.tencentcloud.ClsMachineGroup;
import com.pulumi.tencentcloud.ClsMachineGroupArgs;
import com.pulumi.tencentcloud.inputs.ClsMachineGroupMachineGroupTypeArgs;
import com.pulumi.tencentcloud.ClsConfigExtra;
import com.pulumi.tencentcloud.ClsConfigExtraArgs;
import com.pulumi.tencentcloud.inputs.ClsConfigExtraContainerFileArgs;
import com.pulumi.tencentcloud.inputs.ClsConfigExtraContainerFileWorkloadArgs;
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 logset = new ClsLogset("logset", ClsLogsetArgs.builder()
.logsetName("tf-config-extra-test")
.tags(Map.of("test", "test"))
.build());
var topic = new ClsTopic("topic", ClsTopicArgs.builder()
.autoSplit(true)
.logsetId(logset.clsLogsetId())
.maxSplitPartitions(20)
.partitionCount(1)
.period(10)
.storageType("hot")
.tags(Map.of("test", "test"))
.topicName("tf-config-extra-test")
.build());
var group = new ClsMachineGroup("group", ClsMachineGroupArgs.builder()
.groupName("tf-config-extra-test")
.serviceLogging(true)
.autoUpdate(true)
.updateEndTime("19:05:00")
.updateStartTime("17:05:00")
.machineGroupType(ClsMachineGroupMachineGroupTypeArgs.builder()
.type("ip")
.values(
"192.168.1.1",
"192.168.1.2")
.build())
.build());
var extra = new ClsConfigExtra("extra", ClsConfigExtraArgs.builder()
.topicId(topic.clsTopicId())
.type("container_file")
.logType("json_log")
.configFlag("label_k8s")
.logsetId(logset.clsLogsetId())
.logsetName(logset.logsetName())
.topicName(topic.topicName())
.containerFile(ClsConfigExtraContainerFileArgs.builder()
.container("nginx")
.filePattern("log")
.logPath("/nginx")
.namespace("default")
.workload(ClsConfigExtraContainerFileWorkloadArgs.builder()
.container("nginx")
.kind("deployment")
.name("nginx")
.namespace("default")
.build())
.build())
.groupId(group.clsMachineGroupId())
.build());
}
}
resources:
logset:
type: tencentcloud:ClsLogset
properties:
logsetName: tf-config-extra-test
tags:
test: test
topic:
type: tencentcloud:ClsTopic
properties:
autoSplit: true
logsetId: ${logset.clsLogsetId}
maxSplitPartitions: 20
partitionCount: 1
period: 10
storageType: hot
tags:
test: test
topicName: tf-config-extra-test
group:
type: tencentcloud:ClsMachineGroup
properties:
groupName: tf-config-extra-test
serviceLogging: true
autoUpdate: true
updateEndTime: 19:05:00
updateStartTime: 17:05:00
machineGroupType:
type: ip
values:
- 192.168.1.1
- 192.168.1.2
extra:
type: tencentcloud:ClsConfigExtra
properties:
topicId: ${topic.clsTopicId}
type: container_file
logType: json_log
configFlag: label_k8s
logsetId: ${logset.clsLogsetId}
logsetName: ${logset.logsetName}
topicName: ${topic.topicName}
containerFile:
container: nginx
filePattern: log
logPath: /nginx
namespace: default
workload:
container: nginx
kind: deployment
name: nginx
namespace: default
groupId: ${group.clsMachineGroupId}
Create ClsConfigExtra Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClsConfigExtra(name: string, args: ClsConfigExtraArgs, opts?: CustomResourceOptions);
@overload
def ClsConfigExtra(resource_name: str,
args: ClsConfigExtraArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ClsConfigExtra(resource_name: str,
opts: Optional[ResourceOptions] = None,
log_type: Optional[str] = None,
config_flag: Optional[str] = None,
type: Optional[str] = None,
topic_name: Optional[str] = None,
topic_id: Optional[str] = None,
logset_name: Optional[str] = None,
logset_id: Optional[str] = None,
exclude_paths: Optional[Sequence[ClsConfigExtraExcludePathArgs]] = None,
host_file: Optional[ClsConfigExtraHostFileArgs] = None,
log_format: Optional[str] = None,
group_ids: Optional[Sequence[str]] = None,
group_id: Optional[str] = None,
extract_rule: Optional[ClsConfigExtraExtractRuleArgs] = None,
name: Optional[str] = None,
cls_config_extra_id: Optional[str] = None,
container_stdout: Optional[ClsConfigExtraContainerStdoutArgs] = None,
container_file: Optional[ClsConfigExtraContainerFileArgs] = None,
user_define_rule: Optional[str] = None)
func NewClsConfigExtra(ctx *Context, name string, args ClsConfigExtraArgs, opts ...ResourceOption) (*ClsConfigExtra, error)
public ClsConfigExtra(string name, ClsConfigExtraArgs args, CustomResourceOptions? opts = null)
public ClsConfigExtra(String name, ClsConfigExtraArgs args)
public ClsConfigExtra(String name, ClsConfigExtraArgs args, CustomResourceOptions options)
type: tencentcloud:ClsConfigExtra
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 ClsConfigExtraArgs
- 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 ClsConfigExtraArgs
- 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 ClsConfigExtraArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClsConfigExtraArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClsConfigExtraArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ClsConfigExtra 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 ClsConfigExtra resource accepts the following input properties:
- Config
Flag string - Collection configuration flag.
- Log
Type string - Type of the log to be collected. Valid values: json_log: log in JSON format; delimiter_log: log in delimited format; minimalist_log: minimalist log; multiline_log: log in multi-line format; fullregex_log: log in full regex format. Default value: minimalist_log.
- Logset
Id string - Logset Id.
- Logset
Name string - Logset Name.
- Topic
Id string - Log topic ID (TopicId) of collection configuration.
- Topic
Name string - Topic Name.
- Type string
- Type. Valid values: container_stdout; container_file; host_file.
- Cls
Config stringExtra Id - ID of the resource.
- Container
File ClsConfig Extra Container File - Container file path info.
- Container
Stdout ClsConfig Extra Container Stdout - Container stdout info.
- Exclude
Paths List<ClsConfig Extra Exclude Path> - Collection path blocklist.
- Extract
Rule ClsConfig Extra Extract Rule - Extraction rule. If ExtractRule is set, LogType must be set.
- Group
Id string - Binding group id.
- Group
Ids List<string> - Binding group ids.
- Host
File ClsConfig Extra Host File - Node file config info.
- Log
Format string - Log format.
- Name string
- Collection configuration name.
- User
Define stringRule - Custom collection rule, which is a serialized JSON string.
- Config
Flag string - Collection configuration flag.
- Log
Type string - Type of the log to be collected. Valid values: json_log: log in JSON format; delimiter_log: log in delimited format; minimalist_log: minimalist log; multiline_log: log in multi-line format; fullregex_log: log in full regex format. Default value: minimalist_log.
- Logset
Id string - Logset Id.
- Logset
Name string - Logset Name.
- Topic
Id string - Log topic ID (TopicId) of collection configuration.
- Topic
Name string - Topic Name.
- Type string
- Type. Valid values: container_stdout; container_file; host_file.
- Cls
Config stringExtra Id - ID of the resource.
- Container
File ClsConfig Extra Container File Args - Container file path info.
- Container
Stdout ClsConfig Extra Container Stdout Args - Container stdout info.
- Exclude
Paths []ClsConfig Extra Exclude Path Args - Collection path blocklist.
- Extract
Rule ClsConfig Extra Extract Rule Args - Extraction rule. If ExtractRule is set, LogType must be set.
- Group
Id string - Binding group id.
- Group
Ids []string - Binding group ids.
- Host
File ClsConfig Extra Host File Args - Node file config info.
- Log
Format string - Log format.
- Name string
- Collection configuration name.
- User
Define stringRule - Custom collection rule, which is a serialized JSON string.
- config
Flag String - Collection configuration flag.
- log
Type String - Type of the log to be collected. Valid values: json_log: log in JSON format; delimiter_log: log in delimited format; minimalist_log: minimalist log; multiline_log: log in multi-line format; fullregex_log: log in full regex format. Default value: minimalist_log.
- logset
Id String - Logset Id.
- logset
Name String - Logset Name.
- topic
Id String - Log topic ID (TopicId) of collection configuration.
- topic
Name String - Topic Name.
- type String
- Type. Valid values: container_stdout; container_file; host_file.
- cls
Config StringExtra Id - ID of the resource.
- container
File ClsConfig Extra Container File - Container file path info.
- container
Stdout ClsConfig Extra Container Stdout - Container stdout info.
- exclude
Paths List<ClsConfig Extra Exclude Path> - Collection path blocklist.
- extract
Rule ClsConfig Extra Extract Rule - Extraction rule. If ExtractRule is set, LogType must be set.
- group
Id String - Binding group id.
- group
Ids List<String> - Binding group ids.
- host
File ClsConfig Extra Host File - Node file config info.
- log
Format String - Log format.
- name String
- Collection configuration name.
- user
Define StringRule - Custom collection rule, which is a serialized JSON string.
- config
Flag string - Collection configuration flag.
- log
Type string - Type of the log to be collected. Valid values: json_log: log in JSON format; delimiter_log: log in delimited format; minimalist_log: minimalist log; multiline_log: log in multi-line format; fullregex_log: log in full regex format. Default value: minimalist_log.
- logset
Id string - Logset Id.
- logset
Name string - Logset Name.
- topic
Id string - Log topic ID (TopicId) of collection configuration.
- topic
Name string - Topic Name.
- type string
- Type. Valid values: container_stdout; container_file; host_file.
- cls
Config stringExtra Id - ID of the resource.
- container
File ClsConfig Extra Container File - Container file path info.
- container
Stdout ClsConfig Extra Container Stdout - Container stdout info.
- exclude
Paths ClsConfig Extra Exclude Path[] - Collection path blocklist.
- extract
Rule ClsConfig Extra Extract Rule - Extraction rule. If ExtractRule is set, LogType must be set.
- group
Id string - Binding group id.
- group
Ids string[] - Binding group ids.
- host
File ClsConfig Extra Host File - Node file config info.
- log
Format string - Log format.
- name string
- Collection configuration name.
- user
Define stringRule - Custom collection rule, which is a serialized JSON string.
- config_
flag str - Collection configuration flag.
- log_
type str - Type of the log to be collected. Valid values: json_log: log in JSON format; delimiter_log: log in delimited format; minimalist_log: minimalist log; multiline_log: log in multi-line format; fullregex_log: log in full regex format. Default value: minimalist_log.
- logset_
id str - Logset Id.
- logset_
name str - Logset Name.
- topic_
id str - Log topic ID (TopicId) of collection configuration.
- topic_
name str - Topic Name.
- type str
- Type. Valid values: container_stdout; container_file; host_file.
- cls_
config_ strextra_ id - ID of the resource.
- container_
file ClsConfig Extra Container File Args - Container file path info.
- container_
stdout ClsConfig Extra Container Stdout Args - Container stdout info.
- exclude_
paths Sequence[ClsConfig Extra Exclude Path Args] - Collection path blocklist.
- extract_
rule ClsConfig Extra Extract Rule Args - Extraction rule. If ExtractRule is set, LogType must be set.
- group_
id str - Binding group id.
- group_
ids Sequence[str] - Binding group ids.
- host_
file ClsConfig Extra Host File Args - Node file config info.
- log_
format str - Log format.
- name str
- Collection configuration name.
- user_
define_ strrule - Custom collection rule, which is a serialized JSON string.
- config
Flag String - Collection configuration flag.
- log
Type String - Type of the log to be collected. Valid values: json_log: log in JSON format; delimiter_log: log in delimited format; minimalist_log: minimalist log; multiline_log: log in multi-line format; fullregex_log: log in full regex format. Default value: minimalist_log.
- logset
Id String - Logset Id.
- logset
Name String - Logset Name.
- topic
Id String - Log topic ID (TopicId) of collection configuration.
- topic
Name String - Topic Name.
- type String
- Type. Valid values: container_stdout; container_file; host_file.
- cls
Config StringExtra Id - ID of the resource.
- container
File Property Map - Container file path info.
- container
Stdout Property Map - Container stdout info.
- exclude
Paths List<Property Map> - Collection path blocklist.
- extract
Rule Property Map - Extraction rule. If ExtractRule is set, LogType must be set.
- group
Id String - Binding group id.
- group
Ids List<String> - Binding group ids.
- host
File Property Map - Node file config info.
- log
Format String - Log format.
- name String
- Collection configuration name.
- user
Define StringRule - Custom collection rule, which is a serialized JSON string.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClsConfigExtra 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 ClsConfigExtra Resource
Get an existing ClsConfigExtra 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?: ClsConfigExtraState, opts?: CustomResourceOptions): ClsConfigExtra
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cls_config_extra_id: Optional[str] = None,
config_flag: Optional[str] = None,
container_file: Optional[ClsConfigExtraContainerFileArgs] = None,
container_stdout: Optional[ClsConfigExtraContainerStdoutArgs] = None,
exclude_paths: Optional[Sequence[ClsConfigExtraExcludePathArgs]] = None,
extract_rule: Optional[ClsConfigExtraExtractRuleArgs] = None,
group_id: Optional[str] = None,
group_ids: Optional[Sequence[str]] = None,
host_file: Optional[ClsConfigExtraHostFileArgs] = None,
log_format: Optional[str] = None,
log_type: Optional[str] = None,
logset_id: Optional[str] = None,
logset_name: Optional[str] = None,
name: Optional[str] = None,
topic_id: Optional[str] = None,
topic_name: Optional[str] = None,
type: Optional[str] = None,
user_define_rule: Optional[str] = None) -> ClsConfigExtra
func GetClsConfigExtra(ctx *Context, name string, id IDInput, state *ClsConfigExtraState, opts ...ResourceOption) (*ClsConfigExtra, error)
public static ClsConfigExtra Get(string name, Input<string> id, ClsConfigExtraState? state, CustomResourceOptions? opts = null)
public static ClsConfigExtra get(String name, Output<String> id, ClsConfigExtraState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ClsConfigExtra 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.
- Cls
Config stringExtra Id - ID of the resource.
- Config
Flag string - Collection configuration flag.
- Container
File ClsConfig Extra Container File - Container file path info.
- Container
Stdout ClsConfig Extra Container Stdout - Container stdout info.
- Exclude
Paths List<ClsConfig Extra Exclude Path> - Collection path blocklist.
- Extract
Rule ClsConfig Extra Extract Rule - Extraction rule. If ExtractRule is set, LogType must be set.
- Group
Id string - Binding group id.
- Group
Ids List<string> - Binding group ids.
- Host
File ClsConfig Extra Host File - Node file config info.
- Log
Format string - Log format.
- Log
Type string - Type of the log to be collected. Valid values: json_log: log in JSON format; delimiter_log: log in delimited format; minimalist_log: minimalist log; multiline_log: log in multi-line format; fullregex_log: log in full regex format. Default value: minimalist_log.
- Logset
Id string - Logset Id.
- Logset
Name string - Logset Name.
- Name string
- Collection configuration name.
- Topic
Id string - Log topic ID (TopicId) of collection configuration.
- Topic
Name string - Topic Name.
- Type string
- Type. Valid values: container_stdout; container_file; host_file.
- User
Define stringRule - Custom collection rule, which is a serialized JSON string.
- Cls
Config stringExtra Id - ID of the resource.
- Config
Flag string - Collection configuration flag.
- Container
File ClsConfig Extra Container File Args - Container file path info.
- Container
Stdout ClsConfig Extra Container Stdout Args - Container stdout info.
- Exclude
Paths []ClsConfig Extra Exclude Path Args - Collection path blocklist.
- Extract
Rule ClsConfig Extra Extract Rule Args - Extraction rule. If ExtractRule is set, LogType must be set.
- Group
Id string - Binding group id.
- Group
Ids []string - Binding group ids.
- Host
File ClsConfig Extra Host File Args - Node file config info.
- Log
Format string - Log format.
- Log
Type string - Type of the log to be collected. Valid values: json_log: log in JSON format; delimiter_log: log in delimited format; minimalist_log: minimalist log; multiline_log: log in multi-line format; fullregex_log: log in full regex format. Default value: minimalist_log.
- Logset
Id string - Logset Id.
- Logset
Name string - Logset Name.
- Name string
- Collection configuration name.
- Topic
Id string - Log topic ID (TopicId) of collection configuration.
- Topic
Name string - Topic Name.
- Type string
- Type. Valid values: container_stdout; container_file; host_file.
- User
Define stringRule - Custom collection rule, which is a serialized JSON string.
- cls
Config StringExtra Id - ID of the resource.
- config
Flag String - Collection configuration flag.
- container
File ClsConfig Extra Container File - Container file path info.
- container
Stdout ClsConfig Extra Container Stdout - Container stdout info.
- exclude
Paths List<ClsConfig Extra Exclude Path> - Collection path blocklist.
- extract
Rule ClsConfig Extra Extract Rule - Extraction rule. If ExtractRule is set, LogType must be set.
- group
Id String - Binding group id.
- group
Ids List<String> - Binding group ids.
- host
File ClsConfig Extra Host File - Node file config info.
- log
Format String - Log format.
- log
Type String - Type of the log to be collected. Valid values: json_log: log in JSON format; delimiter_log: log in delimited format; minimalist_log: minimalist log; multiline_log: log in multi-line format; fullregex_log: log in full regex format. Default value: minimalist_log.
- logset
Id String - Logset Id.
- logset
Name String - Logset Name.
- name String
- Collection configuration name.
- topic
Id String - Log topic ID (TopicId) of collection configuration.
- topic
Name String - Topic Name.
- type String
- Type. Valid values: container_stdout; container_file; host_file.
- user
Define StringRule - Custom collection rule, which is a serialized JSON string.
- cls
Config stringExtra Id - ID of the resource.
- config
Flag string - Collection configuration flag.
- container
File ClsConfig Extra Container File - Container file path info.
- container
Stdout ClsConfig Extra Container Stdout - Container stdout info.
- exclude
Paths ClsConfig Extra Exclude Path[] - Collection path blocklist.
- extract
Rule ClsConfig Extra Extract Rule - Extraction rule. If ExtractRule is set, LogType must be set.
- group
Id string - Binding group id.
- group
Ids string[] - Binding group ids.
- host
File ClsConfig Extra Host File - Node file config info.
- log
Format string - Log format.
- log
Type string - Type of the log to be collected. Valid values: json_log: log in JSON format; delimiter_log: log in delimited format; minimalist_log: minimalist log; multiline_log: log in multi-line format; fullregex_log: log in full regex format. Default value: minimalist_log.
- logset
Id string - Logset Id.
- logset
Name string - Logset Name.
- name string
- Collection configuration name.
- topic
Id string - Log topic ID (TopicId) of collection configuration.
- topic
Name string - Topic Name.
- type string
- Type. Valid values: container_stdout; container_file; host_file.
- user
Define stringRule - Custom collection rule, which is a serialized JSON string.
- cls_
config_ strextra_ id - ID of the resource.
- config_
flag str - Collection configuration flag.
- container_
file ClsConfig Extra Container File Args - Container file path info.
- container_
stdout ClsConfig Extra Container Stdout Args - Container stdout info.
- exclude_
paths Sequence[ClsConfig Extra Exclude Path Args] - Collection path blocklist.
- extract_
rule ClsConfig Extra Extract Rule Args - Extraction rule. If ExtractRule is set, LogType must be set.
- group_
id str - Binding group id.
- group_
ids Sequence[str] - Binding group ids.
- host_
file ClsConfig Extra Host File Args - Node file config info.
- log_
format str - Log format.
- log_
type str - Type of the log to be collected. Valid values: json_log: log in JSON format; delimiter_log: log in delimited format; minimalist_log: minimalist log; multiline_log: log in multi-line format; fullregex_log: log in full regex format. Default value: minimalist_log.
- logset_
id str - Logset Id.
- logset_
name str - Logset Name.
- name str
- Collection configuration name.
- topic_
id str - Log topic ID (TopicId) of collection configuration.
- topic_
name str - Topic Name.
- type str
- Type. Valid values: container_stdout; container_file; host_file.
- user_
define_ strrule - Custom collection rule, which is a serialized JSON string.
- cls
Config StringExtra Id - ID of the resource.
- config
Flag String - Collection configuration flag.
- container
File Property Map - Container file path info.
- container
Stdout Property Map - Container stdout info.
- exclude
Paths List<Property Map> - Collection path blocklist.
- extract
Rule Property Map - Extraction rule. If ExtractRule is set, LogType must be set.
- group
Id String - Binding group id.
- group
Ids List<String> - Binding group ids.
- host
File Property Map - Node file config info.
- log
Format String - Log format.
- log
Type String - Type of the log to be collected. Valid values: json_log: log in JSON format; delimiter_log: log in delimited format; minimalist_log: minimalist log; multiline_log: log in multi-line format; fullregex_log: log in full regex format. Default value: minimalist_log.
- logset
Id String - Logset Id.
- logset
Name String - Logset Name.
- name String
- Collection configuration name.
- topic
Id String - Log topic ID (TopicId) of collection configuration.
- topic
Name String - Topic Name.
- type String
- Type. Valid values: container_stdout; container_file; host_file.
- user
Define StringRule - Custom collection rule, which is a serialized JSON string.
Supporting Types
ClsConfigExtraContainerFile, ClsConfigExtraContainerFileArgs
- Container string
- container name.
- File
Pattern string - log name.
- Log
Path string - Log Path.
- Namespace string
- namespace.
- Exclude
Labels List<string> - Pod label to be excluded.
- Exclude
Namespace string - Namespaces to be excluded, separated by separators, such as A, B.
- Include
Labels List<string> - Pod label info.
- Workload
Cls
Config Extra Container File Workload - Workload info.
- Container string
- container name.
- File
Pattern string - log name.
- Log
Path string - Log Path.
- Namespace string
- namespace.
- Exclude
Labels []string - Pod label to be excluded.
- Exclude
Namespace string - Namespaces to be excluded, separated by separators, such as A, B.
- Include
Labels []string - Pod label info.
- Workload
Cls
Config Extra Container File Workload - Workload info.
- container String
- container name.
- file
Pattern String - log name.
- log
Path String - Log Path.
- namespace String
- namespace.
- exclude
Labels List<String> - Pod label to be excluded.
- exclude
Namespace String - Namespaces to be excluded, separated by separators, such as A, B.
- include
Labels List<String> - Pod label info.
- workload
Cls
Config Extra Container File Workload - Workload info.
- container string
- container name.
- file
Pattern string - log name.
- log
Path string - Log Path.
- namespace string
- namespace.
- exclude
Labels string[] - Pod label to be excluded.
- exclude
Namespace string - Namespaces to be excluded, separated by separators, such as A, B.
- include
Labels string[] - Pod label info.
- workload
Cls
Config Extra Container File Workload - Workload info.
- container str
- container name.
- file_
pattern str - log name.
- log_
path str - Log Path.
- namespace str
- namespace.
- exclude_
labels Sequence[str] - Pod label to be excluded.
- exclude_
namespace str - Namespaces to be excluded, separated by separators, such as A, B.
- include_
labels Sequence[str] - Pod label info.
- workload
Cls
Config Extra Container File Workload - Workload info.
- container String
- container name.
- file
Pattern String - log name.
- log
Path String - Log Path.
- namespace String
- namespace.
- exclude
Labels List<String> - Pod label to be excluded.
- exclude
Namespace String - Namespaces to be excluded, separated by separators, such as A, B.
- include
Labels List<String> - Pod label info.
- workload Property Map
- Workload info.
ClsConfigExtraContainerFileWorkload, ClsConfigExtraContainerFileWorkloadArgs
ClsConfigExtraContainerStdout, ClsConfigExtraContainerStdoutArgs
- All
Containers bool - Is all containers.
- Exclude
Labels List<string> - Pod label to be excluded.
- Exclude
Namespace string - Namespaces to be excluded, separated by separators, such as A, B.
- Include
Labels List<string> - Pod label info.
- Namespace string
- namespace.
- Workloads
List<Cls
Config Extra Container Stdout Workload> - Workload info.
- All
Containers bool - Is all containers.
- Exclude
Labels []string - Pod label to be excluded.
- Exclude
Namespace string - Namespaces to be excluded, separated by separators, such as A, B.
- Include
Labels []string - Pod label info.
- Namespace string
- namespace.
- Workloads
[]Cls
Config Extra Container Stdout Workload - Workload info.
- all
Containers Boolean - Is all containers.
- exclude
Labels List<String> - Pod label to be excluded.
- exclude
Namespace String - Namespaces to be excluded, separated by separators, such as A, B.
- include
Labels List<String> - Pod label info.
- namespace String
- namespace.
- workloads
List<Cls
Config Extra Container Stdout Workload> - Workload info.
- all
Containers boolean - Is all containers.
- exclude
Labels string[] - Pod label to be excluded.
- exclude
Namespace string - Namespaces to be excluded, separated by separators, such as A, B.
- include
Labels string[] - Pod label info.
- namespace string
- namespace.
- workloads
Cls
Config Extra Container Stdout Workload[] - Workload info.
- all_
containers bool - Is all containers.
- exclude_
labels Sequence[str] - Pod label to be excluded.
- exclude_
namespace str - Namespaces to be excluded, separated by separators, such as A, B.
- include_
labels Sequence[str] - Pod label info.
- namespace str
- namespace.
- workloads
Sequence[Cls
Config Extra Container Stdout Workload] - Workload info.
- all
Containers Boolean - Is all containers.
- exclude
Labels List<String> - Pod label to be excluded.
- exclude
Namespace String - Namespaces to be excluded, separated by separators, such as A, B.
- include
Labels List<String> - Pod label info.
- namespace String
- namespace.
- workloads List<Property Map>
- Workload info.
ClsConfigExtraContainerStdoutWorkload, ClsConfigExtraContainerStdoutWorkloadArgs
ClsConfigExtraExcludePath, ClsConfigExtraExcludePathArgs
ClsConfigExtraExtractRule, ClsConfigExtraExtractRuleArgs
- Backtracking double
- Size of the data to be rewound in incremental collection mode. Default value: -1 (full collection).
- Begin
Regex string - First-Line matching rule, which is valid only if log_type is multiline_log or fullregex_log.
- Delimiter string
- Delimiter for delimited log, which is valid only if log_type is delimiter_log.
- Filter
Key List<ClsRegexes Config Extra Extract Rule Filter Key Regex> - Log keys to be filtered and the corresponding regex.
- Keys List<string>
- Key name of each extracted field. An empty key indicates to discard the field. This parameter is valid only if log_type is delimiter_log. json_log logs use the key of JSON itself.
- Log
Regex string - Full log matching rule, which is valid only if log_type is fullregex_log.
- Time
Format string - Time field format. For more information, please see the output parameters of the time format description of the strftime function in C language.
- Time
Key string - Time field key name. time_key and time_format must appear in pair.
- Un
Match stringLog Key - Unmatched log key.
- Un
Match boolUp Load Switch - Whether to upload the logs that failed to be parsed. Valid values: true: yes; false: no.
- Backtracking float64
- Size of the data to be rewound in incremental collection mode. Default value: -1 (full collection).
- Begin
Regex string - First-Line matching rule, which is valid only if log_type is multiline_log or fullregex_log.
- Delimiter string
- Delimiter for delimited log, which is valid only if log_type is delimiter_log.
- Filter
Key []ClsRegexes Config Extra Extract Rule Filter Key Regex - Log keys to be filtered and the corresponding regex.
- Keys []string
- Key name of each extracted field. An empty key indicates to discard the field. This parameter is valid only if log_type is delimiter_log. json_log logs use the key of JSON itself.
- Log
Regex string - Full log matching rule, which is valid only if log_type is fullregex_log.
- Time
Format string - Time field format. For more information, please see the output parameters of the time format description of the strftime function in C language.
- Time
Key string - Time field key name. time_key and time_format must appear in pair.
- Un
Match stringLog Key - Unmatched log key.
- Un
Match boolUp Load Switch - Whether to upload the logs that failed to be parsed. Valid values: true: yes; false: no.
- backtracking Double
- Size of the data to be rewound in incremental collection mode. Default value: -1 (full collection).
- begin
Regex String - First-Line matching rule, which is valid only if log_type is multiline_log or fullregex_log.
- delimiter String
- Delimiter for delimited log, which is valid only if log_type is delimiter_log.
- filter
Key List<ClsRegexes Config Extra Extract Rule Filter Key Regex> - Log keys to be filtered and the corresponding regex.
- keys List<String>
- Key name of each extracted field. An empty key indicates to discard the field. This parameter is valid only if log_type is delimiter_log. json_log logs use the key of JSON itself.
- log
Regex String - Full log matching rule, which is valid only if log_type is fullregex_log.
- time
Format String - Time field format. For more information, please see the output parameters of the time format description of the strftime function in C language.
- time
Key String - Time field key name. time_key and time_format must appear in pair.
- un
Match StringLog Key - Unmatched log key.
- un
Match BooleanUp Load Switch - Whether to upload the logs that failed to be parsed. Valid values: true: yes; false: no.
- backtracking number
- Size of the data to be rewound in incremental collection mode. Default value: -1 (full collection).
- begin
Regex string - First-Line matching rule, which is valid only if log_type is multiline_log or fullregex_log.
- delimiter string
- Delimiter for delimited log, which is valid only if log_type is delimiter_log.
- filter
Key ClsRegexes Config Extra Extract Rule Filter Key Regex[] - Log keys to be filtered and the corresponding regex.
- keys string[]
- Key name of each extracted field. An empty key indicates to discard the field. This parameter is valid only if log_type is delimiter_log. json_log logs use the key of JSON itself.
- log
Regex string - Full log matching rule, which is valid only if log_type is fullregex_log.
- time
Format string - Time field format. For more information, please see the output parameters of the time format description of the strftime function in C language.
- time
Key string - Time field key name. time_key and time_format must appear in pair.
- un
Match stringLog Key - Unmatched log key.
- un
Match booleanUp Load Switch - Whether to upload the logs that failed to be parsed. Valid values: true: yes; false: no.
- backtracking float
- Size of the data to be rewound in incremental collection mode. Default value: -1 (full collection).
- begin_
regex str - First-Line matching rule, which is valid only if log_type is multiline_log or fullregex_log.
- delimiter str
- Delimiter for delimited log, which is valid only if log_type is delimiter_log.
- filter_
key_ Sequence[Clsregexes Config Extra Extract Rule Filter Key Regex] - Log keys to be filtered and the corresponding regex.
- keys Sequence[str]
- Key name of each extracted field. An empty key indicates to discard the field. This parameter is valid only if log_type is delimiter_log. json_log logs use the key of JSON itself.
- log_
regex str - Full log matching rule, which is valid only if log_type is fullregex_log.
- time_
format str - Time field format. For more information, please see the output parameters of the time format description of the strftime function in C language.
- time_
key str - Time field key name. time_key and time_format must appear in pair.
- un_
match_ strlog_ key - Unmatched log key.
- un_
match_ boolup_ load_ switch - Whether to upload the logs that failed to be parsed. Valid values: true: yes; false: no.
- backtracking Number
- Size of the data to be rewound in incremental collection mode. Default value: -1 (full collection).
- begin
Regex String - First-Line matching rule, which is valid only if log_type is multiline_log or fullregex_log.
- delimiter String
- Delimiter for delimited log, which is valid only if log_type is delimiter_log.
- filter
Key List<Property Map>Regexes - Log keys to be filtered and the corresponding regex.
- keys List<String>
- Key name of each extracted field. An empty key indicates to discard the field. This parameter is valid only if log_type is delimiter_log. json_log logs use the key of JSON itself.
- log
Regex String - Full log matching rule, which is valid only if log_type is fullregex_log.
- time
Format String - Time field format. For more information, please see the output parameters of the time format description of the strftime function in C language.
- time
Key String - Time field key name. time_key and time_format must appear in pair.
- un
Match StringLog Key - Unmatched log key.
- un
Match BooleanUp Load Switch - Whether to upload the logs that failed to be parsed. Valid values: true: yes; false: no.
ClsConfigExtraExtractRuleFilterKeyRegex, ClsConfigExtraExtractRuleFilterKeyRegexArgs
ClsConfigExtraHostFile, ClsConfigExtraHostFileArgs
- File
Pattern string - Log file name.
- Log
Path string - Log file dir.
- Custom
Labels List<string> - Metadata info.
- File
Pattern string - Log file name.
- Log
Path string - Log file dir.
- Custom
Labels []string - Metadata info.
- file
Pattern String - Log file name.
- log
Path String - Log file dir.
- custom
Labels List<String> - Metadata info.
- file
Pattern string - Log file name.
- log
Path string - Log file dir.
- custom
Labels string[] - Metadata info.
- file_
pattern str - Log file name.
- log_
path str - Log file dir.
- custom_
labels Sequence[str] - Metadata info.
- file
Pattern String - Log file name.
- log
Path String - Log file dir.
- custom
Labels List<String> - Metadata info.
Import
cls config_extra can be imported using the id, e.g.
$ pulumi import tencentcloud:index/clsConfigExtra:ClsConfigExtra config_extra config_extra_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.