API Analytics - Live Event Log

This guide assumes you are familiar with API Analytics already. If not, please review the Introduction to Event Analytics first.

The Events Stream enables you to filter on both API Calls and Actions in real-time and tail the filtered streams. You can narrow between API calls and Actions using the field Event Type.

API Calls

API Calls are logged from a Moesif server integration for popular API gateways and API frameworks. With the live event log, you can filter API calls by a variety of API fields like URI route, query parameters, HTTP headers, and body fields.

Filtering API logs

Moesif also analyzes HTTP text payloads like JSON and XML enabling you to filter on specific keys and values. Binary content-types such as octet-stream will be displayed in binary format.


Actions represents an action a customer made in your UI such as “Signed-In” or “Viewed-Docs”. These can be tracked using a client integration. You can filter user actions by their Action Name or custom event metadata that is stored with the action.

Filtering user actions

Event log actions

Event log actions

You can select a group of specific events using the checkboxes. Once selected, you can perform actions on the selected events such as viewing a timing trace or replaying the API calls.

Plotting events on timeline chart

You can select a group of events (marking the checkboxes next to each event) and plot on a timeline chart. Select Show Timeline Chart menu option under the XX Selected button. Moesif has found its very useful to filter on user_id or session_token and then plot the timeline so you can see the API calls relevant for a particular user.

Plotting events on a timeline chart

Comparing two API calls

To compare two API calls, select Diff 2 Events from the selection drop down. Moesif will show you a left and right side and mark the additions and subtractions in green/red. Moesif will diff the entire HTTP request/response including HTTP headers and any JSON body to aid in debug investigation.

Compare two API calls

Save/Share logs

You can share the event log to a dashboard of your choice. Your able to save the chart privately, or share with the rest of your team members (default option). Log streams saved to your dashboard are updated in real-time.

Sharing API calls

In addition, you can securely share specific events with external partners or customers without exposing all your API data via Public Links. To do so, ensure you have the right filters applied such as a specific user_id or a specific set of events, then go to the Public tab after clicking the share button. For more information, view workspace documentation.