1. Packages
  2. Dynatrace
  3. API Docs
  4. LogProcessing
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

dynatrace.LogProcessing

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

    Create LogProcessing Resource

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

    Constructor syntax

    new LogProcessing(name: string, args: LogProcessingArgs, opts?: CustomResourceOptions);
    @overload
    def LogProcessing(resource_name: str,
                      args: LogProcessingArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def LogProcessing(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      enabled: Optional[bool] = None,
                      processor_definition: Optional[LogProcessingProcessorDefinitionArgs] = None,
                      query: Optional[str] = None,
                      rule_name: Optional[str] = None,
                      rule_testing: Optional[LogProcessingRuleTestingArgs] = None,
                      insert_after: Optional[str] = None)
    func NewLogProcessing(ctx *Context, name string, args LogProcessingArgs, opts ...ResourceOption) (*LogProcessing, error)
    public LogProcessing(string name, LogProcessingArgs args, CustomResourceOptions? opts = null)
    public LogProcessing(String name, LogProcessingArgs args)
    public LogProcessing(String name, LogProcessingArgs args, CustomResourceOptions options)
    
    type: dynatrace:LogProcessing
    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 LogProcessingArgs
    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 LogProcessingArgs
    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 LogProcessingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LogProcessingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LogProcessingArgs
    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 logProcessingResource = new Dynatrace.LogProcessing("logProcessingResource", new()
    {
        Enabled = false,
        ProcessorDefinition = new Dynatrace.Inputs.LogProcessingProcessorDefinitionArgs
        {
            Rule = "string",
        },
        Query = "string",
        RuleName = "string",
        RuleTesting = new Dynatrace.Inputs.LogProcessingRuleTestingArgs
        {
            SampleLog = "string",
        },
        InsertAfter = "string",
    });
    
    example, err := dynatrace.NewLogProcessing(ctx, "logProcessingResource", &dynatrace.LogProcessingArgs{
    	Enabled: pulumi.Bool(false),
    	ProcessorDefinition: &dynatrace.LogProcessingProcessorDefinitionArgs{
    		Rule: pulumi.String("string"),
    	},
    	Query:    pulumi.String("string"),
    	RuleName: pulumi.String("string"),
    	RuleTesting: &dynatrace.LogProcessingRuleTestingArgs{
    		SampleLog: pulumi.String("string"),
    	},
    	InsertAfter: pulumi.String("string"),
    })
    
    var logProcessingResource = new LogProcessing("logProcessingResource", LogProcessingArgs.builder()
        .enabled(false)
        .processorDefinition(LogProcessingProcessorDefinitionArgs.builder()
            .rule("string")
            .build())
        .query("string")
        .ruleName("string")
        .ruleTesting(LogProcessingRuleTestingArgs.builder()
            .sampleLog("string")
            .build())
        .insertAfter("string")
        .build());
    
    log_processing_resource = dynatrace.LogProcessing("logProcessingResource",
        enabled=False,
        processor_definition={
            "rule": "string",
        },
        query="string",
        rule_name="string",
        rule_testing={
            "sample_log": "string",
        },
        insert_after="string")
    
    const logProcessingResource = new dynatrace.LogProcessing("logProcessingResource", {
        enabled: false,
        processorDefinition: {
            rule: "string",
        },
        query: "string",
        ruleName: "string",
        ruleTesting: {
            sampleLog: "string",
        },
        insertAfter: "string",
    });
    
    type: dynatrace:LogProcessing
    properties:
        enabled: false
        insertAfter: string
        processorDefinition:
            rule: string
        query: string
        ruleName: string
        ruleTesting:
            sampleLog: string
    

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

    Enabled bool
    This setting is enabled (true) or disabled (false)
    ProcessorDefinition Pulumiverse.Dynatrace.Inputs.LogProcessingProcessorDefinition

    Processor definition Add a rule definition using our syntax. In our documentation you

    will find instructions and application examples.

    Query string
    Matcher
    RuleName string
    Rule name
    RuleTesting Pulumiverse.Dynatrace.Inputs.LogProcessingRuleTesting

    Rule testing ### 1. Paste a log / JSON sample

    InsertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    Enabled bool
    This setting is enabled (true) or disabled (false)
    ProcessorDefinition LogProcessingProcessorDefinitionArgs

    Processor definition Add a rule definition using our syntax. In our documentation you

    will find instructions and application examples.

    Query string
    Matcher
    RuleName string
    Rule name
    RuleTesting LogProcessingRuleTestingArgs

    Rule testing ### 1. Paste a log / JSON sample

    InsertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    processorDefinition LogProcessingProcessorDefinition

    Processor definition Add a rule definition using our syntax. In our documentation you

    will find instructions and application examples.

    query String
    Matcher
    ruleName String
    Rule name
    ruleTesting LogProcessingRuleTesting

    Rule testing ### 1. Paste a log / JSON sample

    insertAfter String
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    enabled boolean
    This setting is enabled (true) or disabled (false)
    processorDefinition LogProcessingProcessorDefinition

    Processor definition Add a rule definition using our syntax. In our documentation you

    will find instructions and application examples.

    query string
    Matcher
    ruleName string
    Rule name
    ruleTesting LogProcessingRuleTesting

    Rule testing ### 1. Paste a log / JSON sample

    insertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    enabled bool
    This setting is enabled (true) or disabled (false)
    processor_definition LogProcessingProcessorDefinitionArgs

    Processor definition Add a rule definition using our syntax. In our documentation you

    will find instructions and application examples.

    query str
    Matcher
    rule_name str
    Rule name
    rule_testing LogProcessingRuleTestingArgs

    Rule testing ### 1. Paste a log / JSON sample

    insert_after str
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    processorDefinition Property Map

    Processor definition Add a rule definition using our syntax. In our documentation you

    will find instructions and application examples.

    query String
    Matcher
    ruleName String
    Rule name
    ruleTesting Property Map

    Rule testing ### 1. Paste a log / JSON sample

    insertAfter String
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched

    Outputs

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

    Get an existing LogProcessing 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?: LogProcessingState, opts?: CustomResourceOptions): LogProcessing
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            enabled: Optional[bool] = None,
            insert_after: Optional[str] = None,
            processor_definition: Optional[LogProcessingProcessorDefinitionArgs] = None,
            query: Optional[str] = None,
            rule_name: Optional[str] = None,
            rule_testing: Optional[LogProcessingRuleTestingArgs] = None) -> LogProcessing
    func GetLogProcessing(ctx *Context, name string, id IDInput, state *LogProcessingState, opts ...ResourceOption) (*LogProcessing, error)
    public static LogProcessing Get(string name, Input<string> id, LogProcessingState? state, CustomResourceOptions? opts = null)
    public static LogProcessing get(String name, Output<String> id, LogProcessingState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Enabled bool
    This setting is enabled (true) or disabled (false)
    InsertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    ProcessorDefinition Pulumiverse.Dynatrace.Inputs.LogProcessingProcessorDefinition

    Processor definition Add a rule definition using our syntax. In our documentation you

    will find instructions and application examples.

    Query string
    Matcher
    RuleName string
    Rule name
    RuleTesting Pulumiverse.Dynatrace.Inputs.LogProcessingRuleTesting

    Rule testing ### 1. Paste a log / JSON sample

    Enabled bool
    This setting is enabled (true) or disabled (false)
    InsertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    ProcessorDefinition LogProcessingProcessorDefinitionArgs

    Processor definition Add a rule definition using our syntax. In our documentation you

    will find instructions and application examples.

    Query string
    Matcher
    RuleName string
    Rule name
    RuleTesting LogProcessingRuleTestingArgs

    Rule testing ### 1. Paste a log / JSON sample

    enabled Boolean
    This setting is enabled (true) or disabled (false)
    insertAfter String
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    processorDefinition LogProcessingProcessorDefinition

    Processor definition Add a rule definition using our syntax. In our documentation you

    will find instructions and application examples.

    query String
    Matcher
    ruleName String
    Rule name
    ruleTesting LogProcessingRuleTesting

    Rule testing ### 1. Paste a log / JSON sample

    enabled boolean
    This setting is enabled (true) or disabled (false)
    insertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    processorDefinition LogProcessingProcessorDefinition

    Processor definition Add a rule definition using our syntax. In our documentation you

    will find instructions and application examples.

    query string
    Matcher
    ruleName string
    Rule name
    ruleTesting LogProcessingRuleTesting

    Rule testing ### 1. Paste a log / JSON sample

    enabled bool
    This setting is enabled (true) or disabled (false)
    insert_after str
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    processor_definition LogProcessingProcessorDefinitionArgs

    Processor definition Add a rule definition using our syntax. In our documentation you

    will find instructions and application examples.

    query str
    Matcher
    rule_name str
    Rule name
    rule_testing LogProcessingRuleTestingArgs

    Rule testing ### 1. Paste a log / JSON sample

    enabled Boolean
    This setting is enabled (true) or disabled (false)
    insertAfter String
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    processorDefinition Property Map

    Processor definition Add a rule definition using our syntax. In our documentation you

    will find instructions and application examples.

    query String
    Matcher
    ruleName String
    Rule name
    ruleTesting Property Map

    Rule testing ### 1. Paste a log / JSON sample

    Supporting Types

    LogProcessingProcessorDefinition, LogProcessingProcessorDefinitionArgs

    Rule string
    Processor definition
    Rule string
    Processor definition
    rule String
    Processor definition
    rule string
    Processor definition
    rule str
    Processor definition
    rule String
    Processor definition

    LogProcessingRuleTesting, LogProcessingRuleTestingArgs

    SampleLog string
    Sample log in JSON format.
    SampleLog string
    Sample log in JSON format.
    sampleLog String
    Sample log in JSON format.
    sampleLog string
    Sample log in JSON format.
    sample_log str
    Sample log in JSON format.
    sampleLog String
    Sample log in JSON format.

    Package Details

    Repository
    dynatrace pulumiverse/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse