Depending on size, the non-filler output should not be more than a gold chest or three in size. Filler would be dirt, gravel, sand, cobblestone.
Have all output delivered to a chest attached to a Sorting Machine. The other four three sides each have a Filter set to Dirt, Gravel, Sand, or...