Skip to content

Commit 65a342e

Browse files
fix duplicate processors, tags
1 parent 0bf35d7 commit 65a342e

File tree

3 files changed

+3
-39
lines changed

3 files changed

+3
-39
lines changed

packages/fortinet_fortimail/data_stream/log/elasticsearch/ingest_pipeline/default.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ processors:
8484
tag: set_3a851ed4
8585
- date:
8686
field: temp.timestamp
87-
tag: 'date_set_timestamp'
87+
tag: 'date_set_timestamp_tz'
8888
timezone: '{{{event.timezone}}}'
8989
if: ctx.temp?.timestamp != null && ctx.temp.timestamp != '' && ctx.event?.timezone != null
9090
formats:
@@ -175,7 +175,7 @@ processors:
175175
tag: 'script_for_set_log.syslog.severity.code_log.syslog.facility.code'
176176
if: ctx.log?.level != null && ctx.log.level != '' && ctx.log.syslog?.priority != null && ctx.log.syslog.priority != ''
177177
lang: painless
178-
source: |-
178+
source: |
179179
ArrayList severities = new ArrayList(['emergency','alert','critical','error','warning','notice','information','debug']);
180180
HashMap sevrityMap = new HashMap();
181181
HashMap facilityMap = new HashMap();
@@ -267,7 +267,7 @@ processors:
267267
tag: remove_779d3744
268268
- script:
269269
lang: painless
270-
source: |-
270+
source: |
271271
boolean drop(Object o) {
272272
if (o == null || o == '') {
273273
return true;

packages/fortinet_fortimail/data_stream/log/elasticsearch/ingest_pipeline/pipeline_mail.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,6 @@ processors:
3131
value: 'end'
3232
if: ctx.fortinet_fortimail?.log?.sub_type == 'webmail'
3333
tag: append_2ff73bea
34-
- append:
35-
field: fortinet_fortimail.log.user
36-
value: '{{{temp.user}}}'
37-
allow_duplicates: false
38-
if: ctx.temp?.user != null
39-
tag: append_2f9ddf13
40-
- append:
41-
field: user.name
42-
value: '{{{temp.user}}}'
43-
allow_duplicates: false
44-
if: ctx.temp?.user != null
45-
tag: append_9b60aa7f
46-
- append:
47-
field: related.user
48-
value: '{{{temp.user}}}'
49-
allow_duplicates: false
50-
if: ctx.temp?.user != null
51-
tag: append_4554486f
5234
- grok:
5335
field: message
5436
if: ctx.fortinet_fortimail?.log?.sub_type == 'webmail'

packages/fortinet_fortimail/data_stream/log/elasticsearch/ingest_pipeline/pipeline_system.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -77,24 +77,6 @@ processors:
7777
if: (ctx.fortinet_fortimail?.log?.sub_type == 'system' && ctx.fortinet_fortimail.log.message.toLowerCase().contains('change')) || (ctx.fortinet_fortimail?.log?.sub_type == 'update' && ctx.fortinet_fortimail.log.message.toLowerCase().contains('update'))
7878
override: true
7979
tag: set_c5fda874
80-
- append:
81-
field: fortinet_fortimail.log.user
82-
value: '{{{temp.user}}}'
83-
allow_duplicates: false
84-
if: ctx.temp?.user != null
85-
tag: append_2f9ddf13
86-
- append:
87-
field: user.name
88-
value: '{{{temp.user}}}'
89-
allow_duplicates: false
90-
if: ctx.temp?.user != null
91-
tag: append_9b60aa7f
92-
- append:
93-
field: related.user
94-
value: '{{{temp.user}}}'
95-
allow_duplicates: false
96-
if: ctx.temp?.user != null
97-
tag: append_4554486f
9880
- grok:
9981
field: message
10082
ignore_missing: true

0 commit comments

Comments
 (0)