Sorry this is probably too late to help you, but maybe it will help others trying to do this: | eval channel=if( srcip . srcport < dstip . dstport,
printf("%s:%s-%s:%s",srcip,srcport,dstip,dstport),
printf("%s:%s-%s:%s",dstip,dstport,srcip,srcport))
| transaction channel What you want to compare is not exactly a 4-tuple but a set of two 2-tuples. Since the directionality is not relevant, we arbitrarily sort the list of two (ip,port) 2-tuples {src, dst} so that the first one is less than the second one.
... View more