The SMARTSCAPEID matcher matches the string representation of a Smartscape ID.
The matcher identifies patterns that consist of:
A-Za-z_:0-9.-).Use the following expression to parse Smartscape IDs:
SMARTSCAPEID:result
Parsing Smartscape IDs is possible in the following forms:
| Description | input (string) | result (smartscapeId) |
|---|---|---|
Lowercase type |
|
|
Colon in type |
|
|
Uppercase hexadecimal |
|
|
Underscores and digits in type |
|
|
Extra trailing hexadecimal digit |
|
|
Lowercase hexadecimal |
|
|
Hexadecimal too short |
|
|
Missing hexadecimal |
|
|
Missing type and dash |
|
|
Whitespace |
|
|
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"
The data type of the extracted value is smartscapeId.
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) |
|---|
|
data record(input = "There is a CONTAINER-00009B6550330A1F Smartscape ID in this text.")| parse input, "LD SMARTSCAPEID:result"