1. Packages
  2. Chronosphere
  3. API Docs
  4. LogControlConfig
Chronosphere v0.9.10 published on Thursday, Oct 23, 2025 by Chronosphere

chronosphere.LogControlConfig

Get Started
chronosphere logo
Chronosphere v0.9.10 published on Thursday, Oct 23, 2025 by Chronosphere

    Create LogControlConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LogControlConfig(name: string, args?: LogControlConfigArgs, opts?: CustomResourceOptions);
    @overload
    def LogControlConfig(resource_name: str,
                         args: Optional[LogControlConfigArgs] = None,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def LogControlConfig(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         rules: Optional[Sequence[LogControlConfigRuleArgs]] = None)
    func NewLogControlConfig(ctx *Context, name string, args *LogControlConfigArgs, opts ...ResourceOption) (*LogControlConfig, error)
    public LogControlConfig(string name, LogControlConfigArgs? args = null, CustomResourceOptions? opts = null)
    public LogControlConfig(String name, LogControlConfigArgs args)
    public LogControlConfig(String name, LogControlConfigArgs args, CustomResourceOptions options)
    
    type: chronosphere:LogControlConfig
    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 LogControlConfigArgs
    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 LogControlConfigArgs
    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 LogControlConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LogControlConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LogControlConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var logControlConfigResource = new Pulumi.LogControlConfig("logControlConfigResource", new()
    {
        Rules = new[]
        {
            new Pulumi.Inputs.LogControlConfigRuleArgs
            {
                DropField = new Pulumi.Inputs.LogControlConfigRuleDropFieldArgs
                {
                    FieldRegex = "string",
                    ParentPath = new Pulumi.Inputs.LogControlConfigRuleDropFieldParentPathArgs
                    {
                        Selector = "string",
                    },
                },
                EmitMetrics = new Pulumi.Inputs.LogControlConfigRuleEmitMetricsArgs
                {
                    Counter = new Pulumi.Inputs.LogControlConfigRuleEmitMetricsCounterArgs
                    {
                        Value = new Pulumi.Inputs.LogControlConfigRuleEmitMetricsCounterValueArgs
                        {
                            Selector = "string",
                        },
                    },
                    DropLog = false,
                    Gauge = new Pulumi.Inputs.LogControlConfigRuleEmitMetricsGaugeArgs
                    {
                        AggregationType = "string",
                        Value = new Pulumi.Inputs.LogControlConfigRuleEmitMetricsGaugeValueArgs
                        {
                            Selector = "string",
                        },
                    },
                    Histogram = new Pulumi.Inputs.LogControlConfigRuleEmitMetricsHistogramArgs
                    {
                        Value = new Pulumi.Inputs.LogControlConfigRuleEmitMetricsHistogramValueArgs
                        {
                            Selector = "string",
                        },
                    },
                    Labels = new[]
                    {
                        new Pulumi.Inputs.LogControlConfigRuleEmitMetricsLabelArgs
                        {
                            Key = "string",
                            Value = new Pulumi.Inputs.LogControlConfigRuleEmitMetricsLabelValueArgs
                            {
                                Selector = "string",
                            },
                        },
                    },
                    Mode = "string",
                    Name = "string",
                },
                Filter = "string",
                Mode = "string",
                Name = "string",
                ReplaceField = new Pulumi.Inputs.LogControlConfigRuleReplaceFieldArgs
                {
                    Field = new Pulumi.Inputs.LogControlConfigRuleReplaceFieldFieldArgs
                    {
                        Selector = "string",
                    },
                    MappedValue = new Pulumi.Inputs.LogControlConfigRuleReplaceFieldMappedValueArgs
                    {
                        DefaultValue = "string",
                        Pairs = new[]
                        {
                            new Pulumi.Inputs.LogControlConfigRuleReplaceFieldMappedValuePairArgs
                            {
                                Key = "string",
                                Value = "string",
                            },
                        },
                        UseDefault = false,
                    },
                    ReplaceAll = false,
                    ReplaceMode = "string",
                    ReplaceRegex = "string",
                    StaticValue = new Pulumi.Inputs.LogControlConfigRuleReplaceFieldStaticValueArgs
                    {
                        Value = "string",
                    },
                },
                Sample = new Pulumi.Inputs.LogControlConfigRuleSampleArgs
                {
                    Rate = 0,
                },
                Type = "string",
            },
        },
    });
    
    example, err := chronosphere.NewLogControlConfig(ctx, "logControlConfigResource", &chronosphere.LogControlConfigArgs{
    	Rules: chronosphere.LogControlConfigRuleArray{
    		&chronosphere.LogControlConfigRuleArgs{
    			DropField: &chronosphere.LogControlConfigRuleDropFieldArgs{
    				FieldRegex: pulumi.String("string"),
    				ParentPath: &chronosphere.LogControlConfigRuleDropFieldParentPathArgs{
    					Selector: pulumi.String("string"),
    				},
    			},
    			EmitMetrics: &chronosphere.LogControlConfigRuleEmitMetricsArgs{
    				Counter: &chronosphere.LogControlConfigRuleEmitMetricsCounterArgs{
    					Value: &chronosphere.LogControlConfigRuleEmitMetricsCounterValueArgs{
    						Selector: pulumi.String("string"),
    					},
    				},
    				DropLog: pulumi.Bool(false),
    				Gauge: &chronosphere.LogControlConfigRuleEmitMetricsGaugeArgs{
    					AggregationType: pulumi.String("string"),
    					Value: &chronosphere.LogControlConfigRuleEmitMetricsGaugeValueArgs{
    						Selector: pulumi.String("string"),
    					},
    				},
    				Histogram: &chronosphere.LogControlConfigRuleEmitMetricsHistogramArgs{
    					Value: &chronosphere.LogControlConfigRuleEmitMetricsHistogramValueArgs{
    						Selector: pulumi.String("string"),
    					},
    				},
    				Labels: chronosphere.LogControlConfigRuleEmitMetricsLabelArray{
    					&chronosphere.LogControlConfigRuleEmitMetricsLabelArgs{
    						Key: pulumi.String("string"),
    						Value: &chronosphere.LogControlConfigRuleEmitMetricsLabelValueArgs{
    							Selector: pulumi.String("string"),
    						},
    					},
    				},
    				Mode: pulumi.String("string"),
    				Name: pulumi.String("string"),
    			},
    			Filter: pulumi.String("string"),
    			Mode:   pulumi.String("string"),
    			Name:   pulumi.String("string"),
    			ReplaceField: &chronosphere.LogControlConfigRuleReplaceFieldArgs{
    				Field: &chronosphere.LogControlConfigRuleReplaceFieldFieldArgs{
    					Selector: pulumi.String("string"),
    				},
    				MappedValue: &chronosphere.LogControlConfigRuleReplaceFieldMappedValueArgs{
    					DefaultValue: pulumi.String("string"),
    					Pairs: chronosphere.LogControlConfigRuleReplaceFieldMappedValuePairArray{
    						&chronosphere.LogControlConfigRuleReplaceFieldMappedValuePairArgs{
    							Key:   pulumi.String("string"),
    							Value: pulumi.String("string"),
    						},
    					},
    					UseDefault: pulumi.Bool(false),
    				},
    				ReplaceAll:   pulumi.Bool(false),
    				ReplaceMode:  pulumi.String("string"),
    				ReplaceRegex: pulumi.String("string"),
    				StaticValue: &chronosphere.LogControlConfigRuleReplaceFieldStaticValueArgs{
    					Value: pulumi.String("string"),
    				},
    			},
    			Sample: &chronosphere.LogControlConfigRuleSampleArgs{
    				Rate: pulumi.Float64(0),
    			},
    			Type: pulumi.String("string"),
    		},
    	},
    })
    
    var logControlConfigResource = new LogControlConfig("logControlConfigResource", LogControlConfigArgs.builder()
        .rules(LogControlConfigRuleArgs.builder()
            .dropField(LogControlConfigRuleDropFieldArgs.builder()
                .fieldRegex("string")
                .parentPath(LogControlConfigRuleDropFieldParentPathArgs.builder()
                    .selector("string")
                    .build())
                .build())
            .emitMetrics(LogControlConfigRuleEmitMetricsArgs.builder()
                .counter(LogControlConfigRuleEmitMetricsCounterArgs.builder()
                    .value(LogControlConfigRuleEmitMetricsCounterValueArgs.builder()
                        .selector("string")
                        .build())
                    .build())
                .dropLog(false)
                .gauge(LogControlConfigRuleEmitMetricsGaugeArgs.builder()
                    .aggregationType("string")
                    .value(LogControlConfigRuleEmitMetricsGaugeValueArgs.builder()
                        .selector("string")
                        .build())
                    .build())
                .histogram(LogControlConfigRuleEmitMetricsHistogramArgs.builder()
                    .value(LogControlConfigRuleEmitMetricsHistogramValueArgs.builder()
                        .selector("string")
                        .build())
                    .build())
                .labels(LogControlConfigRuleEmitMetricsLabelArgs.builder()
                    .key("string")
                    .value(LogControlConfigRuleEmitMetricsLabelValueArgs.builder()
                        .selector("string")
                        .build())
                    .build())
                .mode("string")
                .name("string")
                .build())
            .filter("string")
            .mode("string")
            .name("string")
            .replaceField(LogControlConfigRuleReplaceFieldArgs.builder()
                .field(LogControlConfigRuleReplaceFieldFieldArgs.builder()
                    .selector("string")
                    .build())
                .mappedValue(LogControlConfigRuleReplaceFieldMappedValueArgs.builder()
                    .defaultValue("string")
                    .pairs(LogControlConfigRuleReplaceFieldMappedValuePairArgs.builder()
                        .key("string")
                        .value("string")
                        .build())
                    .useDefault(false)
                    .build())
                .replaceAll(false)
                .replaceMode("string")
                .replaceRegex("string")
                .staticValue(LogControlConfigRuleReplaceFieldStaticValueArgs.builder()
                    .value("string")
                    .build())
                .build())
            .sample(LogControlConfigRuleSampleArgs.builder()
                .rate(0.0)
                .build())
            .type("string")
            .build())
        .build());
    
    log_control_config_resource = chronosphere.LogControlConfig("logControlConfigResource", rules=[{
        "drop_field": {
            "field_regex": "string",
            "parent_path": {
                "selector": "string",
            },
        },
        "emit_metrics": {
            "counter": {
                "value": {
                    "selector": "string",
                },
            },
            "drop_log": False,
            "gauge": {
                "aggregation_type": "string",
                "value": {
                    "selector": "string",
                },
            },
            "histogram": {
                "value": {
                    "selector": "string",
                },
            },
            "labels": [{
                "key": "string",
                "value": {
                    "selector": "string",
                },
            }],
            "mode": "string",
            "name": "string",
        },
        "filter": "string",
        "mode": "string",
        "name": "string",
        "replace_field": {
            "field": {
                "selector": "string",
            },
            "mapped_value": {
                "default_value": "string",
                "pairs": [{
                    "key": "string",
                    "value": "string",
                }],
                "use_default": False,
            },
            "replace_all": False,
            "replace_mode": "string",
            "replace_regex": "string",
            "static_value": {
                "value": "string",
            },
        },
        "sample": {
            "rate": 0,
        },
        "type": "string",
    }])
    
    const logControlConfigResource = new chronosphere.LogControlConfig("logControlConfigResource", {rules: [{
        dropField: {
            fieldRegex: "string",
            parentPath: {
                selector: "string",
            },
        },
        emitMetrics: {
            counter: {
                value: {
                    selector: "string",
                },
            },
            dropLog: false,
            gauge: {
                aggregationType: "string",
                value: {
                    selector: "string",
                },
            },
            histogram: {
                value: {
                    selector: "string",
                },
            },
            labels: [{
                key: "string",
                value: {
                    selector: "string",
                },
            }],
            mode: "string",
            name: "string",
        },
        filter: "string",
        mode: "string",
        name: "string",
        replaceField: {
            field: {
                selector: "string",
            },
            mappedValue: {
                defaultValue: "string",
                pairs: [{
                    key: "string",
                    value: "string",
                }],
                useDefault: false,
            },
            replaceAll: false,
            replaceMode: "string",
            replaceRegex: "string",
            staticValue: {
                value: "string",
            },
        },
        sample: {
            rate: 0,
        },
        type: "string",
    }]});
    
    type: chronosphere:LogControlConfig
    properties:
        rules:
            - dropField:
                fieldRegex: string
                parentPath:
                    selector: string
              emitMetrics:
                counter:
                    value:
                        selector: string
                dropLog: false
                gauge:
                    aggregationType: string
                    value:
                        selector: string
                histogram:
                    value:
                        selector: string
                labels:
                    - key: string
                      value:
                        selector: string
                mode: string
                name: string
              filter: string
              mode: string
              name: string
              replaceField:
                field:
                    selector: string
                mappedValue:
                    defaultValue: string
                    pairs:
                        - key: string
                          value: string
                    useDefault: false
                replaceAll: false
                replaceMode: string
                replaceRegex: string
                staticValue:
                    value: string
              sample:
                rate: 0
              type: string
    

    LogControlConfig 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 LogControlConfig resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LogControlConfig 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 LogControlConfig Resource

    Get an existing LogControlConfig 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?: LogControlConfigState, opts?: CustomResourceOptions): LogControlConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            rules: Optional[Sequence[LogControlConfigRuleArgs]] = None) -> LogControlConfig
    func GetLogControlConfig(ctx *Context, name string, id IDInput, state *LogControlConfigState, opts ...ResourceOption) (*LogControlConfig, error)
    public static LogControlConfig Get(string name, Input<string> id, LogControlConfigState? state, CustomResourceOptions? opts = null)
    public static LogControlConfig get(String name, Output<String> id, LogControlConfigState state, CustomResourceOptions options)
    resources:  _:    type: chronosphere:LogControlConfig    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.

    Supporting Types

    LogControlConfigRule, LogControlConfigRuleArgs

    LogControlConfigRuleDropField, LogControlConfigRuleDropFieldArgs

    LogControlConfigRuleDropFieldParentPath, LogControlConfigRuleDropFieldParentPathArgs

    Selector string
    Selector string
    selector String
    selector string
    selector String

    LogControlConfigRuleEmitMetrics, LogControlConfigRuleEmitMetricsArgs

    LogControlConfigRuleEmitMetricsCounter, LogControlConfigRuleEmitMetricsCounterArgs

    LogControlConfigRuleEmitMetricsCounterValue, LogControlConfigRuleEmitMetricsCounterValueArgs

    Selector string
    Selector string
    selector String
    selector string
    selector String

    LogControlConfigRuleEmitMetricsGauge, LogControlConfigRuleEmitMetricsGaugeArgs

    LogControlConfigRuleEmitMetricsGaugeValue, LogControlConfigRuleEmitMetricsGaugeValueArgs

    Selector string
    Selector string
    selector String
    selector string
    selector String

    LogControlConfigRuleEmitMetricsHistogram, LogControlConfigRuleEmitMetricsHistogramArgs

    LogControlConfigRuleEmitMetricsHistogramValue, LogControlConfigRuleEmitMetricsHistogramValueArgs

    Selector string
    Selector string
    selector String
    selector string
    selector String

    LogControlConfigRuleEmitMetricsLabel, LogControlConfigRuleEmitMetricsLabelArgs

    LogControlConfigRuleEmitMetricsLabelValue, LogControlConfigRuleEmitMetricsLabelValueArgs

    Selector string
    Selector string
    selector String
    selector string
    selector String

    LogControlConfigRuleReplaceField, LogControlConfigRuleReplaceFieldArgs

    LogControlConfigRuleReplaceFieldField, LogControlConfigRuleReplaceFieldFieldArgs

    Selector string
    Selector string
    selector String
    selector string
    selector String

    LogControlConfigRuleReplaceFieldMappedValue, LogControlConfigRuleReplaceFieldMappedValueArgs

    LogControlConfigRuleReplaceFieldMappedValuePair, LogControlConfigRuleReplaceFieldMappedValuePairArgs

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    LogControlConfigRuleReplaceFieldStaticValue, LogControlConfigRuleReplaceFieldStaticValueArgs

    Value string
    Value string
    value String
    value string
    value str
    value String

    LogControlConfigRuleSample, LogControlConfigRuleSampleArgs

    Rate double
    Rate float64
    rate Double
    rate number
    rate float
    rate Number

    Package Details

    Repository
    chronosphere chronosphereio/pulumi-chronosphere
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the chronosphere Terraform Provider.
    chronosphere logo
    Chronosphere v0.9.10 published on Thursday, Oct 23, 2025 by Chronosphere
      Meet Neo: Your AI Platform Teammate