Real-time Analytics - Event Search Query panel
This tutorial illustrates how to use the Event Search Query panel.
Along with other tools for monitoring event flow, PlayFab often exposes the Event Search Query panel, that allows you to filter events by different properties.
On the primary screen shown below:
- The Event Search Query field allows you to enter query expressions for filtering.
- The Run Query button will reload the entire event flow to match all the Query parameters.
- The Query Tips button opens a small how-to guide on using Queries and Query Builder.
- The Auto-refresh checkbox will automatically reload the event flow every 10 seconds.
- The Query Builder button expands the Query Panel (the area in the image outlined in green), and gives access to advanced Query and Graph settings.
- The Event Name field lets you filter by a concrete Event Name.
- The Start date allows you to set the earliest date.
- The End date allows you to set the latest date.
- The Sum by field is a Graph Options setting that allows you to set the metric for the vertical axis. By default, the Event Total Amount is used.
- The Distinct on field is a Graph Options setting that allows you to change the grouping of the events. By default, events are grouped by Name.
Powered by Azure Data Explorer
Event search is powered by Azure Data Explorer - a fast and highly scalable data exploration service for log and telemetry data providing fast indexing and querying on large, diverse data sets. For optimized queries, the engine can query millions of records in a few seconds - a demonstrable benefit for games producing high throughput or large volumes of gaming events.
The Event Search Query field allows you to enter query expressions using a powerful SQL-like query language that's optimized for ad-hoc data exploration and analytics. This SQL like query language is called Kusto and its documentation can be accessed in the Azure Data Explorer reference documentation.
Tips and tricks
- The Query Builder panel (the area in the image outlined in green), offers help with user input:
- Date settings have Calendar buttons (to their right), that open a date-picker pop-up.
- Graph Options support auto-complete for Property Names.
- When a Search Query is specified, the Clear Query button will be available to quickly reset all settings.
- Changing the Event Name, Start date, or End date settings will replace the current Event Search Query (as of April 18th 2017).
- The Sum by field setting allows you to visualize different metrics using a vertical axis other than Event count. A common use case is a set of Purchase Events, summed by the Currency amount.
- By default, Events are grouped by Time and then by Name. While Time grouping is mandatory, the Distinct on field setting allows you to change how Events are grouped inside one Time interval.