Skip to main content

builtin

Creates, updates, deletes, gets or lists a builtin resource.

Overview

Namebuiltin
TypeResource
Idsumologic.fields.builtin

Fields

The following fields are returned by SELECT queries:

The details of the built-in field.

NameDatatypeDescription
dataTypestringField type. Possible values are String, Long, Int, Double, and Boolean. (pattern: ^(String|Long|Int|Double|Boolean)$, example: String, x-pattern-message: Must be String, Long, Int, Double or Boolean)
fieldIdstringIdentifier of the field. (example: 00000000031D02DA)
fieldNamestringField name. (example: hostIP)
statestringIndicates whether the field is enabled and its values are being accepted. Possible values are Enabled and Disabled. (pattern: ^(Enabled|Disabled)$, example: Enabled, x-pattern-message: Must be Enabled or Disabled)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getBuiltInFieldselectid, regionGet the details of a built-in field.
listBuiltInFieldsselectregionBuilt-in fields are created automatically by Sumo Logic for standard configuration purposes. They include _sourceHost and _sourceCategory. Built-in fields can't be deleted or disabled.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringIdentifier of a built-in field. (example: 000000000000000A)
regionstringSumoLogic region (enum: [us2, au, ca, de, eu, fed, in, jp], default: us2)

SELECT examples

Get the details of a built-in field.

SELECT
dataType,
fieldId,
fieldName,
state
FROM sumologic.fields.builtin
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;