@@ -95,7 +95,7 @@ processors:
95
95
allow_duplicates : false
96
96
ignore_failure : true
97
97
ignore_failure : true
98
- if : ctx.json?.messageParts != null && ctx.json.messageParts instanceof List
98
+ if : ctx.json?.messageParts instanceof List
99
99
- foreach :
100
100
field : json.messageParts
101
101
processor :
@@ -105,7 +105,7 @@ processors:
105
105
allow_duplicates : false
106
106
ignore_failure : true
107
107
ignore_failure : true
108
- if : ctx.json?.messageParts != null && ctx.json.messageParts instanceof List
108
+ if : ctx.json?.messageParts instanceof List
109
109
- rename :
110
110
field : json.ccAddresses
111
111
target_field : email.cc.address
@@ -164,7 +164,7 @@ processors:
164
164
allow_duplicates : false
165
165
ignore_failure : true
166
166
ignore_failure : true
167
- if : ctx.json?.recipient != null && ctx.json.recipient instanceof List
167
+ if : ctx.json?.recipient instanceof List
168
168
- rename :
169
169
field : json.xmailer
170
170
target_field : email.x_mailer
@@ -187,7 +187,7 @@ processors:
187
187
- _ingest._value.sandboxStatus
188
188
ignore_missing : true
189
189
ignore_failure : true
190
- if : ctx.email?.attachments != null && ctx.email.attachments instanceof List
190
+ if : ctx.email?.attachments instanceof List
191
191
- foreach :
192
192
field : email.attachments
193
193
processor :
@@ -196,7 +196,7 @@ processors:
196
196
target_field : _ingest._value.file.mime_type
197
197
ignore_missing : true
198
198
ignore_failure : true
199
- if : ctx.email?.attachments != null && ctx.email.attachments instanceof List
199
+ if : ctx.email?.attachments instanceof List
200
200
- foreach :
201
201
field : email.attachments
202
202
processor :
@@ -205,7 +205,7 @@ processors:
205
205
target_field : _ingest._value.file.hash.md5
206
206
ignore_missing : true
207
207
ignore_failure : true
208
- if : ctx.email?.attachments != null && ctx.email.attachments instanceof List
208
+ if : ctx.email?.attachments instanceof List
209
209
- foreach :
210
210
field : email.attachments
211
211
processor :
@@ -214,7 +214,7 @@ processors:
214
214
target_field : _ingest._value.file.hash.sha256
215
215
ignore_missing : true
216
216
ignore_failure : true
217
- if : ctx.email?.attachments != null && ctx.email.attachments instanceof List
217
+ if : ctx.email?.attachments instanceof List
218
218
- foreach :
219
219
field : email.attachments
220
220
processor :
@@ -223,14 +223,14 @@ processors:
223
223
target_field : _ingest._value.file.name
224
224
ignore_missing : true
225
225
ignore_failure : true
226
- if : ctx.email?.attachments != null && ctx.email.attachments instanceof List
226
+ if : ctx.email?.attachments instanceof List
227
227
- script :
228
228
description : Adding hash in related.hash from artifact field.
229
229
lang : painless
230
230
ignore_failure : true
231
231
source : |
232
232
if (ctx.json?.threatsInfoMap instanceof List) {
233
- for (artifact in ctx.json? .threatsInfoMap) {
233
+ for (artifact in ctx.json.threatsInfoMap) {
234
234
def flag = true;
235
235
def str = artifact.threat.toLowerCase();
236
236
if (str?.length() == 64) {
@@ -319,7 +319,7 @@ processors:
319
319
- _ingest._value.sha256
320
320
ignore_missing : true
321
321
ignore_failure : true
322
- if : ctx.proofpoint_tap?.message_delivered?.message_parts != null && ctx.proofpoint_tap.message_delivered.message_parts instanceof List
322
+ if : ctx.proofpoint_tap?.message_delivered?.message_parts instanceof List
323
323
- foreach :
324
324
field : proofpoint_tap.message_delivered.message_parts
325
325
processor :
@@ -328,7 +328,7 @@ processors:
328
328
target_field : _ingest._value.o_content_type
329
329
ignore_missing : true
330
330
ignore_failure : true
331
- if : ctx.proofpoint_tap?.message_delivered?.message_parts != null && ctx.proofpoint_tap.message_delivered.message_parts instanceof List
331
+ if : ctx.proofpoint_tap?.message_delivered?.message_parts instanceof List
332
332
- foreach :
333
333
field : proofpoint_tap.message_delivered.message_parts
334
334
processor :
@@ -337,7 +337,7 @@ processors:
337
337
target_field : _ingest._value.sandbox_status
338
338
ignore_missing : true
339
339
ignore_failure : true
340
- if : ctx.proofpoint_tap?.message_delivered?.message_parts != null && ctx.proofpoint_tap.message_delivered.message_parts instanceof List
340
+ if : ctx.proofpoint_tap?.message_delivered?.message_parts instanceof List
341
341
- convert :
342
342
field : json.messageSize
343
343
target_field : proofpoint_tap.message_delivered.message_size
@@ -403,7 +403,7 @@ processors:
403
403
target_field : _ingest._value.campaign_id
404
404
ignore_missing : true
405
405
ignore_failure : true
406
- if : ctx.proofpoint_tap?.message_delivered?.threat_info_map != null && ctx.proofpoint_tap.message_delivered.threat_info_map instanceof List
406
+ if : ctx.proofpoint_tap?.message_delivered?.threat_info_map instanceof List
407
407
- foreach :
408
408
field : proofpoint_tap.message_delivered.threat_info_map
409
409
processor :
@@ -412,7 +412,7 @@ processors:
412
412
target_field : _ingest._value.threat.artifact
413
413
ignore_missing : true
414
414
ignore_failure : true
415
- if : ctx.proofpoint_tap?.message_delivered?.threat_info_map != null && ctx.proofpoint_tap.message_delivered.threat_info_map instanceof List
415
+ if : ctx.proofpoint_tap?.message_delivered?.threat_info_map instanceof List
416
416
- foreach :
417
417
field : proofpoint_tap.message_delivered.threat_info_map
418
418
processor :
@@ -421,7 +421,7 @@ processors:
421
421
target_field : _ingest._value.threat.id
422
422
ignore_missing : true
423
423
ignore_failure : true
424
- if : ctx.proofpoint_tap?.message_delivered?.threat_info_map != null && ctx.proofpoint_tap.message_delivered.threat_info_map instanceof List
424
+ if : ctx.proofpoint_tap?.message_delivered?.threat_info_map instanceof List
425
425
- foreach :
426
426
field : proofpoint_tap.message_delivered.threat_info_map
427
427
processor :
@@ -430,7 +430,7 @@ processors:
430
430
target_field : _ingest._value.threat.status
431
431
ignore_missing : true
432
432
ignore_failure : true
433
- if : ctx.proofpoint_tap?.message_delivered?.threat_info_map != null && ctx.proofpoint_tap.message_delivered.threat_info_map instanceof List
433
+ if : ctx.proofpoint_tap?.message_delivered?.threat_info_map instanceof List
434
434
- foreach :
435
435
field : proofpoint_tap.message_delivered.threat_info_map
436
436
processor :
@@ -441,15 +441,15 @@ processors:
441
441
formats :
442
442
- ISO8601
443
443
ignore_failure : true
444
- if : ctx.proofpoint_tap?.message_delivered?.threat_info_map != null && ctx.proofpoint_tap.message_delivered.threat_info_map instanceof List
444
+ if : ctx.proofpoint_tap?.message_delivered?.threat_info_map instanceof List
445
445
- foreach :
446
446
field : proofpoint_tap.message_delivered.threat_info_map
447
447
processor :
448
448
remove :
449
449
field : _ingest._value.threatTime
450
450
ignore_missing : true
451
451
ignore_failure : true
452
- if : ctx.proofpoint_tap?.message_delivered?.threat_info_map != null && ctx.proofpoint_tap.message_delivered.threat_info_map instanceof List
452
+ if : ctx.proofpoint_tap?.message_delivered?.threat_info_map instanceof List
453
453
- foreach :
454
454
field : proofpoint_tap.message_delivered.threat_info_map
455
455
processor :
@@ -458,7 +458,7 @@ processors:
458
458
target_field : _ingest._value.threat.type
459
459
ignore_missing : true
460
460
ignore_failure : true
461
- if : ctx.proofpoint_tap?.message_delivered?.threat_info_map != null && ctx.proofpoint_tap.message_delivered.threat_info_map instanceof List
461
+ if : ctx.proofpoint_tap?.message_delivered?.threat_info_map instanceof List
462
462
- foreach :
463
463
field : proofpoint_tap.message_delivered.threat_info_map
464
464
processor :
@@ -467,10 +467,10 @@ processors:
467
467
target_field : _ingest._value.threat.url
468
468
ignore_missing : true
469
469
ignore_failure : true
470
- if : ctx.proofpoint_tap?.message_delivered?.threat_info_map != null && ctx.proofpoint_tap.message_delivered.threat_info_map instanceof List
470
+ if : ctx.proofpoint_tap?.message_delivered?.threat_info_map instanceof List
471
471
- remove :
472
472
field : event.original
473
- if : ctx.tags == null || !(ctx.tags. contains('preserve_original_event'))
473
+ if : ctx.tags?. contains('preserve_original_event') != true
474
474
ignore_failure : true
475
475
ignore_missing : true
476
476
- remove :
0 commit comments