For ticket creation, you can check 2 things:
* The log_agent field, which holds the creator of the ticket, and it's similar to other contact fields on the ticket
* The created_via field, which should show how the ticket was created (web, mail, web services, etc)
For activity logs, check the analyst field, which holds the reference to the contact that created the Activity log.