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

id

bytes

1

1986

2

1652

3

1762

4

93

5

1697

LQL command

scoreAnomalies(table, "bytes")

Output

id

bytes

lhub_score

id

bytes

lhub_score

1

1986

0.0

2

1652

0.0

3

1762

0.0

4

93

10.0

5

1697

0.0

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