dynatrace.LogCustomSource
Explore with Pulumi AI
Create LogCustomSource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogCustomSource(name: string, args: LogCustomSourceArgs, opts?: CustomResourceOptions);
@overload
def LogCustomSource(resource_name: str,
args: LogCustomSourceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LogCustomSource(resource_name: str,
opts: Optional[ResourceOptions] = None,
custom_log_source: Optional[LogCustomSourceCustomLogSourceArgs] = None,
enabled: Optional[bool] = None,
context: Optional[LogCustomSourceContextArgs] = None,
name: Optional[str] = None,
scope: Optional[str] = None)
func NewLogCustomSource(ctx *Context, name string, args LogCustomSourceArgs, opts ...ResourceOption) (*LogCustomSource, error)
public LogCustomSource(string name, LogCustomSourceArgs args, CustomResourceOptions? opts = null)
public LogCustomSource(String name, LogCustomSourceArgs args)
public LogCustomSource(String name, LogCustomSourceArgs args, CustomResourceOptions options)
type: dynatrace:LogCustomSource
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 LogCustomSourceArgs
- 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 LogCustomSourceArgs
- 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 LogCustomSourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogCustomSourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogCustomSourceArgs
- 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 logCustomSourceResource = new Dynatrace.LogCustomSource("logCustomSourceResource", new()
{
CustomLogSource = new Dynatrace.Inputs.LogCustomSourceCustomLogSourceArgs
{
Type = "string",
AcceptBinary = false,
Values = new[]
{
"string",
},
ValuesAndEnrichment = new Dynatrace.Inputs.LogCustomSourceCustomLogSourceValuesAndEnrichmentArgs
{
CustomLogSourceWithEnrichments = new[]
{
new Dynatrace.Inputs.LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentArgs
{
Path = "string",
Enrichment = new Dynatrace.Inputs.LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentEnrichmentArgs
{
Enrichments = new[]
{
new Dynatrace.Inputs.LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentEnrichmentEnrichmentArgs
{
Type = "string",
Key = "string",
Value = "string",
},
},
},
},
},
},
},
Enabled = false,
Context = new Dynatrace.Inputs.LogCustomSourceContextArgs
{
Contexts = new[]
{
new Dynatrace.Inputs.LogCustomSourceContextContextArgs
{
Attribute = "string",
Values = new[]
{
"string",
},
},
},
},
Name = "string",
Scope = "string",
});
example, err := dynatrace.NewLogCustomSource(ctx, "logCustomSourceResource", &dynatrace.LogCustomSourceArgs{
CustomLogSource: &dynatrace.LogCustomSourceCustomLogSourceArgs{
Type: pulumi.String("string"),
AcceptBinary: pulumi.Bool(false),
Values: pulumi.StringArray{
pulumi.String("string"),
},
ValuesAndEnrichment: &dynatrace.LogCustomSourceCustomLogSourceValuesAndEnrichmentArgs{
CustomLogSourceWithEnrichments: dynatrace.LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentArray{
&dynatrace.LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentArgs{
Path: pulumi.String("string"),
Enrichment: &dynatrace.LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentEnrichmentArgs{
Enrichments: dynatrace.LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentEnrichmentEnrichmentArray{
&dynatrace.LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentEnrichmentEnrichmentArgs{
Type: pulumi.String("string"),
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
},
},
},
},
Enabled: pulumi.Bool(false),
Context: &dynatrace.LogCustomSourceContextArgs{
Contexts: dynatrace.LogCustomSourceContextContextArray{
&dynatrace.LogCustomSourceContextContextArgs{
Attribute: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
Name: pulumi.String("string"),
Scope: pulumi.String("string"),
})
var logCustomSourceResource = new LogCustomSource("logCustomSourceResource", LogCustomSourceArgs.builder()
.customLogSource(LogCustomSourceCustomLogSourceArgs.builder()
.type("string")
.acceptBinary(false)
.values("string")
.valuesAndEnrichment(LogCustomSourceCustomLogSourceValuesAndEnrichmentArgs.builder()
.customLogSourceWithEnrichments(LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentArgs.builder()
.path("string")
.enrichment(LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentEnrichmentArgs.builder()
.enrichments(LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentEnrichmentEnrichmentArgs.builder()
.type("string")
.key("string")
.value("string")
.build())
.build())
.build())
.build())
.build())
.enabled(false)
.context(LogCustomSourceContextArgs.builder()
.contexts(LogCustomSourceContextContextArgs.builder()
.attribute("string")
.values("string")
.build())
.build())
.name("string")
.scope("string")
.build());
log_custom_source_resource = dynatrace.LogCustomSource("logCustomSourceResource",
custom_log_source={
"type": "string",
"accept_binary": False,
"values": ["string"],
"values_and_enrichment": {
"custom_log_source_with_enrichments": [{
"path": "string",
"enrichment": {
"enrichments": [{
"type": "string",
"key": "string",
"value": "string",
}],
},
}],
},
},
enabled=False,
context={
"contexts": [{
"attribute": "string",
"values": ["string"],
}],
},
name="string",
scope="string")
const logCustomSourceResource = new dynatrace.LogCustomSource("logCustomSourceResource", {
customLogSource: {
type: "string",
acceptBinary: false,
values: ["string"],
valuesAndEnrichment: {
customLogSourceWithEnrichments: [{
path: "string",
enrichment: {
enrichments: [{
type: "string",
key: "string",
value: "string",
}],
},
}],
},
},
enabled: false,
context: {
contexts: [{
attribute: "string",
values: ["string"],
}],
},
name: "string",
scope: "string",
});
type: dynatrace:LogCustomSource
properties:
context:
contexts:
- attribute: string
values:
- string
customLogSource:
acceptBinary: false
type: string
values:
- string
valuesAndEnrichment:
customLogSourceWithEnrichments:
- enrichment:
enrichments:
- key: string
type: string
value: string
path: string
enabled: false
name: string
scope: string
LogCustomSource 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 LogCustomSource resource accepts the following input properties:
- Custom
Log Pulumiverse.Source Dynatrace. Inputs. Log Custom Source Custom Log Source - no documentation available
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Context
Pulumiverse.
Dynatrace. Inputs. Log Custom Source Context - Define Custom Log Source only within context if provided
- Name string
- Name
- Scope string
- The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
- Custom
Log LogSource Custom Source Custom Log Source Args - no documentation available
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Context
Log
Custom Source Context Args - Define Custom Log Source only within context if provided
- Name string
- Name
- Scope string
- The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
- custom
Log LogSource Custom Source Custom Log Source - no documentation available
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - context
Log
Custom Source Context - Define Custom Log Source only within context if provided
- name String
- Name
- scope String
- The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
- custom
Log LogSource Custom Source Custom Log Source - no documentation available
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - context
Log
Custom Source Context - Define Custom Log Source only within context if provided
- name string
- Name
- scope string
- The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
- custom_
log_ Logsource Custom Source Custom Log Source Args - no documentation available
- enabled bool
- This setting is enabled (
true
) or disabled (false
) - context
Log
Custom Source Context Args - Define Custom Log Source only within context if provided
- name str
- Name
- scope str
- The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
- custom
Log Property MapSource - no documentation available
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - context Property Map
- Define Custom Log Source only within context if provided
- name String
- Name
- scope String
- The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
Outputs
All input properties are implicitly available as output properties. Additionally, the LogCustomSource 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 LogCustomSource Resource
Get an existing LogCustomSource 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?: LogCustomSourceState, opts?: CustomResourceOptions): LogCustomSource
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
context: Optional[LogCustomSourceContextArgs] = None,
custom_log_source: Optional[LogCustomSourceCustomLogSourceArgs] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
scope: Optional[str] = None) -> LogCustomSource
func GetLogCustomSource(ctx *Context, name string, id IDInput, state *LogCustomSourceState, opts ...ResourceOption) (*LogCustomSource, error)
public static LogCustomSource Get(string name, Input<string> id, LogCustomSourceState? state, CustomResourceOptions? opts = null)
public static LogCustomSource get(String name, Output<String> id, LogCustomSourceState 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.
- Context
Pulumiverse.
Dynatrace. Inputs. Log Custom Source Context - Define Custom Log Source only within context if provided
- Custom
Log Pulumiverse.Source Dynatrace. Inputs. Log Custom Source Custom Log Source - no documentation available
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Name string
- Name
- Scope string
- The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
- Context
Log
Custom Source Context Args - Define Custom Log Source only within context if provided
- Custom
Log LogSource Custom Source Custom Log Source Args - no documentation available
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Name string
- Name
- Scope string
- The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
- context
Log
Custom Source Context - Define Custom Log Source only within context if provided
- custom
Log LogSource Custom Source Custom Log Source - no documentation available
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - name String
- Name
- scope String
- The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
- context
Log
Custom Source Context - Define Custom Log Source only within context if provided
- custom
Log LogSource Custom Source Custom Log Source - no documentation available
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - name string
- Name
- scope string
- The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
- context
Log
Custom Source Context Args - Define Custom Log Source only within context if provided
- custom_
log_ Logsource Custom Source Custom Log Source Args - no documentation available
- enabled bool
- This setting is enabled (
true
) or disabled (false
) - name str
- Name
- scope str
- The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
- context Property Map
- Define Custom Log Source only within context if provided
- custom
Log Property MapSource - no documentation available
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - name String
- Name
- scope String
- The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
Supporting Types
LogCustomSourceContext, LogCustomSourceContextArgs
LogCustomSourceContextContext, LogCustomSourceContextContextArgs
LogCustomSourceCustomLogSource, LogCustomSourceCustomLogSourceArgs
- Type string
- Possible Values:
LOG_PATH_PATTERN
,WINDOWS_EVENT_LOG
- Accept
Binary bool - Accept binary content
- Values List<string>
- (Required attribute for cluster v1.291 and under) It might be either an absolute path to log(s) with optional wildcards or Windows Event Log name.
- Values
And Pulumiverse.Enrichment Dynatrace. Inputs. Log Custom Source Custom Log Source Values And Enrichment - (Required attribute for cluster v1.292+) It might be either an absolute path to log(s) with optional wildcards or Windows Event Log name.
- Type string
- Possible Values:
LOG_PATH_PATTERN
,WINDOWS_EVENT_LOG
- Accept
Binary bool - Accept binary content
- Values []string
- (Required attribute for cluster v1.291 and under) It might be either an absolute path to log(s) with optional wildcards or Windows Event Log name.
- Values
And LogEnrichment Custom Source Custom Log Source Values And Enrichment - (Required attribute for cluster v1.292+) It might be either an absolute path to log(s) with optional wildcards or Windows Event Log name.
- type String
- Possible Values:
LOG_PATH_PATTERN
,WINDOWS_EVENT_LOG
- accept
Binary Boolean - Accept binary content
- values List<String>
- (Required attribute for cluster v1.291 and under) It might be either an absolute path to log(s) with optional wildcards or Windows Event Log name.
- values
And LogEnrichment Custom Source Custom Log Source Values And Enrichment - (Required attribute for cluster v1.292+) It might be either an absolute path to log(s) with optional wildcards or Windows Event Log name.
- type string
- Possible Values:
LOG_PATH_PATTERN
,WINDOWS_EVENT_LOG
- accept
Binary boolean - Accept binary content
- values string[]
- (Required attribute for cluster v1.291 and under) It might be either an absolute path to log(s) with optional wildcards or Windows Event Log name.
- values
And LogEnrichment Custom Source Custom Log Source Values And Enrichment - (Required attribute for cluster v1.292+) It might be either an absolute path to log(s) with optional wildcards or Windows Event Log name.
- type str
- Possible Values:
LOG_PATH_PATTERN
,WINDOWS_EVENT_LOG
- accept_
binary bool - Accept binary content
- values Sequence[str]
- (Required attribute for cluster v1.291 and under) It might be either an absolute path to log(s) with optional wildcards or Windows Event Log name.
- values_
and_ Logenrichment Custom Source Custom Log Source Values And Enrichment - (Required attribute for cluster v1.292+) It might be either an absolute path to log(s) with optional wildcards or Windows Event Log name.
- type String
- Possible Values:
LOG_PATH_PATTERN
,WINDOWS_EVENT_LOG
- accept
Binary Boolean - Accept binary content
- values List<String>
- (Required attribute for cluster v1.291 and under) It might be either an absolute path to log(s) with optional wildcards or Windows Event Log name.
- values
And Property MapEnrichment - (Required attribute for cluster v1.292+) It might be either an absolute path to log(s) with optional wildcards or Windows Event Log name.
LogCustomSourceCustomLogSourceValuesAndEnrichment, LogCustomSourceCustomLogSourceValuesAndEnrichmentArgs
LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichment, LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentArgs
- Path string
- Values
- Enrichment
Pulumiverse.
Dynatrace. Inputs. Log Custom Source Custom Log Source Values And Enrichment Custom Log Source With Enrichment Enrichment - Optional field that allows to define attributes that will enrich logs. ${N} can be used in attribute value to expand the value matched by wildcards where N denotes the number of the wildcard the expand
- Path string
- Values
- Enrichment
Log
Custom Source Custom Log Source Values And Enrichment Custom Log Source With Enrichment Enrichment - Optional field that allows to define attributes that will enrich logs. ${N} can be used in attribute value to expand the value matched by wildcards where N denotes the number of the wildcard the expand
- path String
- Values
- enrichment
Log
Custom Source Custom Log Source Values And Enrichment Custom Log Source With Enrichment Enrichment - Optional field that allows to define attributes that will enrich logs. ${N} can be used in attribute value to expand the value matched by wildcards where N denotes the number of the wildcard the expand
- path string
- Values
- enrichment
Log
Custom Source Custom Log Source Values And Enrichment Custom Log Source With Enrichment Enrichment - Optional field that allows to define attributes that will enrich logs. ${N} can be used in attribute value to expand the value matched by wildcards where N denotes the number of the wildcard the expand
- path str
- Values
- enrichment
Log
Custom Source Custom Log Source Values And Enrichment Custom Log Source With Enrichment Enrichment - Optional field that allows to define attributes that will enrich logs. ${N} can be used in attribute value to expand the value matched by wildcards where N denotes the number of the wildcard the expand
- path String
- Values
- enrichment Property Map
- Optional field that allows to define attributes that will enrich logs. ${N} can be used in attribute value to expand the value matched by wildcards where N denotes the number of the wildcard the expand
LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentEnrichment, LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentEnrichmentArgs
LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentEnrichmentEnrichment, LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentEnrichmentEnrichmentArgs
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.