Scheduled views :: Kloudfuse Docs
Scheduled views
Scheduled views are pre-aggregated datasets that Kloudfuse generates at scheduled intervals to improve query performance and efficiency. Instead of expensive real-time queries on raw data, scheduled views store advance results, enabling faster access to summarized information.
Consider the following benefits of using scheduled views instead of regular queries:
Scheduled views have a significantly smaller footprint, and use much less storage than complete logs.
Scheduled views update every minute for near real-time data availability.
When you store precomputed results, the system processes the query and saves the aggregated results separately from the log data.
When you access scheduled view results through FuseQL (instead of running raw data queries), it ensures faster performance with current insights.
You can design your retention policies to optimize both storage and accessibility to older data by only the relevant data that is both abbreviated and aggregated. This enables better reporting without significant overhead.
You must use an aggregate operator when defining a scheduled view.
You cannot create a scheduled view from another scheduled view.
You cannot use cat operator as part of a scheduled view query.
To begin working with scheduled views, follow these steps:
Select the Logs tab, and then the Scheduled Views option in the dropdown menu.
The Scheduled Views report appears.
Using Scheduled Views
The Scheduled Views report has the following information and affordances:
- The Search feature enables you to search across all existing scheduled views.
- Make a new scheduled view by clicking the Create scheduled view button.
- Use the List of scheduled views to review what views are already available, and to manage them.
- The first column of the list displays the Status of the view. Views can be Active or Paused.
- View Name is either generated sequentially (see view3, view4), or a custom name you assign to the view when you create it.
- FuseQL is the definition of the query that defines the view.
- Created at is the timestamp of when the view is created.
When you hover the cursor over one of the rows that represent a scheduled view, Kloudfuse displays action options. Choose one of them to perform these actions:
- View Logs to examine what logs have been extracted into the view.
| Kloudfuse only saves the timestamp and the queried fields, not the entire log record. |
- Pause or Resume collecting data points into the view.
- Delete scheduled view to stop collecting data.
Create a scheduled view
This is how to create a scheduled view:
In the default Logs > Scheduled Views interface, click Create scheduled view.
The Create scheduled view page appears.
In the interface, specify:
- View Name: Choose a meaningful name; do not use spaces.
- FuseQL Query: Specify the query that defines the view, both the filters and the aggregation logic. For example,
* | count by (level,kube_cluster_name)
```
4. Click **Create**.
5. The new view appears in the list of views.
## View Logs
1. In the list of **Scheduled Views**, hover the pointer over the view you plan to examine.
In this example, we use `view4`, which is defined as `* | count by (level)`.
2. Click the **View Logs** option.
3. The list of logs that match the view appears.
The **Search** parameters are, by default, for `_view=<view=name>`. In the following example, it is `_view=view4`.
The **default time interval** is for the preceding 5 minutes. You can adjust this by changing the time picker. In the following example, the time interval is for the last minute.
The columns in the table are extracted from the view definition for the logs. They always include **Timestamp**. In this example, the aggregation is **\_count**, and the metric is **level**.
## Pause or Resume Scheduled view
Disable or pause the scheduled view to temporarily stop updates without deleting it, and then resume processing as necessary.
1. Hover your pointer over the view you plan to pause, and click the **Pause** option.
2. Notice that the status changes to paused (grey indicator).
3. To **resume** collecting data into the scheduled view, hover your pointer over the view you plan to use, and click the **Resume** option.
## Delete Scheduled view
Delete a schedule view to stop collecting data.
| | |
| --- | --- |
| | You can still use a deleted view in a query. Be mindful that like all data, scheduled views have a retention timeframe that expires. |
1. Hover your pointer over the view you plan to delete, and click the **Delete** option.
2. Notice that the view is no longer in the list of available views.
## Query a Scheduled view
To query a view, prefix the FuseQL query by adding the view information. So, the first component of the query has the following form:
### Query against a view
```none
| _view=<view_name>
Do not use quotes around the view name.
Query multiple views
To query multiple views, prefix the query using the following form:
Query against multiple views
_view=<view1> or _view=<view2> or _view=<view3> ...
For example, consider this combined view: