1. Packages
  2. Dynatrace
  3. API Docs
  4. LogCustomSource
Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse

dynatrace.LogCustomSource

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse

    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=dynatrace.LogCustomSourceCustomLogSourceArgs(
            type="string",
            accept_binary=False,
            values=["string"],
            values_and_enrichment=dynatrace.LogCustomSourceCustomLogSourceValuesAndEnrichmentArgs(
                custom_log_source_with_enrichments=[dynatrace.LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentArgs(
                    path="string",
                    enrichment=dynatrace.LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentEnrichmentArgs(
                        enrichments=[dynatrace.LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentEnrichmentEnrichmentArgs(
                            type="string",
                            key="string",
                            value="string",
                        )],
                    ),
                )],
            ),
        ),
        enabled=False,
        context=dynatrace.LogCustomSourceContextArgs(
            contexts=[dynatrace.LogCustomSourceContextContextArgs(
                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

    The LogCustomSource resource accepts the following input properties:

    CustomLogSource Pulumiverse.Dynatrace.Inputs.LogCustomSourceCustomLogSource
    no documentation available
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Context Pulumiverse.Dynatrace.Inputs.LogCustomSourceContext
    Define Custom Log Source only within context if provided
    Name string
    Name
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    CustomLogSource LogCustomSourceCustomLogSourceArgs
    no documentation available
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Context LogCustomSourceContextArgs
    Define Custom Log Source only within context if provided
    Name string
    Name
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    customLogSource LogCustomSourceCustomLogSource
    no documentation available
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    context LogCustomSourceContext
    Define Custom Log Source only within context if provided
    name String
    Name
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    customLogSource LogCustomSourceCustomLogSource
    no documentation available
    enabled boolean
    This setting is enabled (true) or disabled (false)
    context LogCustomSourceContext
    Define Custom Log Source only within context if provided
    name string
    Name
    scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    custom_log_source LogCustomSourceCustomLogSourceArgs
    no documentation available
    enabled bool
    This setting is enabled (true) or disabled (false)
    context LogCustomSourceContextArgs
    Define Custom Log Source only within context if provided
    name str
    Name
    scope str
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    customLogSource Property Map
    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, HOST_GROUP). 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.
    The following state arguments are supported:
    Context Pulumiverse.Dynatrace.Inputs.LogCustomSourceContext
    Define Custom Log Source only within context if provided
    CustomLogSource Pulumiverse.Dynatrace.Inputs.LogCustomSourceCustomLogSource
    no documentation available
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Name string
    Name
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    Context LogCustomSourceContextArgs
    Define Custom Log Source only within context if provided
    CustomLogSource LogCustomSourceCustomLogSourceArgs
    no documentation available
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Name string
    Name
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    context LogCustomSourceContext
    Define Custom Log Source only within context if provided
    customLogSource LogCustomSourceCustomLogSource
    no documentation available
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    name String
    Name
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    context LogCustomSourceContext
    Define Custom Log Source only within context if provided
    customLogSource LogCustomSourceCustomLogSource
    no documentation available
    enabled boolean
    This setting is enabled (true) or disabled (false)
    name string
    Name
    scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    context LogCustomSourceContextArgs
    Define Custom Log Source only within context if provided
    custom_log_source LogCustomSourceCustomLogSourceArgs
    no documentation available
    enabled bool
    This setting is enabled (true) or disabled (false)
    name str
    Name
    scope str
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    context Property Map
    Define Custom Log Source only within context if provided
    customLogSource Property Map
    no documentation available
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    name String
    Name
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.

    Supporting Types

    LogCustomSourceContext, LogCustomSourceContextArgs

    LogCustomSourceContextContext, LogCustomSourceContextContextArgs

    Attribute string
    Possible Values: Dt_entity_process_group
    Values List<string>
    no documentation available
    Attribute string
    Possible Values: Dt_entity_process_group
    Values []string
    no documentation available
    attribute String
    Possible Values: Dt_entity_process_group
    values List<String>
    no documentation available
    attribute string
    Possible Values: Dt_entity_process_group
    values string[]
    no documentation available
    attribute str
    Possible Values: Dt_entity_process_group
    values Sequence[str]
    no documentation available
    attribute String
    Possible Values: Dt_entity_process_group
    values List<String>
    no documentation available

    LogCustomSourceCustomLogSource, LogCustomSourceCustomLogSourceArgs

    Type string
    Possible Values: LOG_PATH_PATTERN, WINDOWS_EVENT_LOG
    AcceptBinary 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.
    ValuesAndEnrichment Pulumiverse.Dynatrace.Inputs.LogCustomSourceCustomLogSourceValuesAndEnrichment
    (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
    AcceptBinary 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.
    ValuesAndEnrichment LogCustomSourceCustomLogSourceValuesAndEnrichment
    (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
    acceptBinary 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.
    valuesAndEnrichment LogCustomSourceCustomLogSourceValuesAndEnrichment
    (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
    acceptBinary 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.
    valuesAndEnrichment LogCustomSourceCustomLogSourceValuesAndEnrichment
    (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_enrichment LogCustomSourceCustomLogSourceValuesAndEnrichment
    (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
    acceptBinary 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.
    valuesAndEnrichment Property Map
    (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.LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentEnrichment
    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 LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentEnrichment
    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 LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentEnrichment
    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 LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentEnrichment
    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 LogCustomSourceCustomLogSourceValuesAndEnrichmentCustomLogSourceWithEnrichmentEnrichment
    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

    Type string
    Possible Values: Attribute
    Key string
    no documentation available
    Value string
    no documentation available
    Type string
    Possible Values: Attribute
    Key string
    no documentation available
    Value string
    no documentation available
    type String
    Possible Values: Attribute
    key String
    no documentation available
    value String
    no documentation available
    type string
    Possible Values: Attribute
    key string
    no documentation available
    value string
    no documentation available
    type str
    Possible Values: Attribute
    key str
    no documentation available
    value str
    no documentation available
    type String
    Possible Values: Attribute
    key String
    no documentation available
    value String
    no documentation available

    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.10.0 published on Friday, Jun 7, 2024 by Pulumiverse