-
START YOUR TRIAL
-
DEVICE INTEGRATION
-
CONNECTORS
-
DATA INGESTION
-
HUNTING WITH WORKBOOKS
-
DNIF Query Language (DQL Language)
-
SECURITY MONITORING
-
OPERATIONS
-
MANAGE DASHBOARDS
-
MANAGE REPORTS
-
USER MANAGEMENT & ACCESS CONTROL
-
BILLING
-
MANAGING YOUR COMPONENTS
-
GETTING STARTED
-
INSTALLATION
-
SOLUTION DESIGN
-
AUTOMATION
-
TROUBLESHOOTING AND DEBUGGING
-
LICENSE MANAGEMENT
-
RELEASE NOTES
-
API
-
POLICIES
-
SECURITY BULLETINS
-
BEST PRACTICES
-
DNIF AI
-
DNIF LEGAL AND SECURITY COMPLIANCE
Ratio_of
The ratio_of function computes the ratio value where the condition is met. The following illustrates the syntax of the ratio_of function:
Stream=FIREWALL | groupby dstip | select dstip, ratio_of (dstport==23) | having ratio_of_col1>0
Here,
- Stream is Firewall
- Groupby function allows to organize similar data into groups i.e. groupby destination IP Address.
- Select function helps you to retrieve records from one or more tables, the records retrieved are known as a result set.
- The ratio_of (condition) function returns the ratio value of a numeric column.
In this example, on execution it should retrieve all fields for each event where the stream is a firewall; it retrieves the ratio value in each group. The output is shown as below: