published on Friday, Jun 5, 2026 by Chronosphere
published on Friday, Jun 5, 2026 by Chronosphere
Singleton org-wide pipeline of rules that sample, drop, replace, parse, or emit metrics from logs at ingest.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Pulumi = Chronosphere.Pulumi;
return await Deployment.RunAsync(() =>
{
var config = new Pulumi.LogControlConfig("config", new()
{
Rules = new[]
{
new Pulumi.Inputs.LogControlConfigRuleArgs
{
Filter = "service = 'sample-service' AND severity = 'debug'",
Mode = "ENABLED",
Name = "sample-debug",
Sample = new Pulumi.Inputs.LogControlConfigRuleSampleArgs
{
Rate = 0.01,
},
Type = "SAMPLE",
},
new Pulumi.Inputs.LogControlConfigRuleArgs
{
Filter = "service = 'deprecated-service'",
Mode = "ENABLED",
Name = "drop-deprecated",
Type = "DROP",
},
new Pulumi.Inputs.LogControlConfigRuleArgs
{
DropField = new Pulumi.Inputs.LogControlConfigRuleDropFieldArgs
{
FieldRegex = "password|secret|api_key",
ParentPath = new Pulumi.Inputs.LogControlConfigRuleDropFieldParentPathArgs
{
Selector = "kubernetes['labels']",
},
},
Filter = "service = 'api-gateway'",
Mode = "ENABLED",
Name = "drop-sensitive-fields",
Type = "DROP_FIELD",
},
new Pulumi.Inputs.LogControlConfigRuleArgs
{
Filter = "service = 'api-gateway'",
Mode = "ENABLED",
Name = "shorten-trace-ids",
ReplaceField = new Pulumi.Inputs.LogControlConfigRuleReplaceFieldArgs
{
Field = new Pulumi.Inputs.LogControlConfigRuleReplaceFieldFieldArgs
{
Selector = "trace_id",
},
ReplaceAll = false,
ReplaceMode = "STATIC_VALUE",
ReplaceRegex = "[0-9a-f]{32}",
StaticValue = new Pulumi.Inputs.LogControlConfigRuleReplaceFieldStaticValueArgs
{
Value = "[trace-id]",
},
},
Type = "REPLACE_FIELD",
},
},
});
});
package main
import (
"github.com/chronosphereio/pulumi-chronosphere/sdk/go/chronosphere"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := chronosphere.NewLogControlConfig(ctx, "config", &chronosphere.LogControlConfigArgs{
Rules: chronosphere.LogControlConfigRuleArray{
&chronosphere.LogControlConfigRuleArgs{
Filter: pulumi.String("service = 'sample-service' AND severity = 'debug'"),
Mode: pulumi.String("ENABLED"),
Name: pulumi.String("sample-debug"),
Sample: &chronosphere.LogControlConfigRuleSampleArgs{
Rate: pulumi.Float64(0.01),
},
Type: pulumi.String("SAMPLE"),
},
&chronosphere.LogControlConfigRuleArgs{
Filter: pulumi.String("service = 'deprecated-service'"),
Mode: pulumi.String("ENABLED"),
Name: pulumi.String("drop-deprecated"),
Type: pulumi.String("DROP"),
},
&chronosphere.LogControlConfigRuleArgs{
DropField: &chronosphere.LogControlConfigRuleDropFieldArgs{
FieldRegex: pulumi.String("password|secret|api_key"),
ParentPath: &chronosphere.LogControlConfigRuleDropFieldParentPathArgs{
Selector: pulumi.String("kubernetes['labels']"),
},
},
Filter: pulumi.String("service = 'api-gateway'"),
Mode: pulumi.String("ENABLED"),
Name: pulumi.String("drop-sensitive-fields"),
Type: pulumi.String("DROP_FIELD"),
},
&chronosphere.LogControlConfigRuleArgs{
Filter: pulumi.String("service = 'api-gateway'"),
Mode: pulumi.String("ENABLED"),
Name: pulumi.String("shorten-trace-ids"),
ReplaceField: &chronosphere.LogControlConfigRuleReplaceFieldArgs{
Field: &chronosphere.LogControlConfigRuleReplaceFieldFieldArgs{
Selector: pulumi.String("trace_id"),
},
ReplaceAll: pulumi.Bool(false),
ReplaceMode: pulumi.String("STATIC_VALUE"),
ReplaceRegex: pulumi.String("[0-9a-f]{32}"),
StaticValue: &chronosphere.LogControlConfigRuleReplaceFieldStaticValueArgs{
Value: pulumi.String("[trace-id]"),
},
},
Type: pulumi.String("REPLACE_FIELD"),
},
},
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.chronosphere.LogControlConfig;
import com.pulumi.chronosphere.LogControlConfigArgs;
import com.pulumi.chronosphere.inputs.LogControlConfigRuleArgs;
import com.pulumi.chronosphere.inputs.LogControlConfigRuleSampleArgs;
import com.pulumi.chronosphere.inputs.LogControlConfigRuleDropFieldArgs;
import com.pulumi.chronosphere.inputs.LogControlConfigRuleDropFieldParentPathArgs;
import com.pulumi.chronosphere.inputs.LogControlConfigRuleReplaceFieldArgs;
import com.pulumi.chronosphere.inputs.LogControlConfigRuleReplaceFieldFieldArgs;
import com.pulumi.chronosphere.inputs.LogControlConfigRuleReplaceFieldStaticValueArgs;
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 config = new LogControlConfig("config", LogControlConfigArgs.builder()
.rules(
LogControlConfigRuleArgs.builder()
.filter("service = 'sample-service' AND severity = 'debug'")
.mode("ENABLED")
.name("sample-debug")
.sample(LogControlConfigRuleSampleArgs.builder()
.rate(0.01)
.build())
.type("SAMPLE")
.build(),
LogControlConfigRuleArgs.builder()
.filter("service = 'deprecated-service'")
.mode("ENABLED")
.name("drop-deprecated")
.type("DROP")
.build(),
LogControlConfigRuleArgs.builder()
.dropField(LogControlConfigRuleDropFieldArgs.builder()
.fieldRegex("password|secret|api_key")
.parentPath(LogControlConfigRuleDropFieldParentPathArgs.builder()
.selector("kubernetes['labels']")
.build())
.build())
.filter("service = 'api-gateway'")
.mode("ENABLED")
.name("drop-sensitive-fields")
.type("DROP_FIELD")
.build(),
LogControlConfigRuleArgs.builder()
.filter("service = 'api-gateway'")
.mode("ENABLED")
.name("shorten-trace-ids")
.replaceField(LogControlConfigRuleReplaceFieldArgs.builder()
.field(LogControlConfigRuleReplaceFieldFieldArgs.builder()
.selector("trace_id")
.build())
.replaceAll(false)
.replaceMode("STATIC_VALUE")
.replaceRegex("[0-9a-f]{32}")
.staticValue(LogControlConfigRuleReplaceFieldStaticValueArgs.builder()
.value("[trace-id]")
.build())
.build())
.type("REPLACE_FIELD")
.build())
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as chronosphere from "@pulumi-chronosphere/pulumi-chronosphere";
const config = new chronosphere.LogControlConfig("config", {rules: [
{
filter: "service = 'sample-service' AND severity = 'debug'",
mode: "ENABLED",
name: "sample-debug",
sample: {
rate: 0.01,
},
type: "SAMPLE",
},
{
filter: "service = 'deprecated-service'",
mode: "ENABLED",
name: "drop-deprecated",
type: "DROP",
},
{
dropField: {
fieldRegex: "password|secret|api_key",
parentPath: {
selector: "kubernetes['labels']",
},
},
filter: "service = 'api-gateway'",
mode: "ENABLED",
name: "drop-sensitive-fields",
type: "DROP_FIELD",
},
{
filter: "service = 'api-gateway'",
mode: "ENABLED",
name: "shorten-trace-ids",
replaceField: {
field: {
selector: "trace_id",
},
replaceAll: false,
replaceMode: "STATIC_VALUE",
replaceRegex: "[0-9a-f]{32}",
staticValue: {
value: "[trace-id]",
},
},
type: "REPLACE_FIELD",
},
]});
import pulumi
import pulumi_chronosphere as chronosphere
config = chronosphere.LogControlConfig("config", rules=[
chronosphere.LogControlConfigRuleArgs(
filter="service = 'sample-service' AND severity = 'debug'",
mode="ENABLED",
name="sample-debug",
sample=chronosphere.LogControlConfigRuleSampleArgs(
rate=0.01,
),
type="SAMPLE",
),
chronosphere.LogControlConfigRuleArgs(
filter="service = 'deprecated-service'",
mode="ENABLED",
name="drop-deprecated",
type="DROP",
),
chronosphere.LogControlConfigRuleArgs(
drop_field=chronosphere.LogControlConfigRuleDropFieldArgs(
field_regex="password|secret|api_key",
parent_path=chronosphere.LogControlConfigRuleDropFieldParentPathArgs(
selector="kubernetes['labels']",
),
),
filter="service = 'api-gateway'",
mode="ENABLED",
name="drop-sensitive-fields",
type="DROP_FIELD",
),
chronosphere.LogControlConfigRuleArgs(
filter="service = 'api-gateway'",
mode="ENABLED",
name="shorten-trace-ids",
replace_field=chronosphere.LogControlConfigRuleReplaceFieldArgs(
field=chronosphere.LogControlConfigRuleReplaceFieldFieldArgs(
selector="trace_id",
),
replace_all=False,
replace_mode="STATIC_VALUE",
replace_regex="[0-9a-f]{32}",
static_value=chronosphere.LogControlConfigRuleReplaceFieldStaticValueArgs(
value="[trace-id]",
),
),
type="REPLACE_FIELD",
),
])
resources:
config:
type: chronosphere:LogControlConfig
properties:
rules:
- filter: service = 'sample-service' AND severity = 'debug'
mode: ENABLED
name: sample-debug
sample:
rate: 0.01
type: SAMPLE
- filter: service = 'deprecated-service'
mode: ENABLED
name: drop-deprecated
type: DROP
- dropField:
fieldRegex: password|secret|api_key
parentPath:
selector: kubernetes['labels']
filter: service = 'api-gateway'
mode: ENABLED
name: drop-sensitive-fields
type: DROP_FIELD
- filter: service = 'api-gateway'
mode: ENABLED
name: shorten-trace-ids
replaceField:
field:
selector: trace_id
replaceAll: false
replaceMode: STATIC_VALUE
replaceRegex: '[0-9a-f]{32}'
staticValue:
value: '[trace-id]'
type: REPLACE_FIELD
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.
resource "chronosphere_logcontrolconfig" "name" {
# resource properties
}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",
ParseField = new Pulumi.Inputs.LogControlConfigRuleParseFieldArgs
{
Parser = new Pulumi.Inputs.LogControlConfigRuleParseFieldParserArgs
{
ParserType = "string",
GrokParser = new Pulumi.Inputs.LogControlConfigRuleParseFieldParserGrokParserArgs
{
Pattern = "string",
},
KeyValueParser = new Pulumi.Inputs.LogControlConfigRuleParseFieldParserKeyValueParserArgs
{
Delimiter = "string",
PairSeparator = "string",
TrimSet = "string",
},
RegexParser = new Pulumi.Inputs.LogControlConfigRuleParseFieldParserRegexParserArgs
{
Regex = "string",
},
},
Destination = new Pulumi.Inputs.LogControlConfigRuleParseFieldDestinationArgs
{
Selector = "string",
},
Source = new Pulumi.Inputs.LogControlConfigRuleParseFieldSourceArgs
{
Selector = "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"),
ParseField: &chronosphere.LogControlConfigRuleParseFieldArgs{
Parser: &chronosphere.LogControlConfigRuleParseFieldParserArgs{
ParserType: pulumi.String("string"),
GrokParser: &chronosphere.LogControlConfigRuleParseFieldParserGrokParserArgs{
Pattern: pulumi.String("string"),
},
KeyValueParser: &chronosphere.LogControlConfigRuleParseFieldParserKeyValueParserArgs{
Delimiter: pulumi.String("string"),
PairSeparator: pulumi.String("string"),
TrimSet: pulumi.String("string"),
},
RegexParser: &chronosphere.LogControlConfigRuleParseFieldParserRegexParserArgs{
Regex: pulumi.String("string"),
},
},
Destination: &chronosphere.LogControlConfigRuleParseFieldDestinationArgs{
Selector: pulumi.String("string"),
},
Source: &chronosphere.LogControlConfigRuleParseFieldSourceArgs{
Selector: 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"),
},
},
})
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"
parse_field = {
parser = {
parser_type = "string"
grok_parser = {
pattern = "string"
}
key_value_parser = {
delimiter = "string"
pair_separator = "string"
trim_set = "string"
}
regex_parser = {
regex = "string"
}
}
destination = {
selector = "string"
}
source = {
selector = "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"
}
}
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")
.parseField(LogControlConfigRuleParseFieldArgs.builder()
.parser(LogControlConfigRuleParseFieldParserArgs.builder()
.parserType("string")
.grokParser(LogControlConfigRuleParseFieldParserGrokParserArgs.builder()
.pattern("string")
.build())
.keyValueParser(LogControlConfigRuleParseFieldParserKeyValueParserArgs.builder()
.delimiter("string")
.pairSeparator("string")
.trimSet("string")
.build())
.regexParser(LogControlConfigRuleParseFieldParserRegexParserArgs.builder()
.regex("string")
.build())
.build())
.destination(LogControlConfigRuleParseFieldDestinationArgs.builder()
.selector("string")
.build())
.source(LogControlConfigRuleParseFieldSourceArgs.builder()
.selector("string")
.build())
.build())
.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",
"parse_field": {
"parser": {
"parser_type": "string",
"grok_parser": {
"pattern": "string",
},
"key_value_parser": {
"delimiter": "string",
"pair_separator": "string",
"trim_set": "string",
},
"regex_parser": {
"regex": "string",
},
},
"destination": {
"selector": "string",
},
"source": {
"selector": "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": float(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",
parseField: {
parser: {
parserType: "string",
grokParser: {
pattern: "string",
},
keyValueParser: {
delimiter: "string",
pairSeparator: "string",
trimSet: "string",
},
regexParser: {
regex: "string",
},
},
destination: {
selector: "string",
},
source: {
selector: "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
parseField:
destination:
selector: string
parser:
grokParser:
pattern: string
keyValueParser:
delimiter: string
pairSeparator: string
trimSet: string
parserType: string
regexParser:
regex: string
source:
selector: 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:
- Rules
List<Chronosphere.
Pulumi. Inputs. Log Control Config Rule> - Ordered list of log control rules applied to the log ingest pipeline. Rules are evaluated in order.
- Rules
[]Log
Control Config Rule Args - Ordered list of log control rules applied to the log ingest pipeline. Rules are evaluated in order.
- rules list(object)
- Ordered list of log control rules applied to the log ingest pipeline. Rules are evaluated in order.
- rules
List<Log
Control Config Rule> - Ordered list of log control rules applied to the log ingest pipeline. Rules are evaluated in order.
- rules
Log
Control Config Rule[] - Ordered list of log control rules applied to the log ingest pipeline. Rules are evaluated in order.
- rules
Sequence[Log
Control Config Rule Args] - Ordered list of log control rules applied to the log ingest pipeline. Rules are evaluated in order.
- rules List<Property Map>
- Ordered list of log control rules applied to the log ingest pipeline. Rules are evaluated in order.
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 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) -> LogControlConfigfunc 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}import {
to = chronosphere_logcontrolconfig.example
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.
- Rules
List<Chronosphere.
Pulumi. Inputs. Log Control Config Rule> - Ordered list of log control rules applied to the log ingest pipeline. Rules are evaluated in order.
- Rules
[]Log
Control Config Rule Args - Ordered list of log control rules applied to the log ingest pipeline. Rules are evaluated in order.
- rules list(object)
- Ordered list of log control rules applied to the log ingest pipeline. Rules are evaluated in order.
- rules
List<Log
Control Config Rule> - Ordered list of log control rules applied to the log ingest pipeline. Rules are evaluated in order.
- rules
Log
Control Config Rule[] - Ordered list of log control rules applied to the log ingest pipeline. Rules are evaluated in order.
- rules
Sequence[Log
Control Config Rule Args] - Ordered list of log control rules applied to the log ingest pipeline. Rules are evaluated in order.
- rules List<Property Map>
- Ordered list of log control rules applied to the log ingest pipeline. Rules are evaluated in order.
Supporting Types
LogControlConfigRule, LogControlConfigRuleArgs
- Drop
Field Chronosphere.Pulumi. Inputs. Log Control Config Rule Drop Field - Configuration for the
DROP_FIELDaction, which removes fields from matching logs. - Emit
Metrics Chronosphere.Pulumi. Inputs. Log Control Config Rule Emit Metrics - Configuration for the
EMIT_METRICSaction, which derives Prometheus metrics from matching logs. - Filter string
- Log query filter that selects matching logs. The control action applies only to logs that match.
- Mode string
- Execution mode for the rule (for example,
ENABLEDorDISABLED). - Name string
- User-defined name for the control rule.
- Parse
Field Chronosphere.Pulumi. Inputs. Log Control Config Rule Parse Field - Configuration for the
PARSE_FIELDaction, which parses a field with a regex, key/value, or grok parser and writes the result to another field. - Replace
Field Chronosphere.Pulumi. Inputs. Log Control Config Rule Replace Field - Configuration for the
REPLACE_FIELDaction, which rewrites field values in matching logs. - Sample
Chronosphere.
Pulumi. Inputs. Log Control Config Rule Sample - Configuration for the
SAMPLE_LOGSaction, which keeps a fraction of matching logs. - Type string
- Type of control action this rule performs. Exactly one of the matching action blocks (
sample,drop_field,emit_metrics,replace_field,parse_field) must be configured.
- Drop
Field LogControl Config Rule Drop Field - Configuration for the
DROP_FIELDaction, which removes fields from matching logs. - Emit
Metrics LogControl Config Rule Emit Metrics - Configuration for the
EMIT_METRICSaction, which derives Prometheus metrics from matching logs. - Filter string
- Log query filter that selects matching logs. The control action applies only to logs that match.
- Mode string
- Execution mode for the rule (for example,
ENABLEDorDISABLED). - Name string
- User-defined name for the control rule.
- Parse
Field LogControl Config Rule Parse Field - Configuration for the
PARSE_FIELDaction, which parses a field with a regex, key/value, or grok parser and writes the result to another field. - Replace
Field LogControl Config Rule Replace Field - Configuration for the
REPLACE_FIELDaction, which rewrites field values in matching logs. - Sample
Log
Control Config Rule Sample - Configuration for the
SAMPLE_LOGSaction, which keeps a fraction of matching logs. - Type string
- Type of control action this rule performs. Exactly one of the matching action blocks (
sample,drop_field,emit_metrics,replace_field,parse_field) must be configured.
- drop_
field object - Configuration for the
DROP_FIELDaction, which removes fields from matching logs. - emit_
metrics object - Configuration for the
EMIT_METRICSaction, which derives Prometheus metrics from matching logs. - filter string
- Log query filter that selects matching logs. The control action applies only to logs that match.
- mode string
- Execution mode for the rule (for example,
ENABLEDorDISABLED). - name string
- User-defined name for the control rule.
- parse_
field object - Configuration for the
PARSE_FIELDaction, which parses a field with a regex, key/value, or grok parser and writes the result to another field. - replace_
field object - Configuration for the
REPLACE_FIELDaction, which rewrites field values in matching logs. - sample object
- Configuration for the
SAMPLE_LOGSaction, which keeps a fraction of matching logs. - type string
- Type of control action this rule performs. Exactly one of the matching action blocks (
sample,drop_field,emit_metrics,replace_field,parse_field) must be configured.
- drop
Field LogControl Config Rule Drop Field - Configuration for the
DROP_FIELDaction, which removes fields from matching logs. - emit
Metrics LogControl Config Rule Emit Metrics - Configuration for the
EMIT_METRICSaction, which derives Prometheus metrics from matching logs. - filter String
- Log query filter that selects matching logs. The control action applies only to logs that match.
- mode String
- Execution mode for the rule (for example,
ENABLEDorDISABLED). - name String
- User-defined name for the control rule.
- parse
Field LogControl Config Rule Parse Field - Configuration for the
PARSE_FIELDaction, which parses a field with a regex, key/value, or grok parser and writes the result to another field. - replace
Field LogControl Config Rule Replace Field - Configuration for the
REPLACE_FIELDaction, which rewrites field values in matching logs. - sample
Log
Control Config Rule Sample - Configuration for the
SAMPLE_LOGSaction, which keeps a fraction of matching logs. - type String
- Type of control action this rule performs. Exactly one of the matching action blocks (
sample,drop_field,emit_metrics,replace_field,parse_field) must be configured.
- drop
Field LogControl Config Rule Drop Field - Configuration for the
DROP_FIELDaction, which removes fields from matching logs. - emit
Metrics LogControl Config Rule Emit Metrics - Configuration for the
EMIT_METRICSaction, which derives Prometheus metrics from matching logs. - filter string
- Log query filter that selects matching logs. The control action applies only to logs that match.
- mode string
- Execution mode for the rule (for example,
ENABLEDorDISABLED). - name string
- User-defined name for the control rule.
- parse
Field LogControl Config Rule Parse Field - Configuration for the
PARSE_FIELDaction, which parses a field with a regex, key/value, or grok parser and writes the result to another field. - replace
Field LogControl Config Rule Replace Field - Configuration for the
REPLACE_FIELDaction, which rewrites field values in matching logs. - sample
Log
Control Config Rule Sample - Configuration for the
SAMPLE_LOGSaction, which keeps a fraction of matching logs. - type string
- Type of control action this rule performs. Exactly one of the matching action blocks (
sample,drop_field,emit_metrics,replace_field,parse_field) must be configured.
- drop_
field LogControl Config Rule Drop Field - Configuration for the
DROP_FIELDaction, which removes fields from matching logs. - emit_
metrics LogControl Config Rule Emit Metrics - Configuration for the
EMIT_METRICSaction, which derives Prometheus metrics from matching logs. - filter str
- Log query filter that selects matching logs. The control action applies only to logs that match.
- mode str
- Execution mode for the rule (for example,
ENABLEDorDISABLED). - name str
- User-defined name for the control rule.
- parse_
field LogControl Config Rule Parse Field - Configuration for the
PARSE_FIELDaction, which parses a field with a regex, key/value, or grok parser and writes the result to another field. - replace_
field LogControl Config Rule Replace Field - Configuration for the
REPLACE_FIELDaction, which rewrites field values in matching logs. - sample
Log
Control Config Rule Sample - Configuration for the
SAMPLE_LOGSaction, which keeps a fraction of matching logs. - type str
- Type of control action this rule performs. Exactly one of the matching action blocks (
sample,drop_field,emit_metrics,replace_field,parse_field) must be configured.
- drop
Field Property Map - Configuration for the
DROP_FIELDaction, which removes fields from matching logs. - emit
Metrics Property Map - Configuration for the
EMIT_METRICSaction, which derives Prometheus metrics from matching logs. - filter String
- Log query filter that selects matching logs. The control action applies only to logs that match.
- mode String
- Execution mode for the rule (for example,
ENABLEDorDISABLED). - name String
- User-defined name for the control rule.
- parse
Field Property Map - Configuration for the
PARSE_FIELDaction, which parses a field with a regex, key/value, or grok parser and writes the result to another field. - replace
Field Property Map - Configuration for the
REPLACE_FIELDaction, which rewrites field values in matching logs. - sample Property Map
- Configuration for the
SAMPLE_LOGSaction, which keeps a fraction of matching logs. - type String
- Type of control action this rule performs. Exactly one of the matching action blocks (
sample,drop_field,emit_metrics,replace_field,parse_field) must be configured.
LogControlConfigRuleDropField, LogControlConfigRuleDropFieldArgs
- Field
Regex string - Regular expression that selects which fields to drop.
- Parent
Path Chronosphere.Pulumi. Inputs. Log Control Config Rule Drop Field Parent Path - Path to a field within a log record.
- Field
Regex string - Regular expression that selects which fields to drop.
- Parent
Path LogControl Config Rule Drop Field Parent Path - Path to a field within a log record.
- field_
regex string - Regular expression that selects which fields to drop.
- parent_
path object - Path to a field within a log record.
- field
Regex String - Regular expression that selects which fields to drop.
- parent
Path LogControl Config Rule Drop Field Parent Path - Path to a field within a log record.
- field
Regex string - Regular expression that selects which fields to drop.
- parent
Path LogControl Config Rule Drop Field Parent Path - Path to a field within a log record.
- field_
regex str - Regular expression that selects which fields to drop.
- parent_
path LogControl Config Rule Drop Field Parent Path - Path to a field within a log record.
- field
Regex String - Regular expression that selects which fields to drop.
- parent
Path Property Map - Path to a field within a log record.
LogControlConfigRuleDropFieldParentPath, LogControlConfigRuleDropFieldParentPathArgs
- Selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- Selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector String
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector str
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector String
- Field path selector. Use
parent[child]syntax to indicate nesting.
LogControlConfigRuleEmitMetrics, LogControlConfigRuleEmitMetricsArgs
- Counter
Chronosphere.
Pulumi. Inputs. Log Control Config Rule Emit Metrics Counter - Emit a counter metric. Exactly one of
counter,gauge, orhistogrammust be set. - Drop
Log bool - If
true, drops the entire log after emitting the metric. - Gauge
Chronosphere.
Pulumi. Inputs. Log Control Config Rule Emit Metrics Gauge - Emit a gauge metric. Exactly one of
counter,gauge, orhistogrammust be set. - Histogram
Chronosphere.
Pulumi. Inputs. Log Control Config Rule Emit Metrics Histogram - Emit a histogram metric. Exactly one of
counter,gauge, orhistogrammust be set. - Labels
List<Chronosphere.
Pulumi. Inputs. Log Control Config Rule Emit Metrics Label> - Labels to attach to the generated metric, specified as key/value pairs mapping a Prometheus label name to a log field path.
- Mode string
- Metric emission mode that controls how the metric is generated from matching logs.
- Name string
- Name of the generated metric. Must conform to Prometheus naming conventions and be unique within the tenant.
- Counter
Log
Control Config Rule Emit Metrics Counter - Emit a counter metric. Exactly one of
counter,gauge, orhistogrammust be set. - Drop
Log bool - If
true, drops the entire log after emitting the metric. - Gauge
Log
Control Config Rule Emit Metrics Gauge - Emit a gauge metric. Exactly one of
counter,gauge, orhistogrammust be set. - Histogram
Log
Control Config Rule Emit Metrics Histogram - Emit a histogram metric. Exactly one of
counter,gauge, orhistogrammust be set. - Labels
[]Log
Control Config Rule Emit Metrics Label - Labels to attach to the generated metric, specified as key/value pairs mapping a Prometheus label name to a log field path.
- Mode string
- Metric emission mode that controls how the metric is generated from matching logs.
- Name string
- Name of the generated metric. Must conform to Prometheus naming conventions and be unique within the tenant.
- counter object
- Emit a counter metric. Exactly one of
counter,gauge, orhistogrammust be set. - drop_
log bool - If
true, drops the entire log after emitting the metric. - gauge object
- Emit a gauge metric. Exactly one of
counter,gauge, orhistogrammust be set. - histogram object
- Emit a histogram metric. Exactly one of
counter,gauge, orhistogrammust be set. - labels list(object)
- Labels to attach to the generated metric, specified as key/value pairs mapping a Prometheus label name to a log field path.
- mode string
- Metric emission mode that controls how the metric is generated from matching logs.
- name string
- Name of the generated metric. Must conform to Prometheus naming conventions and be unique within the tenant.
- counter
Log
Control Config Rule Emit Metrics Counter - Emit a counter metric. Exactly one of
counter,gauge, orhistogrammust be set. - drop
Log Boolean - If
true, drops the entire log after emitting the metric. - gauge
Log
Control Config Rule Emit Metrics Gauge - Emit a gauge metric. Exactly one of
counter,gauge, orhistogrammust be set. - histogram
Log
Control Config Rule Emit Metrics Histogram - Emit a histogram metric. Exactly one of
counter,gauge, orhistogrammust be set. - labels
List<Log
Control Config Rule Emit Metrics Label> - Labels to attach to the generated metric, specified as key/value pairs mapping a Prometheus label name to a log field path.
- mode String
- Metric emission mode that controls how the metric is generated from matching logs.
- name String
- Name of the generated metric. Must conform to Prometheus naming conventions and be unique within the tenant.
- counter
Log
Control Config Rule Emit Metrics Counter - Emit a counter metric. Exactly one of
counter,gauge, orhistogrammust be set. - drop
Log boolean - If
true, drops the entire log after emitting the metric. - gauge
Log
Control Config Rule Emit Metrics Gauge - Emit a gauge metric. Exactly one of
counter,gauge, orhistogrammust be set. - histogram
Log
Control Config Rule Emit Metrics Histogram - Emit a histogram metric. Exactly one of
counter,gauge, orhistogrammust be set. - labels
Log
Control Config Rule Emit Metrics Label[] - Labels to attach to the generated metric, specified as key/value pairs mapping a Prometheus label name to a log field path.
- mode string
- Metric emission mode that controls how the metric is generated from matching logs.
- name string
- Name of the generated metric. Must conform to Prometheus naming conventions and be unique within the tenant.
- counter
Log
Control Config Rule Emit Metrics Counter - Emit a counter metric. Exactly one of
counter,gauge, orhistogrammust be set. - drop_
log bool - If
true, drops the entire log after emitting the metric. - gauge
Log
Control Config Rule Emit Metrics Gauge - Emit a gauge metric. Exactly one of
counter,gauge, orhistogrammust be set. - histogram
Log
Control Config Rule Emit Metrics Histogram - Emit a histogram metric. Exactly one of
counter,gauge, orhistogrammust be set. - labels
Sequence[Log
Control Config Rule Emit Metrics Label] - Labels to attach to the generated metric, specified as key/value pairs mapping a Prometheus label name to a log field path.
- mode str
- Metric emission mode that controls how the metric is generated from matching logs.
- name str
- Name of the generated metric. Must conform to Prometheus naming conventions and be unique within the tenant.
- counter Property Map
- Emit a counter metric. Exactly one of
counter,gauge, orhistogrammust be set. - drop
Log Boolean - If
true, drops the entire log after emitting the metric. - gauge Property Map
- Emit a gauge metric. Exactly one of
counter,gauge, orhistogrammust be set. - histogram Property Map
- Emit a histogram metric. Exactly one of
counter,gauge, orhistogrammust be set. - labels List<Property Map>
- Labels to attach to the generated metric, specified as key/value pairs mapping a Prometheus label name to a log field path.
- mode String
- Metric emission mode that controls how the metric is generated from matching logs.
- name String
- Name of the generated metric. Must conform to Prometheus naming conventions and be unique within the tenant.
LogControlConfigRuleEmitMetricsCounter, LogControlConfigRuleEmitMetricsCounterArgs
- Value
Chronosphere.
Pulumi. Inputs. Log Control Config Rule Emit Metrics Counter Value - Path to a field within a log record.
- Value
Log
Control Config Rule Emit Metrics Counter Value - Path to a field within a log record.
- value
Log
Control Config Rule Emit Metrics Counter Value - Path to a field within a log record.
- value
Log
Control Config Rule Emit Metrics Counter Value - Path to a field within a log record.
- value
Log
Control Config Rule Emit Metrics Counter Value - Path to a field within a log record.
- value Property Map
- Path to a field within a log record.
LogControlConfigRuleEmitMetricsCounterValue, LogControlConfigRuleEmitMetricsCounterValueArgs
- Selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- Selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector String
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector str
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector String
- Field path selector. Use
parent[child]syntax to indicate nesting.
LogControlConfigRuleEmitMetricsGauge, LogControlConfigRuleEmitMetricsGaugeArgs
- Aggregation
Type string - How multiple values are aggregated into the emitted gauge (for example,
LAST,MIN,MAX). - Value
Chronosphere.
Pulumi. Inputs. Log Control Config Rule Emit Metrics Gauge Value - Path to a field within a log record.
- Aggregation
Type string - How multiple values are aggregated into the emitted gauge (for example,
LAST,MIN,MAX). - Value
Log
Control Config Rule Emit Metrics Gauge Value - Path to a field within a log record.
- aggregation_
type string - How multiple values are aggregated into the emitted gauge (for example,
LAST,MIN,MAX). - value object
- Path to a field within a log record.
- aggregation
Type String - How multiple values are aggregated into the emitted gauge (for example,
LAST,MIN,MAX). - value
Log
Control Config Rule Emit Metrics Gauge Value - Path to a field within a log record.
- aggregation
Type string - How multiple values are aggregated into the emitted gauge (for example,
LAST,MIN,MAX). - value
Log
Control Config Rule Emit Metrics Gauge Value - Path to a field within a log record.
- aggregation_
type str - How multiple values are aggregated into the emitted gauge (for example,
LAST,MIN,MAX). - value
Log
Control Config Rule Emit Metrics Gauge Value - Path to a field within a log record.
- aggregation
Type String - How multiple values are aggregated into the emitted gauge (for example,
LAST,MIN,MAX). - value Property Map
- Path to a field within a log record.
LogControlConfigRuleEmitMetricsGaugeValue, LogControlConfigRuleEmitMetricsGaugeValueArgs
- Selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- Selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector String
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector str
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector String
- Field path selector. Use
parent[child]syntax to indicate nesting.
LogControlConfigRuleEmitMetricsHistogram, LogControlConfigRuleEmitMetricsHistogramArgs
- Value
Chronosphere.
Pulumi. Inputs. Log Control Config Rule Emit Metrics Histogram Value - Path to a field within a log record.
- Value
Log
Control Config Rule Emit Metrics Histogram Value - Path to a field within a log record.
- value
Log
Control Config Rule Emit Metrics Histogram Value - Path to a field within a log record.
- value
Log
Control Config Rule Emit Metrics Histogram Value - Path to a field within a log record.
- value
Log
Control Config Rule Emit Metrics Histogram Value - Path to a field within a log record.
- value Property Map
- Path to a field within a log record.
LogControlConfigRuleEmitMetricsHistogramValue, LogControlConfigRuleEmitMetricsHistogramValueArgs
- Selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- Selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector String
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector str
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector String
- Field path selector. Use
parent[child]syntax to indicate nesting.
LogControlConfigRuleEmitMetricsLabel, LogControlConfigRuleEmitMetricsLabelArgs
- Key string
- Prometheus label name to set on the emitted metric.
- Value
Chronosphere.
Pulumi. Inputs. Log Control Config Rule Emit Metrics Label Value - Path to a field within a log record.
- Key string
- Prometheus label name to set on the emitted metric.
- Value
Log
Control Config Rule Emit Metrics Label Value - Path to a field within a log record.
- key String
- Prometheus label name to set on the emitted metric.
- value
Log
Control Config Rule Emit Metrics Label Value - Path to a field within a log record.
- key string
- Prometheus label name to set on the emitted metric.
- value
Log
Control Config Rule Emit Metrics Label Value - Path to a field within a log record.
- key str
- Prometheus label name to set on the emitted metric.
- value
Log
Control Config Rule Emit Metrics Label Value - Path to a field within a log record.
- key String
- Prometheus label name to set on the emitted metric.
- value Property Map
- Path to a field within a log record.
LogControlConfigRuleEmitMetricsLabelValue, LogControlConfigRuleEmitMetricsLabelValueArgs
- Selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- Selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector String
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector str
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector String
- Field path selector. Use
parent[child]syntax to indicate nesting.
LogControlConfigRuleParseField, LogControlConfigRuleParseFieldArgs
- Parser
Chronosphere.
Pulumi. Inputs. Log Control Config Rule Parse Field Parser - Parser configuration. Exactly one of
regex_parser,key_value_parser, orgrok_parsermust be set, matchingparser_type. - Destination
Chronosphere.
Pulumi. Inputs. Log Control Config Rule Parse Field Destination - Path to a field within a log record.
- Source
Chronosphere.
Pulumi. Inputs. Log Control Config Rule Parse Field Source - Path to a field within a log record.
- Parser
Log
Control Config Rule Parse Field Parser - Parser configuration. Exactly one of
regex_parser,key_value_parser, orgrok_parsermust be set, matchingparser_type. - Destination
Log
Control Config Rule Parse Field Destination - Path to a field within a log record.
- Source
Log
Control Config Rule Parse Field Source - Path to a field within a log record.
- parser
Log
Control Config Rule Parse Field Parser - Parser configuration. Exactly one of
regex_parser,key_value_parser, orgrok_parsermust be set, matchingparser_type. - destination
Log
Control Config Rule Parse Field Destination - Path to a field within a log record.
- source
Log
Control Config Rule Parse Field Source - Path to a field within a log record.
- parser
Log
Control Config Rule Parse Field Parser - Parser configuration. Exactly one of
regex_parser,key_value_parser, orgrok_parsermust be set, matchingparser_type. - destination
Log
Control Config Rule Parse Field Destination - Path to a field within a log record.
- source
Log
Control Config Rule Parse Field Source - Path to a field within a log record.
- parser
Log
Control Config Rule Parse Field Parser - Parser configuration. Exactly one of
regex_parser,key_value_parser, orgrok_parsermust be set, matchingparser_type. - destination
Log
Control Config Rule Parse Field Destination - Path to a field within a log record.
- source
Log
Control Config Rule Parse Field Source - Path to a field within a log record.
- parser Property Map
- Parser configuration. Exactly one of
regex_parser,key_value_parser, orgrok_parsermust be set, matchingparser_type. - destination Property Map
- Path to a field within a log record.
- source Property Map
- Path to a field within a log record.
LogControlConfigRuleParseFieldDestination, LogControlConfigRuleParseFieldDestinationArgs
- Selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- Selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector String
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector str
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector String
- Field path selector. Use
parent[child]syntax to indicate nesting.
LogControlConfigRuleParseFieldParser, LogControlConfigRuleParseFieldParserArgs
- Parser
Type string - Type of parser to apply. Determines which of
regex_parser,key_value_parser, orgrok_parsermust be set. - Grok
Parser Chronosphere.Pulumi. Inputs. Log Control Config Rule Parse Field Parser Grok Parser - Grok parser configuration. Only set when
parser_typeisGROK. - Key
Value Chronosphere.Parser Pulumi. Inputs. Log Control Config Rule Parse Field Parser Key Value Parser - Key/value parser configuration. Only set when
parser_typeisKEY_VALUE. Duplicate keys keep the first occurrence. - Regex
Parser Chronosphere.Pulumi. Inputs. Log Control Config Rule Parse Field Parser Regex Parser - Regex parser configuration. Only set when
parser_typeisREGEX.
- Parser
Type string - Type of parser to apply. Determines which of
regex_parser,key_value_parser, orgrok_parsermust be set. - Grok
Parser LogControl Config Rule Parse Field Parser Grok Parser - Grok parser configuration. Only set when
parser_typeisGROK. - Key
Value LogParser Control Config Rule Parse Field Parser Key Value Parser - Key/value parser configuration. Only set when
parser_typeisKEY_VALUE. Duplicate keys keep the first occurrence. - Regex
Parser LogControl Config Rule Parse Field Parser Regex Parser - Regex parser configuration. Only set when
parser_typeisREGEX.
- parser_
type string - Type of parser to apply. Determines which of
regex_parser,key_value_parser, orgrok_parsermust be set. - grok_
parser object - Grok parser configuration. Only set when
parser_typeisGROK. - key_
value_ objectparser - Key/value parser configuration. Only set when
parser_typeisKEY_VALUE. Duplicate keys keep the first occurrence. - regex_
parser object - Regex parser configuration. Only set when
parser_typeisREGEX.
- parser
Type String - Type of parser to apply. Determines which of
regex_parser,key_value_parser, orgrok_parsermust be set. - grok
Parser LogControl Config Rule Parse Field Parser Grok Parser - Grok parser configuration. Only set when
parser_typeisGROK. - key
Value LogParser Control Config Rule Parse Field Parser Key Value Parser - Key/value parser configuration. Only set when
parser_typeisKEY_VALUE. Duplicate keys keep the first occurrence. - regex
Parser LogControl Config Rule Parse Field Parser Regex Parser - Regex parser configuration. Only set when
parser_typeisREGEX.
- parser
Type string - Type of parser to apply. Determines which of
regex_parser,key_value_parser, orgrok_parsermust be set. - grok
Parser LogControl Config Rule Parse Field Parser Grok Parser - Grok parser configuration. Only set when
parser_typeisGROK. - key
Value LogParser Control Config Rule Parse Field Parser Key Value Parser - Key/value parser configuration. Only set when
parser_typeisKEY_VALUE. Duplicate keys keep the first occurrence. - regex
Parser LogControl Config Rule Parse Field Parser Regex Parser - Regex parser configuration. Only set when
parser_typeisREGEX.
- parser_
type str - Type of parser to apply. Determines which of
regex_parser,key_value_parser, orgrok_parsermust be set. - grok_
parser LogControl Config Rule Parse Field Parser Grok Parser - Grok parser configuration. Only set when
parser_typeisGROK. - key_
value_ Logparser Control Config Rule Parse Field Parser Key Value Parser - Key/value parser configuration. Only set when
parser_typeisKEY_VALUE. Duplicate keys keep the first occurrence. - regex_
parser LogControl Config Rule Parse Field Parser Regex Parser - Regex parser configuration. Only set when
parser_typeisREGEX.
- parser
Type String - Type of parser to apply. Determines which of
regex_parser,key_value_parser, orgrok_parsermust be set. - grok
Parser Property Map - Grok parser configuration. Only set when
parser_typeisGROK. - key
Value Property MapParser - Key/value parser configuration. Only set when
parser_typeisKEY_VALUE. Duplicate keys keep the first occurrence. - regex
Parser Property Map - Regex parser configuration. Only set when
parser_typeisREGEX.
LogControlConfigRuleParseFieldParserGrokParser, LogControlConfigRuleParseFieldParserGrokParserArgs
- Pattern string
- Grok pattern to apply. Named capture groups become named fields in the extracted log.
- Pattern string
- Grok pattern to apply. Named capture groups become named fields in the extracted log.
- pattern string
- Grok pattern to apply. Named capture groups become named fields in the extracted log.
- pattern String
- Grok pattern to apply. Named capture groups become named fields in the extracted log.
- pattern string
- Grok pattern to apply. Named capture groups become named fields in the extracted log.
- pattern str
- Grok pattern to apply. Named capture groups become named fields in the extracted log.
- pattern String
- Grok pattern to apply. Named capture groups become named fields in the extracted log.
LogControlConfigRuleParseFieldParserKeyValueParser, LogControlConfigRuleParseFieldParserKeyValueParserArgs
- Delimiter string
- String used to split the input into individual key/value pairs.
- Pair
Separator string - String used to split each pair into a key and value.
- Trim
Set string - Unicode code points to trim from the beginning and end of each key and value.
- Delimiter string
- String used to split the input into individual key/value pairs.
- Pair
Separator string - String used to split each pair into a key and value.
- Trim
Set string - Unicode code points to trim from the beginning and end of each key and value.
- delimiter string
- String used to split the input into individual key/value pairs.
- pair_
separator string - String used to split each pair into a key and value.
- trim_
set string - Unicode code points to trim from the beginning and end of each key and value.
- delimiter String
- String used to split the input into individual key/value pairs.
- pair
Separator String - String used to split each pair into a key and value.
- trim
Set String - Unicode code points to trim from the beginning and end of each key and value.
- delimiter string
- String used to split the input into individual key/value pairs.
- pair
Separator string - String used to split each pair into a key and value.
- trim
Set string - Unicode code points to trim from the beginning and end of each key and value.
- delimiter str
- String used to split the input into individual key/value pairs.
- pair_
separator str - String used to split each pair into a key and value.
- trim_
set str - Unicode code points to trim from the beginning and end of each key and value.
- delimiter String
- String used to split the input into individual key/value pairs.
- pair
Separator String - String used to split each pair into a key and value.
- trim
Set String - Unicode code points to trim from the beginning and end of each key and value.
LogControlConfigRuleParseFieldParserRegexParser, LogControlConfigRuleParseFieldParserRegexParserArgs
- Regex string
- RE2 regular expression pattern. Named capturing groups become named fields in the extracted log.
- Regex string
- RE2 regular expression pattern. Named capturing groups become named fields in the extracted log.
- regex string
- RE2 regular expression pattern. Named capturing groups become named fields in the extracted log.
- regex String
- RE2 regular expression pattern. Named capturing groups become named fields in the extracted log.
- regex string
- RE2 regular expression pattern. Named capturing groups become named fields in the extracted log.
- regex str
- RE2 regular expression pattern. Named capturing groups become named fields in the extracted log.
- regex String
- RE2 regular expression pattern. Named capturing groups become named fields in the extracted log.
LogControlConfigRuleParseFieldSource, LogControlConfigRuleParseFieldSourceArgs
- Selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- Selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector String
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector str
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector String
- Field path selector. Use
parent[child]syntax to indicate nesting.
LogControlConfigRuleReplaceField, LogControlConfigRuleReplaceFieldArgs
- Field
Chronosphere.
Pulumi. Inputs. Log Control Config Rule Replace Field Field - Path to a field within a log record.
- Mapped
Value Chronosphere.Pulumi. Inputs. Log Control Config Rule Replace Field Mapped Value - Replace field values using a key/value lookup table. Exactly one of
mapped_valueorstatic_valuemust be set. - Replace
All bool - If
true, replaces all matches. Iffalse, replaces only the first match. - Replace
Mode string - Mode that controls how the replacement is applied to matched content.
- Replace
Regex string - Regular expression that selects which part of the field value to replace.
- Static
Value Chronosphere.Pulumi. Inputs. Log Control Config Rule Replace Field Static Value - Replace matched content with a static string. Exactly one of
mapped_valueorstatic_valuemust be set.
- Field
Log
Control Config Rule Replace Field Field - Path to a field within a log record.
- Mapped
Value LogControl Config Rule Replace Field Mapped Value - Replace field values using a key/value lookup table. Exactly one of
mapped_valueorstatic_valuemust be set. - Replace
All bool - If
true, replaces all matches. Iffalse, replaces only the first match. - Replace
Mode string - Mode that controls how the replacement is applied to matched content.
- Replace
Regex string - Regular expression that selects which part of the field value to replace.
- Static
Value LogControl Config Rule Replace Field Static Value - Replace matched content with a static string. Exactly one of
mapped_valueorstatic_valuemust be set.
- field object
- Path to a field within a log record.
- mapped_
value object - Replace field values using a key/value lookup table. Exactly one of
mapped_valueorstatic_valuemust be set. - replace_
all bool - If
true, replaces all matches. Iffalse, replaces only the first match. - replace_
mode string - Mode that controls how the replacement is applied to matched content.
- replace_
regex string - Regular expression that selects which part of the field value to replace.
- static_
value object - Replace matched content with a static string. Exactly one of
mapped_valueorstatic_valuemust be set.
- field
Log
Control Config Rule Replace Field Field - Path to a field within a log record.
- mapped
Value LogControl Config Rule Replace Field Mapped Value - Replace field values using a key/value lookup table. Exactly one of
mapped_valueorstatic_valuemust be set. - replace
All Boolean - If
true, replaces all matches. Iffalse, replaces only the first match. - replace
Mode String - Mode that controls how the replacement is applied to matched content.
- replace
Regex String - Regular expression that selects which part of the field value to replace.
- static
Value LogControl Config Rule Replace Field Static Value - Replace matched content with a static string. Exactly one of
mapped_valueorstatic_valuemust be set.
- field
Log
Control Config Rule Replace Field Field - Path to a field within a log record.
- mapped
Value LogControl Config Rule Replace Field Mapped Value - Replace field values using a key/value lookup table. Exactly one of
mapped_valueorstatic_valuemust be set. - replace
All boolean - If
true, replaces all matches. Iffalse, replaces only the first match. - replace
Mode string - Mode that controls how the replacement is applied to matched content.
- replace
Regex string - Regular expression that selects which part of the field value to replace.
- static
Value LogControl Config Rule Replace Field Static Value - Replace matched content with a static string. Exactly one of
mapped_valueorstatic_valuemust be set.
- field
Log
Control Config Rule Replace Field Field - Path to a field within a log record.
- mapped_
value LogControl Config Rule Replace Field Mapped Value - Replace field values using a key/value lookup table. Exactly one of
mapped_valueorstatic_valuemust be set. - replace_
all bool - If
true, replaces all matches. Iffalse, replaces only the first match. - replace_
mode str - Mode that controls how the replacement is applied to matched content.
- replace_
regex str - Regular expression that selects which part of the field value to replace.
- static_
value LogControl Config Rule Replace Field Static Value - Replace matched content with a static string. Exactly one of
mapped_valueorstatic_valuemust be set.
- field Property Map
- Path to a field within a log record.
- mapped
Value Property Map - Replace field values using a key/value lookup table. Exactly one of
mapped_valueorstatic_valuemust be set. - replace
All Boolean - If
true, replaces all matches. Iffalse, replaces only the first match. - replace
Mode String - Mode that controls how the replacement is applied to matched content.
- replace
Regex String - Regular expression that selects which part of the field value to replace.
- static
Value Property Map - Replace matched content with a static string. Exactly one of
mapped_valueorstatic_valuemust be set.
LogControlConfigRuleReplaceFieldField, LogControlConfigRuleReplaceFieldFieldArgs
- Selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- Selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector String
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector string
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector str
- Field path selector. Use
parent[child]syntax to indicate nesting.
- selector String
- Field path selector. Use
parent[child]syntax to indicate nesting.
LogControlConfigRuleReplaceFieldMappedValue, LogControlConfigRuleReplaceFieldMappedValueArgs
- Default
Value string - Value to substitute when no matching key is found, when
use_defaultistrue. - Pairs
List<Chronosphere.
Pulumi. Inputs. Log Control Config Rule Replace Field Mapped Value Pair> - List of key/value pairs that map matched content to replacement values.
- Use
Default bool - If
true, falls back todefault_valuewhen no key matches. Iffalse, leaves the value unchanged on a miss.
- Default
Value string - Value to substitute when no matching key is found, when
use_defaultistrue. - Pairs
[]Log
Control Config Rule Replace Field Mapped Value Pair - List of key/value pairs that map matched content to replacement values.
- Use
Default bool - If
true, falls back todefault_valuewhen no key matches. Iffalse, leaves the value unchanged on a miss.
- default_
value string - Value to substitute when no matching key is found, when
use_defaultistrue. - pairs list(object)
- List of key/value pairs that map matched content to replacement values.
- use_
default bool - If
true, falls back todefault_valuewhen no key matches. Iffalse, leaves the value unchanged on a miss.
- default
Value String - Value to substitute when no matching key is found, when
use_defaultistrue. - pairs
List<Log
Control Config Rule Replace Field Mapped Value Pair> - List of key/value pairs that map matched content to replacement values.
- use
Default Boolean - If
true, falls back todefault_valuewhen no key matches. Iffalse, leaves the value unchanged on a miss.
- default
Value string - Value to substitute when no matching key is found, when
use_defaultistrue. - pairs
Log
Control Config Rule Replace Field Mapped Value Pair[] - List of key/value pairs that map matched content to replacement values.
- use
Default boolean - If
true, falls back todefault_valuewhen no key matches. Iffalse, leaves the value unchanged on a miss.
- default_
value str - Value to substitute when no matching key is found, when
use_defaultistrue. - pairs
Sequence[Log
Control Config Rule Replace Field Mapped Value Pair] - List of key/value pairs that map matched content to replacement values.
- use_
default bool - If
true, falls back todefault_valuewhen no key matches. Iffalse, leaves the value unchanged on a miss.
- default
Value String - Value to substitute when no matching key is found, when
use_defaultistrue. - pairs List<Property Map>
- List of key/value pairs that map matched content to replacement values.
- use
Default Boolean - If
true, falls back todefault_valuewhen no key matches. Iffalse, leaves the value unchanged on a miss.
LogControlConfigRuleReplaceFieldMappedValuePair, LogControlConfigRuleReplaceFieldMappedValuePairArgs
LogControlConfigRuleReplaceFieldStaticValue, LogControlConfigRuleReplaceFieldStaticValueArgs
- Value string
- Path to a field within a log record.
- Value string
- Path to a field within a log record.
- value string
- Path to a field within a log record.
- value String
- Path to a field within a log record.
- value string
- Path to a field within a log record.
- value str
- Path to a field within a log record.
- value String
- Path to a field within a log record.
LogControlConfigRuleSample, LogControlConfigRuleSampleArgs
- Rate double
- Fraction of matching logs to keep, in the range
[0, 1](for example,0.25keeps 25%).
- Rate float64
- Fraction of matching logs to keep, in the range
[0, 1](for example,0.25keeps 25%).
- rate number
- Fraction of matching logs to keep, in the range
[0, 1](for example,0.25keeps 25%).
- rate Double
- Fraction of matching logs to keep, in the range
[0, 1](for example,0.25keeps 25%).
- rate number
- Fraction of matching logs to keep, in the range
[0, 1](for example,0.25keeps 25%).
- rate float
- Fraction of matching logs to keep, in the range
[0, 1](for example,0.25keeps 25%).
- rate Number
- Fraction of matching logs to keep, in the range
[0, 1](for example,0.25keeps 25%).
Package Details
- Repository
- chronosphere chronosphereio/pulumi-chronosphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
chronosphereTerraform Provider.
published on Friday, Jun 5, 2026 by Chronosphere