@@ -34,12 +34,15 @@ processors:
34
34
ignore_missing : true
35
35
- script :
36
36
lang : painless
37
- if : ctx.json?.header?.time_seconds_epoch != 0
37
+ if : ctx.json?.header?.time_seconds_epoch != null && ctx.json.header.time_seconds_epoch != 0
38
38
source : |
39
- ctx.json.time_milliseconds = (long)ctx.json?.header?.time_seconds_epoch * 1000 + (long)ctx.json?.header?.time_milliseconds_offset;
39
+ ctx.json.time_milliseconds = (long)ctx.json.header.time_seconds_epoch * 1000;
40
+ if (ctx.json?.header?.time_milliseconds_offset != null && ctx.json.header.time_milliseconds_offset != 0) {
41
+ ctx.json.time_milliseconds = ctx.json.time_milliseconds + (long)ctx.json.header.time_milliseconds_offset;
42
+ }
40
43
- date :
41
44
field : json.time_milliseconds
42
- if : ctx.json?.time_milliseconds != 0
45
+ if : ctx.json?.time_milliseconds != null && ctx.json.time_milliseconds != 0
43
46
formats :
44
47
- UNIX_MS
45
48
on_failure :
@@ -281,82 +284,82 @@ processors:
281
284
value : authentication
282
285
- pipeline :
283
286
name : ' {{ IngestPipeline "pipeline_aue_accept" }}'
284
- if : ctx.event? .action == 'aue_accept'
287
+ if : ctx.event.action == 'aue_accept'
285
288
- pipeline :
286
289
name : ' {{ IngestPipeline "pipeline_aue_auth" }}'
287
- if : ' ["aue_auth_user", "aue_ssauthorize", "aue_ssauthmech"].contains(ctx.event? .action)'
290
+ if : ' ["aue_auth_user", "aue_ssauthorize", "aue_ssauthmech"].contains(ctx.event.action)'
288
291
- pipeline :
289
292
name : ' {{ IngestPipeline "pipeline_aue_bind_and_aue_connect" }}'
290
- if : ' ["aue_bind", "aue_connect"].contains(ctx.event? .action)'
293
+ if : ' ["aue_bind", "aue_connect"].contains(ctx.event.action)'
291
294
- pipeline :
292
295
name : ' {{ IngestPipeline "pipeline_aue_chdir" }}'
293
- if : ctx.event? .action == 'aue_chdir'
296
+ if : ctx.event.action == 'aue_chdir'
294
297
- pipeline :
295
298
name : ' {{ IngestPipeline "pipeline_aue_chroot" }}'
296
- if : ctx.event? .action == 'aue_chroot'
299
+ if : ctx.event.action == 'aue_chroot'
297
300
- pipeline :
298
301
name : ' {{ IngestPipeline "pipeline_aue_execve" }}'
299
- if : ctx.event? .action == 'aue_execve'
302
+ if : ctx.event.action == 'aue_execve'
300
303
- pipeline :
301
304
name : ' {{ IngestPipeline "pipeline_aue_exit" }}'
302
- if : ctx.event? .action == 'aue_exit'
305
+ if : ctx.event.action == 'aue_exit'
303
306
- pipeline :
304
307
name : ' {{ IngestPipeline "pipeline_aue_kill" }}'
305
- if : ctx.event? .action == 'aue_kill'
308
+ if : ctx.event.action == 'aue_kill'
306
309
- pipeline :
307
310
name : ' {{ IngestPipeline "pipeline_aue_mount" }}'
308
- if : ctx.event? .action == 'aue_mount'
311
+ if : ctx.event.action == 'aue_mount'
309
312
- pipeline :
310
313
name : ' {{ IngestPipeline "pipeline_aue_posix_spawn" }}'
311
- if : ctx.event? .action == 'aue_posix_spawn'
314
+ if : ctx.event.action == 'aue_posix_spawn'
312
315
- pipeline :
313
316
name : ' {{ IngestPipeline "pipeline_aue_remove_from_group_and_aue_mac_set_proc" }}'
314
- if : ' ["aue_remove_from_group", "aue_mac_set_proc"].contains(ctx.event? .action)'
317
+ if : ' ["aue_remove_from_group", "aue_mac_set_proc"].contains(ctx.event.action)'
315
318
- pipeline :
316
319
name : ' {{ IngestPipeline "pipeline_aue_session" }}'
317
- if : ' ["aue_session_end", "aue_session_update", "aue_session_close", "aue_session_start"].contains(ctx.event? .action)'
320
+ if : ' ["aue_session_end", "aue_session_update", "aue_session_close", "aue_session_start"].contains(ctx.event.action)'
318
321
- pipeline :
319
322
name : ' {{ IngestPipeline "pipeline_aue_arguments" }}'
320
- if : ' ["aue_setsockopt", "aue_shutdown"].contains(ctx.event? .action)'
323
+ if : ' ["aue_setsockopt", "aue_shutdown"].contains(ctx.event.action)'
321
324
- pipeline :
322
325
name : ' {{ IngestPipeline "pipeline_aue_ssauthint" }}'
323
- if : ctx.event? .action == 'aue_ssauthint'
326
+ if : ctx.event.action == 'aue_ssauthint'
324
327
- pipeline :
325
328
name : ' {{ IngestPipeline "pipeline_aue_tasknameforpid" }}'
326
- if : ctx.event? .action == 'aue_tasknameforpid'
329
+ if : ctx.event.action == 'aue_tasknameforpid'
327
330
- pipeline :
328
331
name : ' {{ IngestPipeline "pipeline_aue_unmount" }}'
329
- if : ctx.event? .action == 'aue_unmount'
332
+ if : ctx.event.action == 'aue_unmount'
330
333
- pipeline :
331
334
name : ' {{ IngestPipeline "pipeline_aue_fork" }}'
332
- if : ctx.event? .action == 'aue_fork'
335
+ if : ctx.event.action == 'aue_fork'
333
336
- pipeline :
334
337
name : ' {{ IngestPipeline "pipeline_identity_object" }}'
335
- if : ' ["aue_getauid", "aue_lw_login", "aue_settimeofday"].contains(ctx.event? .action)'
338
+ if : ' ["aue_getauid", "aue_lw_login", "aue_settimeofday"].contains(ctx.event.action)'
336
339
- pipeline :
337
340
name : ' {{ IngestPipeline "pipeline_aue_listen" }}'
338
- if : ctx.event? .action == 'aue_listen'
341
+ if : ctx.event.action == 'aue_listen'
339
342
- pipeline :
340
343
name : ' {{ IngestPipeline "pipeline_aue_logout" }}'
341
- if : ctx.event? .action == 'aue_logout'
344
+ if : ctx.event.action == 'aue_logout'
342
345
- pipeline :
343
346
name : ' {{ IngestPipeline "pipeline_aue_pidfortask" }}'
344
- if : ctx.event? .action == 'aue_pidfortask'
347
+ if : ctx.event.action == 'aue_pidfortask'
345
348
- pipeline :
346
349
name : ' {{ IngestPipeline "pipeline_aue_ptrace" }}'
347
- if : ctx.event? .action == 'aue_ptrace'
350
+ if : ctx.event.action == 'aue_ptrace'
348
351
- pipeline :
349
352
name : ' {{ IngestPipeline "pipeline_aue_setpriority" }}'
350
- if : ctx.event? .action == 'aue_setpriority'
353
+ if : ctx.event.action == 'aue_setpriority'
351
354
- pipeline :
352
355
name : ' {{ IngestPipeline "pipeline_aue_socketpair" }}'
353
- if : ctx.event? .action == 'aue_socketpair'
356
+ if : ctx.event.action == 'aue_socketpair'
354
357
- pipeline :
355
358
name : ' {{ IngestPipeline "pipeline_aue_taskforpid" }}'
356
- if : ctx.event? .action == 'aue_taskforpid'
359
+ if : ctx.event.action == 'aue_taskforpid'
357
360
- pipeline :
358
361
name : ' {{ IngestPipeline "pipeline_aue_wait4" }}'
359
- if : ctx.event? .action == 'aue_wait4'
362
+ if : ctx.event.action == 'aue_wait4'
360
363
on_failure :
361
364
- set :
362
365
field : event.kind
0 commit comments