
Edit a default entity type in ITSI
Every entity type comes with at least one default metrics filter and one default events filter that populates the Analysis Workspace with data. You can edit a default entity type in the ITSI user interface or through an ITSI REST API endpoint. You can delete a custom entity type in ITSI, but you can't delete a default entity type. For a list of default entity types in ITSI, see Default entity types and their properties.
Prerequisites
Requirement | Description |
---|---|
ITSI roles | You need to log in as a user with the itoa_admin or itoa_team_admin role.
|
Edit a default entity type in the ITSI user interface
Perform the following steps to edit a default entity type in ITSI:
- From the ITSI main menu, click Configuration > Entities.
- Click Entity Types.
- Click Edit on the entity type you want to edit.
- After you make your changes, click Save.
Edit a default entity type through the REST API
You can edit a default entity type through the ITSI REST API. You can delete custom entity types that you create, but you can't delete the default entity types included with ITSI. For more information, see ITSI REST API reference in the ITSI REST API reference manual.
servicesNS/nobody/SA-ITOA/itoa_interface/entity_type
The following example shows how to edit an entity type through the ITSI REST API.
GET
Get a list of entity types in your environment.
Request parameters
N/A
Data payload:
N/A
Return
A list of entity types.
Example request
curl -k -u admin:password https://localhost:8089/servicesNS/nobody/SA-ITOA/itoa_interface/entity_type
POST
Edit an entity type.
Request parameters
N/A
Data payload:
N/A
Return
The updated object key.
Example request
curl -k -u admin:password -X POST -H "Content-Type: application/json" https://localhost:8089/servicesNS/nobody/SA-ITOA/itoa_interface/entity_type/<entity-type-key> -d '{ "title": "<new entity type name>", "description": "Windows type", "data_drilldowns": [{"type": "metrics", "title": "System metrics", "static_filter": {"type": "include", "field": "metric_name", "values": ["*"]}, "entity_field_filter": {"type": "entity", "entity_field": "host", "data_field": "host"}}, {"type": "events", "title": "Windows logs", "static_filter": {"type": "include", "field": "sourcetype", "values": ["*"]}, "entity_field_filter": {"type": "entity", "entity_field": "host", "data_field": "host"}}], "_key": "windows", "dashboard_drilldowns": [{"id": "windows_overview_dashboard", "base_url": "", "is_splunk_dashboard": false, "title": "Windows Overview Dashboard", "params": {"static_params": {}, "alias_param_map": []}}]}'
DELETE
Delete entity types.
Request parameters
N/A
Data payload:
N/A
Return
204 success message if you delete a custom entity type.
400 error if you try to delete a default entity type.
Example request
curl -k -u admin:password -X DELETE https://localhost:8089/servicesNS/nobody/SA-ITOA/itoa_interface/entity_type/<_key>
Configure vital metric alerts
You can configure alerts that generate notable events when vital metrics cross your established thresholds. Below displays the UI for the vital metric alert configuration:
Perform the following steps to configure vital metric alerts for default entity types:
- From the ITSI main menu, click Configuration > Entities.
- Click Entity Types.
- Click Edit on the entity type you want to edit.
- Expand the Vital Metrics (optional) section and select the vital metric that you want to create an alert for. The alert will be applied to all entities categorized under the entity type that you create the alert for.
- In the Alerting section, click Add Alert. The alert is enabled by default.
- In the alert window, set the alert schedule, a time to suppress the alert after it is fired, and alert thresholds for the vital metric.
- Set up trigger conditions for the thresholds. The Critical threshold is required. You can adjust this threshold value, but the threshold cannot be deleted.
- (Optional) Click Add a threshold level to create a Warning threshold.
- For the If metric is field, select greater than or less than to set the threshold hierarchy. If you select greater than, the Critical threshold is a maximum threshold. If you select less than, the Critical threshold is a minimum threshold.
- Click Save.
- After configuring a vital metric alert, a new saved search is created in the local savedsearches.conf. For example, if you create a vital metric for Average CPU Usage for the *nix entity type, you'll see a searched called
[ITSI Vital Metric Alert - Average CPU Usage Alert for *nix entity type]
. When you remove an alert, the saved search will be deleted.
Next Steps
- You can monitor alerts on the Episode Review page. For more information, see Overview of Episode Review in ITSI.
- You can create notable event aggregation policies for your entity type alerts to group alerts into episodes. For more information, see Overview of aggregation policies in ITSI.
PREVIOUS Overview of entity types in ITSI |
NEXT Create custom entity types in ITSI |
This documentation applies to the following versions of Splunk® IT Service Intelligence: 4.9.0, 4.9.1, 4.9.2, 4.9.3, 4.9.4, 4.9.5, 4.9.6
Feedback submitted, thanks!