Skip to content

Commit

Permalink
Move email to ECS field
Browse files Browse the repository at this point in the history
  • Loading branch information
efd6 committed Oct 7, 2021
1 parent 32fae9e commit 6033972
Show file tree
Hide file tree
Showing 5 changed files with 139 additions and 67 deletions.
10 changes: 0 additions & 10 deletions filebeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -151003,16 +151003,6 @@ type: boolean

--

*`threatintel.misp.event_creator_email`*::
+
--
The email of the creator of the event.


type: keyword

--

*`threatintel.misp.attribute.id`*::
+
--
Expand Down
2 changes: 1 addition & 1 deletion x-pack/filebeat/module/threatintel/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions x-pack/filebeat/module/threatintel/misp/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@
type: boolean
description: >
If the Organization Community was local or synced from a remote source.
- name: event_creator_email
type: keyword
description: >
The email of the creator of the event.
- name: attribute.id
type: keyword
description: >
Expand Down
8 changes: 8 additions & 0 deletions x-pack/filebeat/module/threatintel/misp/ingest/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,14 @@ processors:
target_field: threatintel.indicator.email.address
ignore_missing: true
if: ctx?.threatintel?.indicator?.type == 'email-addr'
- rename:
field: threatintel.misp.event_creator_email
target_field: user.email
ignore_missing: true
- append:
field: user.roles
value: "reporting_user"
if: ctx?.user?.email != null

## MAC Address indicator operations
- set:
Expand Down
Loading

0 comments on commit 6033972

Please sign in to comment.