Closed joschi closed 6 years ago
@joschi Are there any specific use cases for this? I was wondering if we really need all of those since we don't really support list data types yet.
since we don't really support list data types yet.
As a matter of fact, Graylog does support (although more by accident than planned) arrays but users have no possibility to manipulate those in a pipeline rule (or anywhere else in the product).
I'm sure there was a trigger for creating this PR in the first place on IRC or in the discussion forums, but I'm unable to come up with it.
Feel free to close the PR if you don't want to merge it.
This change set adds several list-related functions to the pipeline processor:
list_contains()
list_contains_all()
list_is_empty()
list_size()
list_index_of()
list_last_index_of()
list_add()
list_add_all()
list_remove()
list_remove_at()
list_remove_all()
list_retain_all()
list_reverse()
sub_list()