Parsing User Agent

I want to create new field for user agent using scripted fields because the user agent is in full_log. Can someone help me how to can i separate it?