Skip to content

Commit 2052ec7

Browse files
committed
Update default.yml
1 parent a2f002a commit 2052ec7

File tree

1 file changed

+1
-2
lines changed
  • packages/windows/data_stream/powershell_operational/elasticsearch/ingest_pipeline

1 file changed

+1
-2
lines changed

packages/windows/data_stream/powershell_operational/elasticsearch/ingest_pipeline/default.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ processors:
338338
Entropy (0-20 bits) measures randomness; surprisal_sd measures distribution uniformity.
339339
if: ctx._temp?.script_block_no_signature != null
340340
source: |-
341+
// Entropy Variance from: https://github.com/elastic/toutoumomoma/blob/be287c9c0d0e435572e3889a6584199983c688f0/toutoumomoma.go#L326-L363.
341342
String script = ctx._temp.script_block_no_signature;
342343
343344
script = java.text.Normalizer.normalize(script, java.text.Normalizer.Form.NFC);
@@ -364,8 +365,6 @@ processors:
364365
pSum += p;
365366
double tmp = entropy;
366367
entropy = tmp + (p / pSum) * (l2p - tmp);
367-
368-
// Reference: https://github.com/elastic/toutoumomoma/blob/be287c9c0d0e435572e3889a6584199983c688f0/toutoumomoma.go#L326-L363
369368
surprisalVar += p * (l2p - tmp) * (l2p - entropy);
370369
}
371370

0 commit comments

Comments
 (0)