1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. ClsConfigExtra
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.ClsConfigExtra

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    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:

    ConfigFlag string
    Collection configuration flag.
    LogType 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.
    LogsetId string
    Logset Id.
    LogsetName string
    Logset Name.
    TopicId string
    Log topic ID (TopicId) of collection configuration.
    TopicName string
    Topic Name.
    Type string
    Type. Valid values: container_stdout; container_file; host_file.
    ClsConfigExtraId string
    ID of the resource.
    ContainerFile ClsConfigExtraContainerFile
    Container file path info.
    ContainerStdout ClsConfigExtraContainerStdout
    Container stdout info.
    ExcludePaths List<ClsConfigExtraExcludePath>
    Collection path blocklist.
    ExtractRule ClsConfigExtraExtractRule
    Extraction rule. If ExtractRule is set, LogType must be set.
    GroupId string
    Binding group id.
    GroupIds List<string>
    Binding group ids.
    HostFile ClsConfigExtraHostFile
    Node file config info.
    LogFormat string
    Log format.
    Name string
    Collection configuration name.
    UserDefineRule string
    Custom collection rule, which is a serialized JSON string.
    ConfigFlag string
    Collection configuration flag.
    LogType 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.
    LogsetId string
    Logset Id.
    LogsetName string
    Logset Name.
    TopicId string
    Log topic ID (TopicId) of collection configuration.
    TopicName string
    Topic Name.
    Type string
    Type. Valid values: container_stdout; container_file; host_file.
    ClsConfigExtraId string
    ID of the resource.
    ContainerFile ClsConfigExtraContainerFileArgs
    Container file path info.
    ContainerStdout ClsConfigExtraContainerStdoutArgs
    Container stdout info.
    ExcludePaths []ClsConfigExtraExcludePathArgs
    Collection path blocklist.
    ExtractRule ClsConfigExtraExtractRuleArgs
    Extraction rule. If ExtractRule is set, LogType must be set.
    GroupId string
    Binding group id.
    GroupIds []string
    Binding group ids.
    HostFile ClsConfigExtraHostFileArgs
    Node file config info.
    LogFormat string
    Log format.
    Name string
    Collection configuration name.
    UserDefineRule string
    Custom collection rule, which is a serialized JSON string.
    configFlag String
    Collection configuration flag.
    logType 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.
    logsetId String
    Logset Id.
    logsetName String
    Logset Name.
    topicId String
    Log topic ID (TopicId) of collection configuration.
    topicName String
    Topic Name.
    type String
    Type. Valid values: container_stdout; container_file; host_file.
    clsConfigExtraId String
    ID of the resource.
    containerFile ClsConfigExtraContainerFile
    Container file path info.
    containerStdout ClsConfigExtraContainerStdout
    Container stdout info.
    excludePaths List<ClsConfigExtraExcludePath>
    Collection path blocklist.
    extractRule ClsConfigExtraExtractRule
    Extraction rule. If ExtractRule is set, LogType must be set.
    groupId String
    Binding group id.
    groupIds List<String>
    Binding group ids.
    hostFile ClsConfigExtraHostFile
    Node file config info.
    logFormat String
    Log format.
    name String
    Collection configuration name.
    userDefineRule String
    Custom collection rule, which is a serialized JSON string.
    configFlag string
    Collection configuration flag.
    logType 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.
    logsetId string
    Logset Id.
    logsetName string
    Logset Name.
    topicId string
    Log topic ID (TopicId) of collection configuration.
    topicName string
    Topic Name.
    type string
    Type. Valid values: container_stdout; container_file; host_file.
    clsConfigExtraId string
    ID of the resource.
    containerFile ClsConfigExtraContainerFile
    Container file path info.
    containerStdout ClsConfigExtraContainerStdout
    Container stdout info.
    excludePaths ClsConfigExtraExcludePath[]
    Collection path blocklist.
    extractRule ClsConfigExtraExtractRule
    Extraction rule. If ExtractRule is set, LogType must be set.
    groupId string
    Binding group id.
    groupIds string[]
    Binding group ids.
    hostFile ClsConfigExtraHostFile
    Node file config info.
    logFormat string
    Log format.
    name string
    Collection configuration name.
    userDefineRule string
    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_extra_id str
    ID of the resource.
    container_file ClsConfigExtraContainerFileArgs
    Container file path info.
    container_stdout ClsConfigExtraContainerStdoutArgs
    Container stdout info.
    exclude_paths Sequence[ClsConfigExtraExcludePathArgs]
    Collection path blocklist.
    extract_rule ClsConfigExtraExtractRuleArgs
    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 ClsConfigExtraHostFileArgs
    Node file config info.
    log_format str
    Log format.
    name str
    Collection configuration name.
    user_define_rule str
    Custom collection rule, which is a serialized JSON string.
    configFlag String
    Collection configuration flag.
    logType 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.
    logsetId String
    Logset Id.
    logsetName String
    Logset Name.
    topicId String
    Log topic ID (TopicId) of collection configuration.
    topicName String
    Topic Name.
    type String
    Type. Valid values: container_stdout; container_file; host_file.
    clsConfigExtraId String
    ID of the resource.
    containerFile Property Map
    Container file path info.
    containerStdout Property Map
    Container stdout info.
    excludePaths List<Property Map>
    Collection path blocklist.
    extractRule Property Map
    Extraction rule. If ExtractRule is set, LogType must be set.
    groupId String
    Binding group id.
    groupIds List<String>
    Binding group ids.
    hostFile Property Map
    Node file config info.
    logFormat String
    Log format.
    name String
    Collection configuration name.
    userDefineRule String
    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.
    The following state arguments are supported:
    ClsConfigExtraId string
    ID of the resource.
    ConfigFlag string
    Collection configuration flag.
    ContainerFile ClsConfigExtraContainerFile
    Container file path info.
    ContainerStdout ClsConfigExtraContainerStdout
    Container stdout info.
    ExcludePaths List<ClsConfigExtraExcludePath>
    Collection path blocklist.
    ExtractRule ClsConfigExtraExtractRule
    Extraction rule. If ExtractRule is set, LogType must be set.
    GroupId string
    Binding group id.
    GroupIds List<string>
    Binding group ids.
    HostFile ClsConfigExtraHostFile
    Node file config info.
    LogFormat string
    Log format.
    LogType 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.
    LogsetId string
    Logset Id.
    LogsetName string
    Logset Name.
    Name string
    Collection configuration name.
    TopicId string
    Log topic ID (TopicId) of collection configuration.
    TopicName string
    Topic Name.
    Type string
    Type. Valid values: container_stdout; container_file; host_file.
    UserDefineRule string
    Custom collection rule, which is a serialized JSON string.
    ClsConfigExtraId string
    ID of the resource.
    ConfigFlag string
    Collection configuration flag.
    ContainerFile ClsConfigExtraContainerFileArgs
    Container file path info.
    ContainerStdout ClsConfigExtraContainerStdoutArgs
    Container stdout info.
    ExcludePaths []ClsConfigExtraExcludePathArgs
    Collection path blocklist.
    ExtractRule ClsConfigExtraExtractRuleArgs
    Extraction rule. If ExtractRule is set, LogType must be set.
    GroupId string
    Binding group id.
    GroupIds []string
    Binding group ids.
    HostFile ClsConfigExtraHostFileArgs
    Node file config info.
    LogFormat string
    Log format.
    LogType 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.
    LogsetId string
    Logset Id.
    LogsetName string
    Logset Name.
    Name string
    Collection configuration name.
    TopicId string
    Log topic ID (TopicId) of collection configuration.
    TopicName string
    Topic Name.
    Type string
    Type. Valid values: container_stdout; container_file; host_file.
    UserDefineRule string
    Custom collection rule, which is a serialized JSON string.
    clsConfigExtraId String
    ID of the resource.
    configFlag String
    Collection configuration flag.
    containerFile ClsConfigExtraContainerFile
    Container file path info.
    containerStdout ClsConfigExtraContainerStdout
    Container stdout info.
    excludePaths List<ClsConfigExtraExcludePath>
    Collection path blocklist.
    extractRule ClsConfigExtraExtractRule
    Extraction rule. If ExtractRule is set, LogType must be set.
    groupId String
    Binding group id.
    groupIds List<String>
    Binding group ids.
    hostFile ClsConfigExtraHostFile
    Node file config info.
    logFormat String
    Log format.
    logType 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.
    logsetId String
    Logset Id.
    logsetName String
    Logset Name.
    name String
    Collection configuration name.
    topicId String
    Log topic ID (TopicId) of collection configuration.
    topicName String
    Topic Name.
    type String
    Type. Valid values: container_stdout; container_file; host_file.
    userDefineRule String
    Custom collection rule, which is a serialized JSON string.
    clsConfigExtraId string
    ID of the resource.
    configFlag string
    Collection configuration flag.
    containerFile ClsConfigExtraContainerFile
    Container file path info.
    containerStdout ClsConfigExtraContainerStdout
    Container stdout info.
    excludePaths ClsConfigExtraExcludePath[]
    Collection path blocklist.
    extractRule ClsConfigExtraExtractRule
    Extraction rule. If ExtractRule is set, LogType must be set.
    groupId string
    Binding group id.
    groupIds string[]
    Binding group ids.
    hostFile ClsConfigExtraHostFile
    Node file config info.
    logFormat string
    Log format.
    logType 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.
    logsetId string
    Logset Id.
    logsetName string
    Logset Name.
    name string
    Collection configuration name.
    topicId string
    Log topic ID (TopicId) of collection configuration.
    topicName string
    Topic Name.
    type string
    Type. Valid values: container_stdout; container_file; host_file.
    userDefineRule string
    Custom collection rule, which is a serialized JSON string.
    cls_config_extra_id str
    ID of the resource.
    config_flag str
    Collection configuration flag.
    container_file ClsConfigExtraContainerFileArgs
    Container file path info.
    container_stdout ClsConfigExtraContainerStdoutArgs
    Container stdout info.
    exclude_paths Sequence[ClsConfigExtraExcludePathArgs]
    Collection path blocklist.
    extract_rule ClsConfigExtraExtractRuleArgs
    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 ClsConfigExtraHostFileArgs
    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_rule str
    Custom collection rule, which is a serialized JSON string.
    clsConfigExtraId String
    ID of the resource.
    configFlag String
    Collection configuration flag.
    containerFile Property Map
    Container file path info.
    containerStdout Property Map
    Container stdout info.
    excludePaths List<Property Map>
    Collection path blocklist.
    extractRule Property Map
    Extraction rule. If ExtractRule is set, LogType must be set.
    groupId String
    Binding group id.
    groupIds List<String>
    Binding group ids.
    hostFile Property Map
    Node file config info.
    logFormat String
    Log format.
    logType 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.
    logsetId String
    Logset Id.
    logsetName String
    Logset Name.
    name String
    Collection configuration name.
    topicId String
    Log topic ID (TopicId) of collection configuration.
    topicName String
    Topic Name.
    type String
    Type. Valid values: container_stdout; container_file; host_file.
    userDefineRule String
    Custom collection rule, which is a serialized JSON string.

    Supporting Types

    ClsConfigExtraContainerFile, ClsConfigExtraContainerFileArgs

    Container string
    container name.
    FilePattern string
    log name.
    LogPath string
    Log Path.
    Namespace string
    namespace.
    ExcludeLabels List<string>
    Pod label to be excluded.
    ExcludeNamespace string
    Namespaces to be excluded, separated by separators, such as A, B.
    IncludeLabels List<string>
    Pod label info.
    Workload ClsConfigExtraContainerFileWorkload
    Workload info.
    Container string
    container name.
    FilePattern string
    log name.
    LogPath string
    Log Path.
    Namespace string
    namespace.
    ExcludeLabels []string
    Pod label to be excluded.
    ExcludeNamespace string
    Namespaces to be excluded, separated by separators, such as A, B.
    IncludeLabels []string
    Pod label info.
    Workload ClsConfigExtraContainerFileWorkload
    Workload info.
    container String
    container name.
    filePattern String
    log name.
    logPath String
    Log Path.
    namespace String
    namespace.
    excludeLabels List<String>
    Pod label to be excluded.
    excludeNamespace String
    Namespaces to be excluded, separated by separators, such as A, B.
    includeLabels List<String>
    Pod label info.
    workload ClsConfigExtraContainerFileWorkload
    Workload info.
    container string
    container name.
    filePattern string
    log name.
    logPath string
    Log Path.
    namespace string
    namespace.
    excludeLabels string[]
    Pod label to be excluded.
    excludeNamespace string
    Namespaces to be excluded, separated by separators, such as A, B.
    includeLabels string[]
    Pod label info.
    workload ClsConfigExtraContainerFileWorkload
    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 ClsConfigExtraContainerFileWorkload
    Workload info.
    container String
    container name.
    filePattern String
    log name.
    logPath String
    Log Path.
    namespace String
    namespace.
    excludeLabels List<String>
    Pod label to be excluded.
    excludeNamespace String
    Namespaces to be excluded, separated by separators, such as A, B.
    includeLabels List<String>
    Pod label info.
    workload Property Map
    Workload info.

    ClsConfigExtraContainerFileWorkload, ClsConfigExtraContainerFileWorkloadArgs

    Kind string
    workload type.
    Name string
    workload name.
    Container string
    container name.
    Namespace string
    namespace.
    Kind string
    workload type.
    Name string
    workload name.
    Container string
    container name.
    Namespace string
    namespace.
    kind String
    workload type.
    name String
    workload name.
    container String
    container name.
    namespace String
    namespace.
    kind string
    workload type.
    name string
    workload name.
    container string
    container name.
    namespace string
    namespace.
    kind str
    workload type.
    name str
    workload name.
    container str
    container name.
    namespace str
    namespace.
    kind String
    workload type.
    name String
    workload name.
    container String
    container name.
    namespace String
    namespace.

    ClsConfigExtraContainerStdout, ClsConfigExtraContainerStdoutArgs

    AllContainers bool
    Is all containers.
    ExcludeLabels List<string>
    Pod label to be excluded.
    ExcludeNamespace string
    Namespaces to be excluded, separated by separators, such as A, B.
    IncludeLabels List<string>
    Pod label info.
    Namespace string
    namespace.
    Workloads List<ClsConfigExtraContainerStdoutWorkload>
    Workload info.
    AllContainers bool
    Is all containers.
    ExcludeLabels []string
    Pod label to be excluded.
    ExcludeNamespace string
    Namespaces to be excluded, separated by separators, such as A, B.
    IncludeLabels []string
    Pod label info.
    Namespace string
    namespace.
    Workloads []ClsConfigExtraContainerStdoutWorkload
    Workload info.
    allContainers Boolean
    Is all containers.
    excludeLabels List<String>
    Pod label to be excluded.
    excludeNamespace String
    Namespaces to be excluded, separated by separators, such as A, B.
    includeLabels List<String>
    Pod label info.
    namespace String
    namespace.
    workloads List<ClsConfigExtraContainerStdoutWorkload>
    Workload info.
    allContainers boolean
    Is all containers.
    excludeLabels string[]
    Pod label to be excluded.
    excludeNamespace string
    Namespaces to be excluded, separated by separators, such as A, B.
    includeLabels string[]
    Pod label info.
    namespace string
    namespace.
    workloads ClsConfigExtraContainerStdoutWorkload[]
    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[ClsConfigExtraContainerStdoutWorkload]
    Workload info.
    allContainers Boolean
    Is all containers.
    excludeLabels List<String>
    Pod label to be excluded.
    excludeNamespace String
    Namespaces to be excluded, separated by separators, such as A, B.
    includeLabels List<String>
    Pod label info.
    namespace String
    namespace.
    workloads List<Property Map>
    Workload info.

    ClsConfigExtraContainerStdoutWorkload, ClsConfigExtraContainerStdoutWorkloadArgs

    Kind string
    workload type.
    Name string
    workload name.
    Container string
    container name.
    Namespace string
    namespace.
    Kind string
    workload type.
    Name string
    workload name.
    Container string
    container name.
    Namespace string
    namespace.
    kind String
    workload type.
    name String
    workload name.
    container String
    container name.
    namespace String
    namespace.
    kind string
    workload type.
    name string
    workload name.
    container string
    container name.
    namespace string
    namespace.
    kind str
    workload type.
    name str
    workload name.
    container str
    container name.
    namespace str
    namespace.
    kind String
    workload type.
    name String
    workload name.
    container String
    container name.
    namespace String
    namespace.

    ClsConfigExtraExcludePath, ClsConfigExtraExcludePathArgs

    Type string
    Type. Valid values: File, Path.
    Value string
    Specific content corresponding to Type.
    Type string
    Type. Valid values: File, Path.
    Value string
    Specific content corresponding to Type.
    type String
    Type. Valid values: File, Path.
    value String
    Specific content corresponding to Type.
    type string
    Type. Valid values: File, Path.
    value string
    Specific content corresponding to Type.
    type str
    Type. Valid values: File, Path.
    value str
    Specific content corresponding to Type.
    type String
    Type. Valid values: File, Path.
    value String
    Specific content corresponding to Type.

    ClsConfigExtraExtractRule, ClsConfigExtraExtractRuleArgs

    Backtracking double
    Size of the data to be rewound in incremental collection mode. Default value: -1 (full collection).
    BeginRegex 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.
    FilterKeyRegexes List<ClsConfigExtraExtractRuleFilterKeyRegex>
    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.
    LogRegex string
    Full log matching rule, which is valid only if log_type is fullregex_log.
    TimeFormat string
    Time field format. For more information, please see the output parameters of the time format description of the strftime function in C language.
    TimeKey string
    Time field key name. time_key and time_format must appear in pair.
    UnMatchLogKey string
    Unmatched log key.
    UnMatchUpLoadSwitch bool
    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).
    BeginRegex 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.
    FilterKeyRegexes []ClsConfigExtraExtractRuleFilterKeyRegex
    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.
    LogRegex string
    Full log matching rule, which is valid only if log_type is fullregex_log.
    TimeFormat string
    Time field format. For more information, please see the output parameters of the time format description of the strftime function in C language.
    TimeKey string
    Time field key name. time_key and time_format must appear in pair.
    UnMatchLogKey string
    Unmatched log key.
    UnMatchUpLoadSwitch bool
    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).
    beginRegex 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.
    filterKeyRegexes List<ClsConfigExtraExtractRuleFilterKeyRegex>
    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.
    logRegex String
    Full log matching rule, which is valid only if log_type is fullregex_log.
    timeFormat String
    Time field format. For more information, please see the output parameters of the time format description of the strftime function in C language.
    timeKey String
    Time field key name. time_key and time_format must appear in pair.
    unMatchLogKey String
    Unmatched log key.
    unMatchUpLoadSwitch Boolean
    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).
    beginRegex 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.
    filterKeyRegexes ClsConfigExtraExtractRuleFilterKeyRegex[]
    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.
    logRegex string
    Full log matching rule, which is valid only if log_type is fullregex_log.
    timeFormat string
    Time field format. For more information, please see the output parameters of the time format description of the strftime function in C language.
    timeKey string
    Time field key name. time_key and time_format must appear in pair.
    unMatchLogKey string
    Unmatched log key.
    unMatchUpLoadSwitch boolean
    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_regexes Sequence[ClsConfigExtraExtractRuleFilterKeyRegex]
    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_log_key str
    Unmatched log key.
    un_match_up_load_switch bool
    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).
    beginRegex 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.
    filterKeyRegexes List<Property Map>
    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.
    logRegex String
    Full log matching rule, which is valid only if log_type is fullregex_log.
    timeFormat String
    Time field format. For more information, please see the output parameters of the time format description of the strftime function in C language.
    timeKey String
    Time field key name. time_key and time_format must appear in pair.
    unMatchLogKey String
    Unmatched log key.
    unMatchUpLoadSwitch Boolean
    Whether to upload the logs that failed to be parsed. Valid values: true: yes; false: no.

    ClsConfigExtraExtractRuleFilterKeyRegex, ClsConfigExtraExtractRuleFilterKeyRegexArgs

    Key string
    Log key to be filtered.
    Regex string
    Filter rule regex corresponding to key.
    Key string
    Log key to be filtered.
    Regex string
    Filter rule regex corresponding to key.
    key String
    Log key to be filtered.
    regex String
    Filter rule regex corresponding to key.
    key string
    Log key to be filtered.
    regex string
    Filter rule regex corresponding to key.
    key str
    Log key to be filtered.
    regex str
    Filter rule regex corresponding to key.
    key String
    Log key to be filtered.
    regex String
    Filter rule regex corresponding to key.

    ClsConfigExtraHostFile, ClsConfigExtraHostFileArgs

    FilePattern string
    Log file name.
    LogPath string
    Log file dir.
    CustomLabels List<string>
    Metadata info.
    FilePattern string
    Log file name.
    LogPath string
    Log file dir.
    CustomLabels []string
    Metadata info.
    filePattern String
    Log file name.
    logPath String
    Log file dir.
    customLabels List<String>
    Metadata info.
    filePattern string
    Log file name.
    logPath string
    Log file dir.
    customLabels string[]
    Metadata info.
    file_pattern str
    Log file name.
    log_path str
    Log file dir.
    custom_labels Sequence[str]
    Metadata info.
    filePattern String
    Log file name.
    logPath String
    Log file dir.
    customLabels 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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack