CRS317-1G-16 Mirroring question

Hi all,
We’re mirroring a port to another port on a crs317. We’d like to only mirror the udp packets from the primary port. Is there a way to do this? Adding rules for allowing udp or denying tcp did not give the expected result.