scoreByLeastFrequency

Score events by frequency.

Score a given table based on how frequently a unique group of the specified columns occurs. Higher scores are given to less frequent occurrences. The output table adds an additional lhub_score column that contains the score.

Operator Usage in Easy Mode

  1. Click + on the parent node.
  2. Enter the Score by Least Frequency operator in the search field and select the operator from the Results to open the operator form.
  3. In the Input Table drop-down, enter or select the name of the table containing the data to run this operator on.
  4. Optional. In the Columns drop-down, enter or select the columns to group events by.
  5. Click Run to view the result.
  6. Click Save to add the operator to the playbook.
  7. Click Cancel to discard the operator form.

Usage Details

scoreByLeastFrequency(inputTable, columns)

Input
inputTable: Table containing the data to run this operator on.
`columns': Comma-separated list of columns to group events by.

Output
The input table with an additional lhub_score column that contains the score [0.0 - 10.0]. Less frequently occurring groups get higher scores.

Example

Input
table

id destIP destPort
1192.68.0.13250
2192.68.0.13250
3192.68.0.13250
453.32.124.87458
5192.68.0.13250
6192.68.0.13250
scoreByLeastFrequency(table, "destIP", "destPort")

Output

id destIP destPort lhub_score
1192.68.0.132500.0
2192.68.0.132500.0
3192.68.0.132500.0
453.32.124.8745810.0
5192.68.0.132500.0
6192.68.0.132500.0

© Devo Technology Inc. All Rights Reserved.