Normally this is a problem you need to solve at the source. Do you hear the hiss from the amp when you're not recording from it? If so, it might be necessary to turn the gain down, with obvious implications for your tone sadly. Or do you only hear it when recording? That implies a problem with the signal chain, perhaps in how you're connecting things up. (eg. If you're recording into a Microphone In socket, that adds extra amplification and therefore more hiss.)
I suggest you tell us your whole signal chain, from pedals to amp (to microphone?) to cables to interface to computer to Sonar, and we might have some ideas.