Anyone have any thoughts as to how to reorder a multi-valued field? Ideally I'd like to be able to do a "sort" or in my specific use case, a "reverse" would be perfect.
Say you have the following search:
my search | stats list(myfield) as myfields by id
The list()
stats operator preserves all values of "myfield" in the events and preserves order, which is what I want. However, I'd really like to see the values of "myfield" in time order (not reverse time order.) I know I can stick a | reverse
in there, but I was trying to figure out if there was a better approach that only modifies the "myfields" field, and doesn't require screwing with event order.
(In my non-trivial version of this search, I'm using a transaction
command as well, and it has issues when you start messing with time-order. That's just one example of why re-ordering the events is not ideal.)