1. Packages
  2. Dynatrace
  3. API Docs
  4. LogTimestamp
Dynatrace v0.27.0 published on Friday, Mar 21, 2025 by Pulumiverse

dynatrace.LogTimestamp

Explore with Pulumi AI

Create LogTimestamp Resource

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

Constructor syntax

new LogTimestamp(name: string, args: LogTimestampArgs, opts?: CustomResourceOptions);
@overload
def LogTimestamp(resource_name: str,
                 args: LogTimestampArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def LogTimestamp(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 config_item_title: Optional[str] = None,
                 date_time_pattern: Optional[str] = None,
                 enabled: Optional[bool] = None,
                 timezone: Optional[str] = None,
                 date_search_limit: Optional[int] = None,
                 entry_boundary: Optional[LogTimestampEntryBoundaryArgs] = None,
                 insert_after: Optional[str] = None,
                 matchers: Optional[LogTimestampMatchersArgs] = None,
                 scope: Optional[str] = None)
func NewLogTimestamp(ctx *Context, name string, args LogTimestampArgs, opts ...ResourceOption) (*LogTimestamp, error)
public LogTimestamp(string name, LogTimestampArgs args, CustomResourceOptions? opts = null)
public LogTimestamp(String name, LogTimestampArgs args)
public LogTimestamp(String name, LogTimestampArgs args, CustomResourceOptions options)
type: dynatrace:LogTimestamp
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. LogTimestampArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. LogTimestampArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. LogTimestampArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. LogTimestampArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. LogTimestampArgs
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 logTimestampResource = new Dynatrace.LogTimestamp("logTimestampResource", new()
{
    ConfigItemTitle = "string",
    DateTimePattern = "string",
    Enabled = false,
    Timezone = "string",
    DateSearchLimit = 0,
    EntryBoundary = new Dynatrace.Inputs.LogTimestampEntryBoundaryArgs
    {
        Pattern = "string",
    },
    InsertAfter = "string",
    Matchers = new Dynatrace.Inputs.LogTimestampMatchersArgs
    {
        Matchers = new[]
        {
            new Dynatrace.Inputs.LogTimestampMatchersMatcherArgs
            {
                Attribute = "string",
                Operator = "string",
                Values = new[]
                {
                    "string",
                },
            },
        },
    },
    Scope = "string",
});
Copy
example, err := dynatrace.NewLogTimestamp(ctx, "logTimestampResource", &dynatrace.LogTimestampArgs{
	ConfigItemTitle: pulumi.String("string"),
	DateTimePattern: pulumi.String("string"),
	Enabled:         pulumi.Bool(false),
	Timezone:        pulumi.String("string"),
	DateSearchLimit: pulumi.Int(0),
	EntryBoundary: &dynatrace.LogTimestampEntryBoundaryArgs{
		Pattern: pulumi.String("string"),
	},
	InsertAfter: pulumi.String("string"),
	Matchers: &dynatrace.LogTimestampMatchersArgs{
		Matchers: dynatrace.LogTimestampMatchersMatcherArray{
			&dynatrace.LogTimestampMatchersMatcherArgs{
				Attribute: pulumi.String("string"),
				Operator:  pulumi.String("string"),
				Values: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
		},
	},
	Scope: pulumi.String("string"),
})
Copy
var logTimestampResource = new LogTimestamp("logTimestampResource", LogTimestampArgs.builder()
    .configItemTitle("string")
    .dateTimePattern("string")
    .enabled(false)
    .timezone("string")
    .dateSearchLimit(0)
    .entryBoundary(LogTimestampEntryBoundaryArgs.builder()
        .pattern("string")
        .build())
    .insertAfter("string")
    .matchers(LogTimestampMatchersArgs.builder()
        .matchers(LogTimestampMatchersMatcherArgs.builder()
            .attribute("string")
            .operator("string")
            .values("string")
            .build())
        .build())
    .scope("string")
    .build());
Copy
log_timestamp_resource = dynatrace.LogTimestamp("logTimestampResource",
    config_item_title="string",
    date_time_pattern="string",
    enabled=False,
    timezone="string",
    date_search_limit=0,
    entry_boundary={
        "pattern": "string",
    },
    insert_after="string",
    matchers={
        "matchers": [{
            "attribute": "string",
            "operator": "string",
            "values": ["string"],
        }],
    },
    scope="string")
Copy
const logTimestampResource = new dynatrace.LogTimestamp("logTimestampResource", {
    configItemTitle: "string",
    dateTimePattern: "string",
    enabled: false,
    timezone: "string",
    dateSearchLimit: 0,
    entryBoundary: {
        pattern: "string",
    },
    insertAfter: "string",
    matchers: {
        matchers: [{
            attribute: "string",
            operator: "string",
            values: ["string"],
        }],
    },
    scope: "string",
});
Copy
type: dynatrace:LogTimestamp
properties:
    configItemTitle: string
    dateSearchLimit: 0
    dateTimePattern: string
    enabled: false
    entryBoundary:
        pattern: string
    insertAfter: string
    matchers:
        matchers:
            - attribute: string
              operator: string
              values:
                - string
    scope: string
    timezone: string
Copy

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

ConfigItemTitle This property is required. string
Name
DateTimePattern This property is required. string
Date-time pattern
Enabled This property is required. bool
This setting is enabled (true) or disabled (false)
Timezone This property is required. string
Timezone
DateSearchLimit int
Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
EntryBoundary Pulumiverse.Dynatrace.Inputs.LogTimestampEntryBoundary
Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
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
Matchers Pulumiverse.Dynatrace.Inputs.LogTimestampMatchers
no documentation available
Scope string
The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
ConfigItemTitle This property is required. string
Name
DateTimePattern This property is required. string
Date-time pattern
Enabled This property is required. bool
This setting is enabled (true) or disabled (false)
Timezone This property is required. string
Timezone
DateSearchLimit int
Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
EntryBoundary LogTimestampEntryBoundaryArgs
Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
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
Matchers LogTimestampMatchersArgs
no documentation available
Scope string
The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
configItemTitle This property is required. String
Name
dateTimePattern This property is required. String
Date-time pattern
enabled This property is required. Boolean
This setting is enabled (true) or disabled (false)
timezone This property is required. String
Timezone
dateSearchLimit Integer
Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
entryBoundary LogTimestampEntryBoundary
Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
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
matchers LogTimestampMatchers
no documentation available
scope String
The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
configItemTitle This property is required. string
Name
dateTimePattern This property is required. string
Date-time pattern
enabled This property is required. boolean
This setting is enabled (true) or disabled (false)
timezone This property is required. string
Timezone
dateSearchLimit number
Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
entryBoundary LogTimestampEntryBoundary
Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
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
matchers LogTimestampMatchers
no documentation available
scope string
The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
config_item_title This property is required. str
Name
date_time_pattern This property is required. str
Date-time pattern
enabled This property is required. bool
This setting is enabled (true) or disabled (false)
timezone This property is required. str
Timezone
date_search_limit int
Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
entry_boundary LogTimestampEntryBoundaryArgs
Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
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
matchers LogTimestampMatchersArgs
no documentation available
scope str
The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
configItemTitle This property is required. String
Name
dateTimePattern This property is required. String
Date-time pattern
enabled This property is required. Boolean
This setting is enabled (true) or disabled (false)
timezone This property is required. String
Timezone
dateSearchLimit Number
Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
entryBoundary Property Map
Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
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
matchers Property Map
no documentation available
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 LogTimestamp 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 LogTimestamp Resource

Get an existing LogTimestamp 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?: LogTimestampState, opts?: CustomResourceOptions): LogTimestamp
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config_item_title: Optional[str] = None,
        date_search_limit: Optional[int] = None,
        date_time_pattern: Optional[str] = None,
        enabled: Optional[bool] = None,
        entry_boundary: Optional[LogTimestampEntryBoundaryArgs] = None,
        insert_after: Optional[str] = None,
        matchers: Optional[LogTimestampMatchersArgs] = None,
        scope: Optional[str] = None,
        timezone: Optional[str] = None) -> LogTimestamp
func GetLogTimestamp(ctx *Context, name string, id IDInput, state *LogTimestampState, opts ...ResourceOption) (*LogTimestamp, error)
public static LogTimestamp Get(string name, Input<string> id, LogTimestampState? state, CustomResourceOptions? opts = null)
public static LogTimestamp get(String name, Output<String> id, LogTimestampState state, CustomResourceOptions options)
resources:  _:    type: dynatrace:LogTimestamp    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
ConfigItemTitle string
Name
DateSearchLimit int
Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
DateTimePattern string
Date-time pattern
Enabled bool
This setting is enabled (true) or disabled (false)
EntryBoundary Pulumiverse.Dynatrace.Inputs.LogTimestampEntryBoundary
Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
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
Matchers Pulumiverse.Dynatrace.Inputs.LogTimestampMatchers
no documentation available
Scope string
The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
Timezone string
Timezone
ConfigItemTitle string
Name
DateSearchLimit int
Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
DateTimePattern string
Date-time pattern
Enabled bool
This setting is enabled (true) or disabled (false)
EntryBoundary LogTimestampEntryBoundaryArgs
Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
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
Matchers LogTimestampMatchersArgs
no documentation available
Scope string
The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
Timezone string
Timezone
configItemTitle String
Name
dateSearchLimit Integer
Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
dateTimePattern String
Date-time pattern
enabled Boolean
This setting is enabled (true) or disabled (false)
entryBoundary LogTimestampEntryBoundary
Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
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
matchers LogTimestampMatchers
no documentation available
scope String
The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
timezone String
Timezone
configItemTitle string
Name
dateSearchLimit number
Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
dateTimePattern string
Date-time pattern
enabled boolean
This setting is enabled (true) or disabled (false)
entryBoundary LogTimestampEntryBoundary
Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
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
matchers LogTimestampMatchers
no documentation available
scope string
The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
timezone string
Timezone
config_item_title str
Name
date_search_limit int
Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
date_time_pattern str
Date-time pattern
enabled bool
This setting is enabled (true) or disabled (false)
entry_boundary LogTimestampEntryBoundaryArgs
Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
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
matchers LogTimestampMatchersArgs
no documentation available
scope str
The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
timezone str
Timezone
configItemTitle String
Name
dateSearchLimit Number
Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
dateTimePattern String
Date-time pattern
enabled Boolean
This setting is enabled (true) or disabled (false)
entryBoundary Property Map
Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
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
matchers Property Map
no documentation available
scope String
The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
timezone String
Timezone

Supporting Types

LogTimestampEntryBoundary
, LogTimestampEntryBoundaryArgs

Pattern string
no documentation available
Pattern string
no documentation available
pattern String
no documentation available
pattern string
no documentation available
pattern str
no documentation available
pattern String
no documentation available

LogTimestampMatchers
, LogTimestampMatchersArgs

Matchers This property is required. []LogTimestampMatchersMatcher
matchers This property is required. List<LogTimestampMatchersMatcher>
matchers This property is required. LogTimestampMatchersMatcher[]
matchers This property is required. List<Property Map>

LogTimestampMatchersMatcher
, LogTimestampMatchersMatcherArgs

Attribute This property is required. string
Possible Values: Container_name, Dt_entity_container_group, Dt_entity_process_group, Host_tag, K8s_container_name, K8s_deployment_name, K8s_namespace_name, K8s_pod_annotation, K8s_pod_label, K8s_workload_kind, K8s_workload_name, Log_source, Log_source_origin, Process_technology
Operator This property is required. string
Possible Values: MATCHES
Values This property is required. List<string>
no documentation available
Attribute This property is required. string
Possible Values: Container_name, Dt_entity_container_group, Dt_entity_process_group, Host_tag, K8s_container_name, K8s_deployment_name, K8s_namespace_name, K8s_pod_annotation, K8s_pod_label, K8s_workload_kind, K8s_workload_name, Log_source, Log_source_origin, Process_technology
Operator This property is required. string
Possible Values: MATCHES
Values This property is required. []string
no documentation available
attribute This property is required. String
Possible Values: Container_name, Dt_entity_container_group, Dt_entity_process_group, Host_tag, K8s_container_name, K8s_deployment_name, K8s_namespace_name, K8s_pod_annotation, K8s_pod_label, K8s_workload_kind, K8s_workload_name, Log_source, Log_source_origin, Process_technology
operator This property is required. String
Possible Values: MATCHES
values This property is required. List<String>
no documentation available
attribute This property is required. string
Possible Values: Container_name, Dt_entity_container_group, Dt_entity_process_group, Host_tag, K8s_container_name, K8s_deployment_name, K8s_namespace_name, K8s_pod_annotation, K8s_pod_label, K8s_workload_kind, K8s_workload_name, Log_source, Log_source_origin, Process_technology
operator This property is required. string
Possible Values: MATCHES
values This property is required. string[]
no documentation available
attribute This property is required. str
Possible Values: Container_name, Dt_entity_container_group, Dt_entity_process_group, Host_tag, K8s_container_name, K8s_deployment_name, K8s_namespace_name, K8s_pod_annotation, K8s_pod_label, K8s_workload_kind, K8s_workload_name, Log_source, Log_source_origin, Process_technology
operator This property is required. str
Possible Values: MATCHES
values This property is required. Sequence[str]
no documentation available
attribute This property is required. String
Possible Values: Container_name, Dt_entity_container_group, Dt_entity_process_group, Host_tag, K8s_container_name, K8s_deployment_name, K8s_namespace_name, K8s_pod_annotation, K8s_pod_label, K8s_workload_kind, K8s_workload_name, Log_source, Log_source_origin, Process_technology
operator This property is required. String
Possible Values: MATCHES
values This property is required. List<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.