Document toolboxDocument toolbox

scoreAnomalies

Find anomalous events within the neighborhood of an event, where the neighbor events are the events those are closest to the source event time.

Anomaly => Very different value (much bigger/smaller value) than the neighbor's values

Operator Usage in Easy Mode

  1. Click + on the parent node.
  2. Enter the Score Anomalies 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. In the Column drop-down, enter or select the name of the column on which the anomaly scores will be calculated.
  5. Optional. In the Grouping Fields drop-down, enter or select the name of the columns to group events by.
  6. Click Run to view the result.
  7. Click Save to add the operator to the playbook.
  8. Click Cancel to discard the operator form.

Usage Details

LQL Command

scoreAnomalies(table, scorefield)

Input:
table: Input table
scorefield: Name of a field to apply an operator

Output
Input table with an additional field (lhub_score) that contains the score values. Higher value means a more anomalous event.

Example

Input
table = github_logs

id bytes
11986
21652
31762
493
51697

LQL command

scoreAnomalies(table, "bytes")

Output

id bytes lhub_score
119860.0
216520.0
317620.0
49310.0
516970.0

All numbers except in the 4th row (93) are within the range of one standard deviation of the "bytes" values.