Real-Time Intelligence tutorial part 2: Get data in the Real-Time hub

Note

This tutorial is part of a series. For the previous section, see: Tutorial part 1: Create resources.

In this part of the tutorial, you browse the Real-Time hub, create an event stream, transform events, and create a destination to send the transformed events to a KQL database.

Create an event stream

  1. From the navigation bar, select Real-Time hub.

  2. Select + Add source.

    Screenshot of Real-time hub with get events highlighted.

  3. The Add source pane opens. Select Sample data.

Sample data

  1. In Source name, enter TutorialSource.
  2. In Sample data select Bicycles (Reflex compatible).

Stream details

  1. Edit the Eventstream name by selecting the pencil icon and entering TutorialEventstream.
  2. Select Next.

Screenshot of connect window in Real-Time hub.

Review and create

  1. Review the event stream details and select Create source.

    A new event stream named TutorialEventstream is created.

Transform events

  1. Select Open Eventstream from the notification that appears after creating the event stream, or browse to the event stream from the Real-time hub and select Open Eventstream.

  2. From the menu ribbon, select Edit. The authoring canvas, which is the center section, turns yellow and becomes active for changes.

  3. In the event stream authoring canvas, select the down arrow on the Transform events or add destination tile.

  4. Select Manage fields. The tile is renamed to Manage_fields.

  5. Select the pencil icon on the Manage_fields tile.

  6. In the Manage fields pane, do the following actions:

    1. In Operation name, enter TutorialTransform.
    2. Select Add all fields
    3. Select + Add field.
    4. From the Field dropdown, select Built-in Date Time Function > SYSTEM.Timestamp()
    5. In Name, enter Timestamp.
    6. Select Add.

    Screenshot showing the system timestamp selected in the event stream manage fields tile in Real-Time Intelligence.

  7. Select Save.

    The TutorialTransform tile now displays but with an error, because the destination isn't set.

Create a destination

  1. Hover over the right edge of the TutorialTransform tile and select the green plus icon.

  2. Select Destinations > Eventhouse.

    A new tile is created entitled Eventhouse.

  3. Select the pencil icon on the Eventhouse tile.

  4. Enter the following information in the Eventhouse pane:

    Screenshot showing the Eventhouse destination pane in Real-Time Intelligence.

    Field Value
    Destination name TutorialDestination
    Workspace Select the workspace in which you created your resources.
    Eventhouse Tutorial
    KQL Database Tutorial
    Destination table Create new - enter TutorialTable as table name
    Input data format Json
  5. Ensure that the box Activate ingestion after adding the data is checked.

  6. Select Save.

  7. From the menu ribbon, select Publish.

The event stream is now set up to transform events and send them to a KQL database.

For more information about tasks performed in this tutorial, see:

Next step