What is the process to get Email Logs and SMS logs ?

What is the process to get Email Logs and SMS logs ?

Plz raise the Query in CRM along with period for which you need email logs and sms logs.