Release Notes September 1, 2023¶
Threshold Log Monitor¶
Use Threshold Log Monitor to build Monitors and Alerts for Log Events in your Logs datasets. This can be useful for monitoring events such as Unauthorized in Container Logs or specific events in other types of Logs Datasets.
To access Threshold Log Monitor, click Monitors and then Create New.

Figure 1 - Threshold Log Monitor
After you click Create New, select a Logs Dataset such as Events in a Kubernetes container, and then begin configuring your Threshold Log Monitor:

Figure 2 - Configuring a Threshold Log Monitor
For more information on Threshold Log Monitors, see placeholder.
Log Explorer - Live Mode¶
View events as they occur using the Live Mode with Logs Datasets and Log Explorer.

Figure 5 - Enabling Live Mode
Since Live Mode increases your credit usage, you may want to disable it unless you’re actively working on troubleshooting an ongoing issue. Live Mode automatically becomes disabled after 15 minutes.
For Log Explorer, you can select from 5 minutes, 10 minutes, or 15 minutes.
OPAL Language Updates¶
topk_aggr
¶
Description¶
Returns an approximation of the top K most frequent values in the input, along with their approximate frequencies.
The output contains an array of arrays. In the inner arrays, the first entry is the value in the input, while the second entry is its frequency. The outer array contains k
elements, sorted by frequencies in descending order.
Return type¶
array
Domain¶
This is an aggregate function (aggregates rows over a group in aggregate verbs.
This is a window function (calculates over a group of multiple input rows using windowing.)
Categories¶
Usage¶
topk_agg( expr, k )
Argument |
Type |
Required |
Multiple |
---|---|---|---|
expr |
any |
Required |
Only one |
k |
int64 |
Required |
Only one |
Examples¶
statsby top_names:topk_agg(name, 2), group_by(class)
Given the following input:
name |
class |
---|---|
Jack |
A |
Joe |
A |
Alice |
A |
Alice |
A |
Tom |
B |
Joe |
B |
Kathy |
B |
Mike |
A |
Tom |
B |
It returns the following output:
class |
top_names |
---|---|
A |
[[“Alice”, 2], [“Jack”, 1]] |
B |
[[“Tom”, 2], [“Kathy”, 1]] |
Note that if there is a tie in the last position the result can be non-deterministic. Any of the values with the same frequency may be included in the last position.