Go to the YTOG in my signature below, down load the manual for your machine for FREE.
This will tell you the filter location in the diagrams and even the filter part numbers.
YANMAR YM2310 PARTS MANUAL NPC-1181.pdf
And this site has a Yanmar vintage section for your machine here,