Create Dataset
You can create a data set to restrict the kind of log data available to different users. A data set contains filters that restrict log results. When you create a role, you can associate it with a data set. The filters in the data set are applied to log messages in VMware Aria Operations for Logs and the resulting log content is displayed to users assigned to the role
{
"id": "d5a4a8d-7c9d-4762-99f7-fe4be6a77908",
"name": "test_dataset",
"description": "test_dataset description",
"cspOrgId": "678ea4a8d-7c9d-4762-99f7-fe4be6a77908",
"restrictAutocomplete": false,
"restricts": false,
"constraints": {
"operator": "AND",
"constraints": [
{
"operator": "AND",
"tags": [
"aria-logs:search-bar"
],
"constraints": [
{
"fieldName": "text",
"operator": "CONTAINS",
"value": "error"
}
]
},
{
"operator": "AND",
"constraints": [
{
"fieldName": "text",
"operator": "CONTAINS",
"value": "error"
},
{
"fieldName": "text",
"operator": "CONTAINS",
"value": "test"
}
]
}
]
}
}
A unique dataset identifier
A unique dataset name
Dataset description that is shown in the UI
Unique ID associated with the org
Determines how a data set should behave when combined with other data sets. E.g., consider if you have two data sets Data set 1 (hostname contains host, appname contains app) and Data set 2 (severity contains error). If both of these data sets are added to a role, the resulting combined data set would be: (hostname contains host AND appname contains app) OR (severity contains error). However, if the 'restrict' is true for data set 2, the combined data set would be: (hostname contains host AND appname contains app) AND (severity contains error)
Represents whether autocomplete is restricted in the Explore Logs feature
OK
{
"id": "d5a4a8d-7c9d-4762-99f7-fe4be6a77908",
"name": "test_dataset",
"description": "test_dataset description",
"cspOrgId": "678ea4a8d-7c9d-4762-99f7-fe4be6a77908",
"restrictAutocomplete": false,
"restricts": false,
"constraints": {
"operator": "AND",
"constraints": [
{
"operator": "AND",
"tags": [
"aria-logs:search-bar"
],
"constraints": [
{
"fieldName": "text",
"operator": "CONTAINS",
"value": "error"
}
]
},
{
"operator": "AND",
"constraints": [
{
"fieldName": "text",
"operator": "CONTAINS",
"value": "error"
},
{
"fieldName": "text",
"operator": "CONTAINS",
"value": "test"
}
]
}
]
}
}
A unique dataset identifier
A unique dataset name
Dataset description that is shown in the UI
Unique ID associated with the org
Determines how a data set should behave when combined with other data sets. E.g., consider if you have two data sets Data set 1 (hostname contains host, appname contains app) and Data set 2 (severity contains error). If both of these data sets are added to a role, the resulting combined data set would be: (hostname contains host AND appname contains app) OR (severity contains error). However, if the 'restrict' is true for data set 2, the combined data set would be: (hostname contains host AND appname contains app) AND (severity contains error)
Represents whether autocomplete is restricted in the Explore Logs feature