Skip to main content

fields

Overview

Namefields
TypeResource
Idsumologic.fields.fields

Fields

NameDatatypeDescription
fieldIdstringIdentifier of the field.
statestringIndicates whether the field is enabled and its values are being accepted. Possible values are Enabled and Disabled.
fieldNamestringField name.
dataTypestringField type. Possible values are String, Long, Int, Double, and Boolean.

Methods

NameAccessible byRequired ParamsDescription
getCustomFieldSELECTid, regionGet the details of a custom field.
listCustomFieldsSELECTregionRequest a list of all the custom fields configured in your account.
createFieldINSERTdata__fieldName, regionAdding a field will define it in the Fields schema allowing it to be assigned as metadata to your logs.
deleteFieldDELETEid, regionDeleting a field does not delete historical data assigned with that field. If you delete a field by mistake and one or more of those dependencies break, you can re-add the field to get things working properly again. You should always disable a field and ensure things are behaving as expected before deleting a field.