How do i handle an array ? #10726
-
Hi there,
|
Beta Was this translation helpful? Give feedback.
Answered by
spencergilbert
Jan 5, 2022
Replies: 1 comment 4 replies
-
If I understand correctly you'd want to use if exists(.source.ip) {
.related.ip = push(.related.ip, .source.ip)
}
if exists(.destination.ip) {
.related.ip = push(.related.ip, .destination.ip)
} |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
spencergilbert
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I understand correctly you'd want to use
append
orpush
.