dynatrace.LogProcessing
Explore with Pulumi AI
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
) - Processor
Definition Pulumiverse.Dynatrace. Inputs. Log Processing Processor Definition Processor definition Add a rule definition using our syntax. In our documentation you
will find instructions and application examples.
- Query string
- Matcher
- Rule
Name string - Rule name
- Rule
Testing Pulumiverse.Dynatrace. Inputs. Log Processing Rule Testing Rule testing ### 1. Paste a log / JSON sample
- Insert
After 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 LogProcessing Processor Definition Args Processor definition Add a rule definition using our syntax. In our documentation you
will find instructions and application examples.
- Query string
- Matcher
- Rule
Name string - Rule name
- Rule
Testing LogProcessing Rule Testing Args Rule testing ### 1. Paste a log / JSON sample
- Insert
After 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
) - processor
Definition LogProcessing Processor Definition Processor definition Add a rule definition using our syntax. In our documentation you
will find instructions and application examples.
- query String
- Matcher
- rule
Name String - Rule name
- rule
Testing LogProcessing Rule Testing Rule testing ### 1. Paste a log / JSON sample
- insert
After 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
) - processor
Definition LogProcessing Processor Definition Processor definition Add a rule definition using our syntax. In our documentation you
will find instructions and application examples.
- query string
- Matcher
- rule
Name string - Rule name
- rule
Testing LogProcessing Rule Testing Rule testing ### 1. Paste a log / JSON sample
- insert
After 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 LogProcessing Processor Definition Args 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 LogProcessing Rule Testing Args 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
) - processor
Definition Property Map Processor definition Add a rule definition using our syntax. In our documentation you
will find instructions and application examples.
- query String
- Matcher
- rule
Name String - Rule name
- rule
Testing Property Map Rule testing ### 1. Paste a log / JSON sample
- insert
After 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.
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Insert
After 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
- Processor
Definition Pulumiverse.Dynatrace. Inputs. Log Processing Processor Definition Processor definition Add a rule definition using our syntax. In our documentation you
will find instructions and application examples.
- Query string
- Matcher
- Rule
Name string - Rule name
- Rule
Testing Pulumiverse.Dynatrace. Inputs. Log Processing Rule Testing Rule testing ### 1. Paste a log / JSON sample
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Insert
After 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
- Processor
Definition LogProcessing Processor Definition Args Processor definition Add a rule definition using our syntax. In our documentation you
will find instructions and application examples.
- Query string
- Matcher
- Rule
Name string - Rule name
- Rule
Testing LogProcessing Rule Testing Args Rule testing ### 1. Paste a log / JSON sample
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - insert
After 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
- processor
Definition LogProcessing Processor Definition Processor definition Add a rule definition using our syntax. In our documentation you
will find instructions and application examples.
- query String
- Matcher
- rule
Name String - Rule name
- rule
Testing LogProcessing Rule Testing Rule testing ### 1. Paste a log / JSON sample
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - insert
After 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
- processor
Definition LogProcessing Processor Definition Processor definition Add a rule definition using our syntax. In our documentation you
will find instructions and application examples.
- query string
- Matcher
- rule
Name string - Rule name
- rule
Testing LogProcessing Rule Testing 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 LogProcessing Processor Definition Args 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 LogProcessing Rule Testing Args Rule testing ### 1. Paste a log / JSON sample
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - insert
After 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
- processor
Definition Property Map Processor definition Add a rule definition using our syntax. In our documentation you
will find instructions and application examples.
- query String
- Matcher
- rule
Name String - Rule name
- rule
Testing 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
- Sample
Log string - Sample log in JSON format.
- Sample
Log string - Sample log in JSON format.
- sample
Log String - Sample log in JSON format.
- sample
Log string - Sample log in JSON format.
- sample_
log str - Sample log in JSON format.
- sample
Log 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.