Modifier

Partager via


Get OneLake events in Fabric Real-Time hub (preview)

This article describes how to get OneLake events as an eventstream in Fabric Real-Time hub.

Real-Time hub allows you to discover and subscribe to changes in files and folders in OneLake, and then react to those changes in real-time. For example, you can react to changes in files and folders in Lakehouse and use Data Activator alerting capabilities to set up alerts based on conditions and specify actions to take when the conditions are met. This article explains how to explore OneLake events in Real-Time hub.

With Fabric event streams, you can capture these OneLake events, transform them, and route them to various destinations in Fabric for further analysis. This seamless integration of OneLake events within Fabric event streams gives you greater flexibility for monitoring and analyzing activities in your OneLake.

Event types

Here are the supported OneLake events:

Event type name Description
Microsoft.Fabric.OneLake.FileCreated Raised when a file is created or replaced in OneLake.
Microsoft. Fabric.OneLake.FileDeleted Raised when a file is deleted in OneLake.
Microsoft. Fabric.OneLake.FileRenamed Raised when a file is renamed in OneLake.
Microsoft.Fabric.OneLake.FolderCreated Raised created when a folder is created in OneLake.
Microsoft. Fabric.OneLake.FolderDeleted Raised when a folder is deleted in OneLake.
Microsoft. Fabric.OneLake.FolderRenamed Raised when a folder is renamed in OneLake.

For more information, see Explore OneLake events.

Note

Consuming Fabric and Azure events via eventstream or Fabric Activator is not supported if the capacity region of the eventstream or Activator is in the following regions: Germany West Central, South-Central US, West US2, West US3, West India.

Prerequisites

  • Access to a workspace in the Fabric capacity license mode (or) the Trial license mode with Contributor or higher permissions.

Create streams for OneLake events

You can create streams for OneLake events in Real-Time hub using one of the ways:

Data sources page

  1. Sign in to Microsoft Fabric.

  2. Select Real-Time on the left navigation bar.

  3. On the Real-Time hub page, select + Data sources under Connect to on the left navigation menu. You can also get to the Data sources page from All data streams or My data streams pages by selecting the + Connect data source button in the top-right corner.

    Screenshot that shows how to launch Connect to data source experience.

  1. On the Data sources page, select OneLake events category at the top, and then select Connect on the OneLake events tile. You can also use the search bar to search for OneLake events.

    Screenshot that shows the Get events page with OneLake events selected.

    Now, use instructions from the Configure and create an eventstream section.

Fabric events page

In Real-Time hub, select Fabric events on the left menu. You can use either the list view of Fabric events or the detail view of OneLake events to create an eventstream for OneLake events.

Using the list view

Move the mouse over OneLake events, and select the Create Eventstream link or select ... (Ellipsis) and then select Create Eventstream.

Screenshot that shows the Real-Time hub Fabric events page.

Using the detail view

  1. On the Fabric events page, select OneLake events from the list of Fabric events supported.

  2. On the Detail page, select + Create eventstream from the menu.

    Screenshot that shows the detail page for OneLake events.

    Now, use instructions from the Configure and create an eventstream section, but skip the first step of using the Add source page.

Configure and create an eventstream

  1. On the Connect page, for Event types, select the event types that you want to monitor.

    Screenshot that shows the selection of OneLake event types on the Connect page.

  2. This step is optional. To see the schemas for event types, select View selected event type schemas. If you select it, browse through schemas for the events, and then navigate back to previous page by selecting the backward arrow button at the top.

  3. Select Add a OneLake source under Select data source for events.

    Screenshot that shows the selection the Add a OneLake source button.

  4. On the Choose the data you want to connect page:

    1. View all available data sources or only your data sources (My data) or your favorite data sources by using the category buttons at the top. You can use the Filter by keyword text box to search for a specific source. You can also use the Filter button to filter based on the type of the resource (KQL Database, Lakehouse, SQL Database, Warehouse). The following example uses the My data option.

    2. Select the data source from the list.

    3. Select Next at the bottom of the page.

      Screenshot that shows the selection of a specific OneLake data source.

  5. Select all tables or a specific table that you're interested in, and then select Add.

    Screenshot that shows the selection of all tables.

    Note

    OneLake events are supported for data in OneLake. However, events for data in OneLake via shortcuts are not yet available.

  6. Now, on the Configure connection settings page, you can add filters to set the filter conditions by selecting fields to watch and the alert value. To add a filter:

    1. Select + Filter.

    2. Select a field.

    3. Select an operator.

    4. Select one or more values to match.

      Screenshot that shows the addition of a filter.

  7. In the Stream details section to the right, follow these steps.

    1. Select the workspace where you want to save the eventstream.
    2. Enter a name for the eventstream. The Stream name is automatically generated for you.
  8. Then, select Next at the bottom of the page.

    Screenshot that shows the selection of the Next button.

  9. On the Review + connect page, review settings, and select Connect.

    Screenshot that shows the Review and create page.

  10. When the wizard succeeds in creating a stream, use Open eventstream link to open the eventstream that was created for you. Select Finish to close the wizard.

    Screenshot that shows the Review and create page with links to open the eventstream.

View stream from the All data streams page

  1. In Real-Time hub, select My data streams or All data streams.

  2. Confirm that you see the stream you created.

    Screenshot that shows data stream in the My data streams page.

To learn about consuming data streams, see the following articles: