Visitors in Real-time not working after upgrade to 3.1

I had the same issue, I activated Events plugin and the visitor log started to work. Maybe this will help others to fix the issue. Here’s error message so others can find it: unknown column ‘log_action_event_category.type’ in ‘field list’