Where does this wire go? Found under oil filter.

If you want to be certain, just ground the wire and see what dash light comes on
Never just ground a wire. Check for voltage on the wire first.

Others have suggested using a test light for this type of testing so you do not fry any wires.

It would be best for you to get a wiring diagram and trace it out by color and location.