You have to set the trace levels to debugging(default level is error) in your CUCM serviceability page and you can also choose the component you would like to have trace on in your Trace settings configuration page.
Once this is done, you login to your RTMT and navigate to Trace and Log Central and click on Collect Files