Skip to content

Commit 1d7f1cf

Browse files
authored
[dga] Ensure event.kind is correctly set for pipeline errors (#7053)
1 parent 948dafa commit 1d7f1cf

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

packages/dga/changelog.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# newer versions go on top
2+
- version: "1.1.0"
3+
changes:
4+
- description: Ensure event.kind is correctly set for pipeline errors.
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/7053
17
- version: "1.0.1"
28
changes:
39
- description: Add the Advanced Analytics (UEBA) subcategory

packages/dga/elasticsearch/ingest_pipeline/ml_dga_inference_pipeline.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,10 @@ processors:
9999
ctx['ml_is_dga'] = new HashMap();
100100
ctx['ml_is_dga']['malicious_prediction'] = malicious_prediction;
101101
ctx['ml_is_dga']['malicious_probability'] = malicious_probability;
102+
on_failure:
103+
- set:
104+
field: event.kind
105+
value: pipeline_error
106+
- append:
107+
field: error.message
108+
value: '{{{ _ingest.on_failure_message }}}'

packages/dga/elasticsearch/ingest_pipeline/ml_dga_ingest_pipeline.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ processors:
77
version: 1
88
on_failure:
99
- set:
10+
field: event.kind
11+
value: pipeline_error
12+
- append:
1013
field: error.message
11-
value: '{{ _ingest.on_failure_message }}'
14+
value: '{{{ _ingest.on_failure_message }}}'

packages/dga/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: 1.0.0
22
name: dga
33
title: "Domain Generation Algorithm Detection"
4-
version: 1.0.1
4+
version: 1.1.0
55
license: basic
66
description: "ML solution package to detect domain generation algorithm (DGA) activity in your network data. Requires a Platinum subscription."
77
type: integration

0 commit comments

Comments
 (0)