Views

Search Views allow you to view the default mapping between the event fields of a specific source type and a selected schema, enabling out-of-box content dashboards for a particular sourcetype or OCSF category.

Views support both the Eventlog (standard) schema and the OCSF Schema Overview. With support for creating aliases for fields and directly referencing them in Search queries, views let you perform schema-on-the-fly field extractions for easier searching and data filtering.

Eventlog and OCSF views are subject to their respective eventlog and OCSF data access filters defined in user roles. See Role-Based Access Control for Schemas for more information.

When Schema RBAC is active for your organization, the schema filters in your assigned roles determine which data this feature returns. An eventlog filter limits your results to only the eventlog data your role permits, and an OCSF filter limits your results to only the OCSF data your role permits. If a query runs against a schema for which your role has no filter assigned, the query returns a forbidden error. For details, see Role-Based Access Control for Schemas.

Benefits

Views offer the following benefits:

  • Field Recasting: Recast fields as per the naming convention of a log source you are familiar with, making it easier for you to understand, adapt, and use your data effectively while using Anomali Search.

  • Schema Compatibility: Use alias fields in search queries as well as filter conditions, as if they were parsed schema fields.

    • Example: The most common AQL syntax is <alias_field> = <value>.

  • OCSF-Compliant Vendor-Neutral Field Access: OCSF views bind to an event category rather than a specific log source. A single OCSF view for a category such as Network Activity applies across all OCSF-compliant data sources that produce events in that category, regardless of vendor or format. For example, network events from multiple firewall vendors are all normalized to the same OCSF Version 1.2 fields, allowing you to apply field aliases present in one OCSF view consistently across all of them. By contrast, eventlog views bind to a specific sourcetype, so each vendor or log format requires its own view.

  • Dynamic Dashboarding: Create out-of-the-box dynamic dashboards for a sourcetype or OCSF category through a default view.

  • Reduced Data Reprocessing: Use new fields even against old data, eliminating the need to reprocess old data.

  • Reduced Data Volume: Leverage the full Common Information Model standard without creating or expanding your existing schema, reducing the data volume.

  • Simplified Usage: Provide schema-field notation without additional programmatic syntax, simplifying large search queries and improving the overall user experience.

  • MSSP Support: Views are supported for the Managed Security Service Providers feature.

Overview

To access all views available, navigate to Search > Manage > Views.

Search View: Enter the name of the view you want to find. You can also search by name, description, created by, or owner, with the search being incremental, that is, results update as you type.

Filter by tag: Filter the view list by one or more resource tags.

  • The drop-down shows only tags you own or that are shared to your organization. Organization administrators can also see private tags owned by other users.

  • Selecting multiple tags returns only views that have all selected tags applied.

  • Click Clear tags to remove the filter.

  • The count next to each tag shows how many views have that tag applied, not the total across all the supported resource types.

See Filtering Views by Resource Tag for details.

Filter by owner: You can filter views by owner. Possible values include:

  • Mine: returns views for which you are the owner.

  • System: returns out-of-the-box views, that is, views that are owned by nobody and that cannot be changed.

  • Not System: returns views that are not owned by system, such as views created by a user.

  • <user>: returns views where the selected user is the owner.

Name: Name of the view.

Tags: Apply one or more resource tags to the view.

  • The auto-complete suggestion shows tags you own and tags shared to your organization. Private tags associated with other users are not shown, except to organization administrators.

  • To apply an existing tag, type in the field and select it from the auto-complete suggestion results.

  • To create a new tag, type a name that does not match any existing tag and confirm the selection. A color picker appears so you can choose a tag color before the tag is created.

  • After selecting the color, click the add icon () to add the tag to the view as well as the shared tag catalog. A new tag is added to the shared tag list immediately, even if you abandon creating or editing the view.

  • New tags default to Everyone in My Organization (Read). You can change this later from the Resource Tags settings page

  • Applied tags render as colored chips. Click the cross icon (×) on the tag chip to remove the tag from the view. This does not delete the tag from the catalog. Any user with edit access to the view and visibility to a tag can remove the tag.

  • To filter the list by tag, see Filtering Views by Resource Tag.

Note: Users with read-only permission on a view can view applied tags but cannot add or remove them. Only tag owners and users with write permission can add or remove tags. See Resource Tagging Permissions for more information.

Owner: The user or role that currently owns and manages the view.

Created: The date and time when the view was initially created.

Created by: Indicates the owner of the view. By default, the creating user is the owner and is private (not shared). The owner can:

  • Modify all the details of the view.

  • Configure sharing or permissions granted to users.

  • Edit can delete the view.

Modified: The date and time when the view was last updated.

Constraints: The constraint expression that allows you to specify one or more fields to create the view.

Constraint fields depend on the schema selected:

  • eventlog views use sourcetype

  • OCSF views use category_name.

Description: A brief explanation of the purpose or functionality of the view.

New: Create a new view. Refer to Create a View for details.

Create a View

To create a view:

  1. On the left navigation pane, navigate to Search > Manage > Views.

  2. Click New to create a view.

Name: Required. Enter a unique name for the view. No two views can have the same name.

(Optional) Description: Enter a description that describes the view.

(Optional) Tags: Enter or select one or more resource tags to apply to the view.

  • Use the auto-complete suggestion to add a tag to the view. Only tags you own and those shared to your organization are displayed. Private tags associated with other users are not shown, except to organization administrators.

  • To create a new tag, type a name containing up to 50 characters and click Customize tag color to select a color. See Creating a Resource Tag to learn all the ways in which you can create resource tags. A new tag is added to the shared tag list immediately, even if you abandon the tag creation.

  • To apply an existing tag, type in the field and select it from the auto-complete suggestion results.

  • Click Manage Resource Tags to view existing or newly created tags.

Schema: Select the schema for the view.

Constraints: Required. Provide one or more constraints that apply to the view. The available constraint fields depend on the schema selected.

  • Eventlog: The view queries the standard Anomali eventlog schema. Constraints use sourcetype-based fields.

    • sourcetype = "match_cloud" displays results that originate from Security Analytics.

  • OCSF: The view queries the OCSF Schema Overview. Constraints use category_name to filter by OCSF category, and field aliases use OCSF dotted-notation fields.

    • category_name = "Network Activity" displays events from the Network Activity OCSF category.

For the list of supported OCSF categories, see Supported OCSF Categories. An error is displayed if you attempt to save a view without a constraint.

Note:  

  • Each sourcetype loads a default view that includes multiple normalized fields.

  • Default views are read-only. You can clone a default view.

  • Views are associated with users mapped to an org role. So, the owner of a view in an org can share it with users mapped to an org role for viewing as well as viewing and editing.

  • Any user can create, edit, or clone their view.

  • If the sourcetype is unknown, you can use json_extract within the calc operator on the message field to define aliases for the view. See AQL Best Practices for more information on using json_extract efficiently.

Field Aliases: Required. Enter the name of a field that you would like to alias, the help of auto-complete suggestions. Then, enter its equivalent alias.

  • For eventlog views, the fields suggested by the auto-completion depend on the sourcetype you provide as the constraint.

  • For OCSF views, auto-completion suggestions reflect OCSF fields for the selected category_name, using dotted-notation (for example, src_endpoint.ip, actor.user.name). For more information on OCSF field naming, see Field Naming Conventions.

  • Aliases should always be a single-word reference, allowing underscores only, without any space in it. The following examples show the correct format:

    • Correct formatsource_host_name

    • Wrong format: "source host name", "source-host-name", or "source.host.name".
  • You can also add or delete one or more fields and their associated aliases.

  • You can enter a field or a query with valid AQL Syntax to define an alias.

Note: With respect to a view, aliases must be unique. The same alias can be used across multiple views. For example, View A can only have 1 alias "username", but View A and View B can have the same alias "username".

Available Fields: The list of field aliases you added, that will be part of the result set when you are Running a View.

(Optional) Additional Fields: Based on the sourcetype you select, you can add any other existing standard eventlog field from a dropdown list, besides the Available Fields, without creating aliases.

Owner: Select an owner of the view from the list of users. This is the email address of the owner.

Type: Select the type of permission assigned to the view:

  • Private: Only the owner has read and write privileges, that is, no other user can create, edit, or delete a view.

  • Shared: Allows you to set the read-write privileges for a role that is mapped to different users, granting read-write permissions to all users assigned that role. You can also assign read or write permissions to everyone in your organization.

Note: Newly created tags default to Everyone in my Organization (Read). Only tag owners and users with write permission can add or remove tags. See Resource Tagging Permissions for more information.

Running a View

Once you Create a View, click the view to run it. Once the view runs, it displays all the different fields as defined in the view.

In the example screenshot above:

  • Results of running the okta_extended view contains the user-defined aliases result, server, src_city, and src_country, in addition to other fields.

  • Available Fields:

    • Map to Selected Fields in the left pane.

    • Allow you to perform all AQL actions, just like you can on any regular eventlog fields.

  • The left pane also contains Additional Fields that you added when you created the view. For example, event_time, sourcetype, and src_ip are in the Selected Fields section because they were added as Additional Fields during the view creation.

Additionally, you can run standard AQL queries on the alias fields.

Running an OCSF View

OCSF views run against the OCSF table and return results using OCSF schema fields. The Selected Fields pane on the left reflects the OCSF field aliases you defined when creating the view.

In the example above, the test_ocsf_view view is constrained to category_name = "Network Activity" and aliases the OCSF field src_endpoint.ip to src_ip_addr. Running this view returns results with the alias field src_ip_addr alongside standard OCSF fields such as category_uid and event_time in the Selected Fields in the left pane.

When a non-administrator user with an OCSF role runs an OCSF view, Anomali Search automatically appends the OCSF Filter filter to the AQL query of the view in the backend.

The user does not need to add the filter manually, that is, the view returns only the OCSF categories the role permits.

For example, if the role filter is defined as follows

Copy
category_name = 'Network Activity'

Search internally runs the view as if | where category_name = 'Network Activity' were part of the view constraint, in addition to the constraint the user specifies. See Role-Based Access Control for Schemas for more information.

If a user's role grants access to OCSF data but not eventlog data, running a view built on the eventlog schema returns a forbidden error. The underlying AQL for an eventlog view queries the eventlog table, which the OCSF-only role does not permit. Users who need to run both eventlog and OCSF views must have appropriate filters configured for each schema in their assigned roles.

Update a View

To update a view:

  1. On the left navigation pane, navigate to Search > Manage > Views.

  2. Click on the name of the view to make changes either on the:

    1. Details tab: Edit the name, description, constraints, field aliases, available fields, and tags.

    2. Sharing & Permissions tab: Edit the owner and the read-write permissions associated with a role mapped to different users.

    Note:  

    • When you edit an existing OCSF view, the Schema field pre-selects OCSF automatically.

    • The schema of an existing view cannot be changed after the view is created.

  3. (Optional) In the Tags field:

    1. Enter or select resource tags to apply to the view. The auto-complete suggestion shows tags you own and tags shared to your organization. Private tags associated with other users are not shown, except to organization administrators.

    2. To create a new tag inline, type a name containing up to 50 characters and click Customize tag color to select a color. A new tag is added to the shared tag list immediately, even if you abandon updating the view.

    3. To apply an existing tag, type in the field and select it from the auto-complete suggestion results.

    4. Click Manage Resource Tags to view existing or newly created tags.

    Note: Newly created tags default to Everyone in my Organization (Read). Only tag owners and users with write permission can add or remove tags. See Resource Tagging Permissions for more information.

3. Click Save.

In the example screenshot above, the Field Aliases section shows how you can update one or more aliases either by using AQL queries or recasting eventlog fields, as follows:

  • result: recasted from eventlog field action.

  • display_name: defined by the custom AQL query -> calc display_name=json_extract(message, "actor.displayName").

  • source_city: updated alias defined by a custom AQL query -> calc src_city=json_extract(message, "client.geographicalContext.city").

  • source_country: updated alias defined by a custom AQL query -> calc src_country=json_extract(message, "client.geographicalContext.country").

  • server: recasted from the eventlog field host.

Filtering Views by Resource Tag

You can filter the view list by one or more resource tags. When you select multiple tags, only views that have all selected tags applied are returned.

Note: The tag filter drop-down shows only tags you own or that are shared to your organization. Organization administrators can also see private tags owned by other users. See Resource Tagging Permissions for more information.

To filter views by resource tag:

  1. Navigate to Search > Manage > Views.

  2. Click the Filter by tag drop-down and select one or more tags. The count displayed next to each tag reflects usage for views only, not the total across all the supported resource types. A tag used across multiple resource types will show a different count on each resource page, depending on the resource you are viewing. The list updates to show only views that have all selected tags applied.

  3. Click Clear tags to clear the filter.

Bulk Editing Tags and Permissions for Views

You can add resource tags and update sharing permissions across multiple views at once.

Note: Saving a bulk tag edit replaces the existing tags on all selected views. It does not merge with existing tags.

Required Permissions

  • Details tab: Requires write permission or ownership on each selected view. The tag drop-down shows only tags you own or that are shared to your organization. Organization administrators also see private tags owned by other users.

  • Sharing & Permissions tab: Available to view owners and organization administrators only. Users with write-only permission cannot modify sharing settings.

To bulk edit tags and permissions for views:

  1. Navigate to Search > Manage > Views.

  2. Select the views you want to update.

  3. Click Bulk edit.

  4. Click the Details tab and enter or select tags in the Tags field.

  5. Enter or select resource tags to apply to the view. The auto-complete suggestion shows tags you own and tags shared to your organization. Private tags associated with other users are not shown, except to organization administrators.

  6. To create a new tag inline, type a name containing up to 50 characters and click Customize tag color to select a color. A new tag is added to the shared tag list immediately, even if you abandon updating the view.

  7. To apply an existing tag, type in the field and select it from the auto-complete suggestion results.

  8. (Optional) Click the Sharing & Permissions tab to update sharing settings for the selected views. See Resource Tagging Permissions for more information.

  9. Click Apply to All.

The tags and permissions are updated for all selected views.

Clone a View

To clone a view:

  1. On the left navigation pane, navigate to Search > Manage > Views.

  2. Hover your mouse over the view you would like to clone. Doing so displays the clone icon, as follows:

  3. The cloned view name contains the "_copy" suffix added to the name of the original view, as follows:

  4. Fill the form to Create a View.

  5. Click Create to finish cloning.

Delete a View

To delete a view:

  1. On the left navigation pane, navigate to Search > Manage > Views.

  2. Hover your mouse over the view you would like to clone. Doing so displays the delete icon, as follows:

  3. Click the delete icon. Then, click Delete to confirm the deletion.

  4. The view is now deleted.