Try it free

DPL Smartscape ID

  • Latest Dynatrace
  • Reference
  • Preview

SMARTSCAPEID

The SMARTSCAPEID matcher matches the string representation of a Smartscape ID.

The matcher identifies patterns that consist of:

  • A type string 1 to 255 characters long, using A-Za-z_:0-9.
  • A dash (-).
  • A 16-digit uppercase hexadecimal number.

Use the following expression to parse Smartscape IDs:

SMARTSCAPEID:result

Parsing Smartscape IDs is possible in the following forms:

Descriptioninput (string)result (smartscapeId)

Lowercase type

custom_ship-00009B6550330A11

custom_ship-00009B6550330A11

Colon in type

CUSTOM_SENSOR:TEMP-ABCDEF0123456789

CUSTOM_SENSOR:TEMP-ABCDEF0123456789

Uppercase hexadecimal

HOST-ABCDEF0123456789

HOST-ABCDEF0123456789

Underscores and digits in type

PROCESS_GROUP_INSTANCE-0000000000000000

PROCESS_GROUP_INSTANCE-0000000000000000

Extra trailing hexadecimal digit

HOST-00009B6550330A1FF

HOST-00009B6550330A1F

Lowercase hexadecimal

host-00009b6550330a1f

null

Hexadecimal too short

HOST-00009B6550330A1

null

Missing hexadecimal

HOST-

null

Missing type and dash

00009B6550330A1F

null

Whitespace

␣

null

See how to use in DQL
data record(input = "custom_ship-00009B6550330A11"),
record(input = "CUSTOM_SENSOR:TEMP-ABCDEF0123456789"),
record(input = "HOST-ABCDEF0123456789"),
record(input = "PROCESS_GROUP_INSTANCE-0000000000000000"),
record(input = "HOST-00009B6550330A1FF"),
record(input = "host-00009b6550330a1f"),
record(input = "HOST-00009B6550330A1"),
record(input = "HOST-"),
record(input = "00009B6550330A1F"),
record(input = " ")
| parse input, "SMARTSCAPEID:result"

Returns

The data type of the extracted value is smartscapeId.

Practical example

Example: Parse a Smartscape ID from a log record

Given the following input:

There is a CONTAINER-00009B6550330A1F Smartscape ID in this text.

Use the following expression to extract the Smartscape ID from anywhere in the record:

LD SMARTSCAPEID:result
result (smartscapeId)

CONTAINER-00009B6550330A1F

See how to use in DQL
data record(input = "There is a CONTAINER-00009B6550330A1F Smartscape ID in this text.")
| parse input, "LD SMARTSCAPEID:result"
Related tags
Dynatrace Platform