Views
This page explains how to use views in Axiom.
Views allow you to apply commonly used filters and transformations to your dataset. The result is a view that you can use like you use datasets:
- You can reference views in queries, dashboards, and monitors in the same way you reference datasets. For example, you can create queries that look for data in a view and you can use this query to visualize data in Query, create a dashboard element, or set up a monitor.
- You can share and control access to views in the same way you do with datasets using role-based access control (RBAC). For example, views allow you to grant other users scoped access to your datasets. This means that instead of sharing the whole dataset with other users, you have the option to share only a filtered and transformed representation of the data. You define a view using a query that applies filters and transformations to your dataset, and then you only share the results of this query with another user.
Contrary to datasets:
- You can’t ingest directly to a view.
- You can’t trim or delete data from a view.
- You can’t create a view from another view.
The concept of a view in Axiom is similar to the concept of a virtual table in a database.
Create view
- In the sidebar, click Views and then click New view. Alternatively, open a dataset and click New view in the Views panel on the right.
- Create the query using Builder or Editor.
- Below the query, check the preview of the events and the fields that your query returns.
- Name the view and optionally add a description. When you create a view, its name follows the same rules as dataset names: 1 to 80 characters containing only letters, digits, hyphens (
-), underscores (_), and periods (.), starting and ending with a letter or digit. Axiom rejects reserved names such asaxiom-audit. - Click Create view (or Save view when editing an existing view).
Display view
In the sidebar, click Views to list all views in your organization, or open a dataset and inspect its Views panel on the right. Click a view to open it, or open a view’s row menu for additional actions:
- Open view: Open the view details page.
- Open in: Open the view in Stream, Query, or a New tab.
- Manage > Edit view…: Edit the view’s query, name, or description.
- Copy link: Copy a direct link to the view.
- Delete view…: Delete the view.
Grant access to view
All views are available to users with organization-level read access to views. To allow users without these permissions to access an individual view, add the view to a role:
- Click Settings > Roles.
- Click the role with which you want to share the view or create a new role.
- In the Views section, click Add view.
- Select the views that you want to share, and then click Add. If the list is long, start typing the name of the view to filter it.
- Click Save.