[server][REST][event] Use information in events table preferentially

Information in events table will be useful rather than information in
triggers table. For example, events for error logs.

See also #545.