Trap Alert/Filter Variables question

This is a general how-to question regarding whether or not solarwinds has the ability to pull out a specific section of the $Message instead of the entire message when logging the trap to a log file for example.  When I use the default $Message, all of the OID info including the trap message (basically everything I see in the trap viewer) is written to the log file.  Just wondering if there was a defined variable or way to filter out all the junk and just get the Trap message that was sent by the device.

Thanks for anyones input on this.