Skip to content

Commit

Permalink
[dga] Ensure event.kind is correctly set for pipeline errors (#7053)
Browse files Browse the repository at this point in the history
  • Loading branch information
MakoWish committed Sep 11, 2023
1 parent 948dafa commit 1d7f1cf
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/dga/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# newer versions go on top
- version: "1.1.0"
changes:
- description: Ensure event.kind is correctly set for pipeline errors.
type: enhancement
link: https://github.com/elastic/integrations/pull/7053
- version: "1.0.1"
changes:
- description: Add the Advanced Analytics (UEBA) subcategory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,10 @@ processors:
ctx['ml_is_dga'] = new HashMap();
ctx['ml_is_dga']['malicious_prediction'] = malicious_prediction;
ctx['ml_is_dga']['malicious_probability'] = malicious_probability;
on_failure:
- set:
field: event.kind
value: pipeline_error
- append:
field: error.message
value: '{{{ _ingest.on_failure_message }}}'
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ processors:
version: 1
on_failure:
- set:
field: event.kind
value: pipeline_error
- append:
field: error.message
value: '{{ _ingest.on_failure_message }}'
value: '{{{ _ingest.on_failure_message }}}'
2 changes: 1 addition & 1 deletion packages/dga/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 1.0.0
name: dga
title: "Domain Generation Algorithm Detection"
version: 1.0.1
version: 1.1.0
license: basic
description: "ML solution package to detect domain generation algorithm (DGA) activity in your network data. Requires a Platinum subscription."
type: integration
Expand Down

0 comments on commit 1d7f1cf

Please sign in to comment.