Dataset management
Learn more about managing your datasets and understanding your overall data storage, period-based retention.
Prerequisite
Dataset Management requires View/Edit RBAC permissions for Data Management (under Configurations → Data Management), which are the same permissions required for Parsing Rules, Data Model Rules, and Event Forwarding.
The Dataset Management page enables you to manage your datasets and understand your overall data storage duration for different retention periods and datasets based on your hot and cold storage licenses, and retention add-ons that extend your storage. You can view details about your Cortex Xpanse licenses and retention add-ons by selecting Settings → Cortex Xpanse License.
Important
Cortex Xpanse enforces retention on all log-type datasets excluding Host Inventory, Vulnerability Assessment, Metrics, and Users.
What are datasets?
Prerequisite
Dataset Management requires View/Edit RBAC permissions for Data Management (under Configurations → Data Management), which are the same permissions required for Parsing Rules, Data Model Rules, and Event Forwarding.
Cortex Xpanse runs every Cortex Query Language (XQL) query against a dataset. A dataset is a collection of column:value sets. If you do not specify a dataset in your query, Cortex Xpanse runs the query against the default datasets configured, which is by default xdr_data for a dataset query. The xdr_data dataset contains all of the endpoint and network data that Cortex Xpanse collects. For a Cortex Data Model (XDM) query, unless specific datasets are specified, a query will run against all mapped datasets. You can always change the default datasets using the set to default option. You can also upload datasets as a CSV, TSV, or JSON file that contains the data you are interested in querying. These uploaded datasets are called lookup datasets.
It's also possible to create dataset views, which provide a virtual representation of data from one or more datasets, based on the Cortex Query Language (XQL) query defined. Dataset views enhance data efficiency and security. For example, by segregating data for specific user needs or access privileges through the Role-based access control (RBAC) settings. For more information, see Dataset views.
To query other datasets, you have the following options:
Set a dataset as default, which enables you to query the datasets without specifying them in the query.
Name a specific dataset at the beginning of your query with the
datasetstage command.
Lookup datasets
Prerequisite
Dataset Management requires View/Edit RBAC permissions for Data Management (under Configurations → Data Management), which are the same permissions required for Parsing Rules, Data Model Rules, and Event Forwarding.
Lookup datasets enable you to correlate data from a data source you provide with the events in your environment. For example, you can create a lookup with a list of high-value assets, terminated employees, or service accounts in your environment. Use lookups in your search, detection rules, threat hunting, and response playbooks. Lookups are stored as name-value pairs and are cached for optimal query performance and low latency.
Lookup tables support low-frequency changes of up to 1200 modifications per day. Changes are implemented whenever a lookup dataset is edited, where only one person or user can edit the file at a given time. Concurrent users editing the file are not supported.
Import a lookup dataset
Prerequisite
Dataset Management requires View/Edit RBAC permissions for Data Management (under Configurations → Data Management), which are the same permissions required for Parsing Rules, Data Model Rules, and Event Forwarding.
You can import data from CSV, TSV, or JSON files into Cortex Xpanse to create or update lookup datasets.
Prerequisite
When uploading a CSV, TSV, or JSON file, ensure that the file meets the following requirements:
The maximum size for the total data to be imported into a lookup dataset is 30 MB from the Dataset Management page. Otherwise, the limit is 50 MB using Cortex Query Language (XQL) or APIs.
Field names can contain characters from different languages, special characters, numbers (
0-9), and underscores (_).Field names can't exceed 128 characters.
Field names can't contain duplicate names, white spaces, or carriage returns.
The file doesn't contain a byte array (binary data) as it can't be uploaded.
Each line in the JSON file must represent one JSON object. Ensure no brackets enclose the objects at the top-level.
Example 34.
Here's an example of a JSON file in the correct format for upload:
Select Settings → Configurations → Data Management → Dataset Management → + Lookup.
Browse to your CSV, TSV, or JSON file. You can only upload a TSV file if it contains a
.tsvfile extension.(Optional) Under Name, type a new name for the target dataset.
By default, Cortex Xpanse uses the name of the original file as the dataset name. You can change this name to something that will be more meaningful for your users when they query the dataset. For example, if the original file name is mrkdptusrsnov23.json, you can save the dataset as marketing_dept_users_Nov_2023.
Dataset names can contain special characters from different languages, numbers (
0-9) and underscores (_). You can create dataset names using uppercase characters, but in queries, dataset names are always treated as if they are lowercase.Replace the existing data in the dataset overwrites the data in an existing lookup dataset with the contents of the new file.
Click Add to add the file as a lookup.
After receiving a notification reporting that the upload succeeded, Refresh
to view it in your list of datasets.If the upload fails for any reason, you'll receive a notification in the Notification Center.
Download JSON file of lookup dataset
Prerequisite
Dataset Management requires View/Edit RBAC permissions for Data Management (under Configurations → Data Management), which are the same permissions required for Parsing Rules, Data Model Rules, and Event Forwarding.
You can only download a JSON file for a lookup dataset, where the Type set to Lookup on the Dataset Management page. This option is not available for any other dataset type.
When you download a lookup dataset with field names in a foreign language, the downloaded JSON file displays the fields as COL_<randomstring> as opposed to returning the fields in the foreign language as expected.
Open the Settings → Configurations → Data Management → Dataset Management page.
In the Datasets table, right-click the lookup dataset that you want to download as a JSON file, and select Download.
Set time to live for lookup datasets
Prerequisite
Dataset Management requires View/Edit RBAC permissions for Data Management (under Configurations → Data Management), which are the same permissions required for Parsing Rules, Data Model Rules, and Event Forwarding.
You can specify when lookup entries expire and are removed automatically from the lookup dataset by configuring the time to live (TTL). The time period of the TTL interval is based on when the data was last updated. The default is forever and the entries never expire. You can also configure a specific time according to the days, hours, and minutes. Expired elements are removed from the lookup dataset by a scheduled job that runs every five minutes.
Open the Settings → Configurations → Data Management → Dataset Management page.
In the Datasets table, right-click the lookup dataset, and select Set TTL.
Select one of the following to configure when lookup dataset entries expire and are removed:
Forever: Lookup entries never expire (default).
Custom: Lookup entries expire according to a set number of days, hours, and minutes. The maximum number of days is 99999.
Click Save.
The TTL column in the Datasets table is updated with the changes and these changes are applied immediately on all existing lookup entries.
Monitor datasets and dataset views activity
Prerequisite
Dataset Management requires View/Edit RBAC permissions for Data Management (under Configurations → Data Management), which are the same permissions required for Parsing Rules, Data Model Rules, and Event Forwarding.
Cortex Xpanse logs entries for events related to datasets and dataset views monitored activities. Cortex Xpanse stores the logs for 365 days. To view the datasets and dataset views audit logs, select Settings → Management Audit Logs.
You can customize your view of the logs by adding or removing filters to the Management Audit Logs table. You can also filter the page result to narrow down your search. The following table describes the default and optional fields that you can view in the Cortex XSIAM Management Audit Logs table:
Note
Certain fields are exposed and hidden by default. An asterisk (*) is beside every field that is exposed by default.
Description*
Log message that describes the action.
Email of the user who performed the action.
Host Name*
This field is not applicable for datasets and dataset views logs.
ID
Unique ID of the action.
Reason
This field is not applicable for datasets and dataset views logs.
Result*
The result of the action ( Success, Fail, or N/A)
Severity*
Severity associated with the log:
CriticalHighMediumLowInformational
Timestamp*
Date and time when the action occurred.
Type* and Sub-Type*
Additional classifications of dataset and dataset view logs (Type and Sub-Type):
Datasets:
Create Dataset
Delete Dataset
Update Dataset
Dataset Views:
Create Dataset View
Delete Dataset View
Update Dataset View
User Name*
Name of the user who performed the action.
Last updated
Was this helpful?
