--fail is one of the most useful yet underutilized command line options available for rwfilter. In most cases, analysts use --fail when the flows that match a filter, and those that do not match, are of equal importance. That is the case in manifolds, which partition data into meaningful bins according to types of activity.
--fail also becomes useful when listing the flow characteristics we want (e.g. a list of ports) is longer than the list that we don't want. For example, consider trying to filter for all activity except SMTP, HTTP and HTTPS. The list of desired ports would then be:
but that list is much longer than the list of unwanted ports:
So we could formulate the query as a negative (note that we're using --fail instead
We can specify a --pass and a --fail target in the same query. Additionally, we
can specify an --all target that will receive all flows, whether they pass or fail