Step 3 - Configure fields
Fields control the inputs available within each section, and do not have to contain all fields that are defined within a KV Store.
If you have removed a field, or added new fields to the
collections.conffor the KV Store, press theScan for new fieldsbutton at the top of this section.
- Fields are automatically extracted from the KV Store, including their type. The
display nameby default is the same as thefield name, but update this to give the user a readable value. - Optionally, mark the field as
requiredin the top bar of the field configuration view. - Optionally, provide a
descriptionof the field. - Select the
sectionthis field should belong to. By default, all fields are added to the first section. - Optionally, select a specific
Splunk rolethat can edit this field. (only available if RBAC is enabled globally, and roles have been selected for this form) - Select
input type:- Text -> Short text.
- Text Area -> Long Text Input.
- Number -> I'm not going to explain this one.
- Boolean -> True / False values.
- Date & Time -> Date & Time, stored as a unix epoch.
- List -> Either hard-coded or Splunk search values. See below for more info on this.
- Optionally, set a
Default Valuethat is displayed to the user. - Optionally, set
validation regex(when in doubt, check out regex101.com, which is an amazing tool), to validate the fields (e.g. make the user provide a valid email). - Optionally, set a
Custom Error Messageto display when the regex fails.
The fields can then be moved within a section, by pressing the Move Up or Move Down buttons.
List Options
A list can have hard coded or splunk search results returned to a user. Press Configure List to edit these options
Hard Coded
When this mode is selected, you can enter multiple Display Name and Stored Value entries.
Splunk Search
A splunk search can be used to return values to the user. For example, from an index or another kv store lookup.
Note: The user must have permissions to run the search - if they don't, then options will fail to load.
When designing your search, it must return two fields: display_value and value.