Configuring Microsoft Azure Monitor destinations

You can send data from Connect to Microsoft Azure Monitor. The Azure Monitor destination uses the Logs Ingestion API found within Azure Monitor to send data to Log Analytics Workspace tables. You can choose to send all the data to Azure in a single batch or in multiple segments.

For more information, see Microsoft Azure documentation: Logs Ingestion API in Azure Monitor.

Note: Configure a network allow list rule for the Ingestion Endpoint URL. To find the Logs Ingestion URL, open Azure Portal and go to Azure Portal > Monitor > Data Collection Endpoints.
Note: The Azure Monitor destination also authenticates with Microsoft Entra using the Azure App Registration client credentials, which requires a network egress allow list rule for the Microsoft Entra token endpoint: login.microsoftonline.com:443 for commercial Azure tenants or login.microsoftonline.us:443 for Azure Government tenants.

Microsoft Azure requirements

  • Microsoft Azure App Registration (Client ID, Client Secret, Tenant ID)

  • Azure Monitor Logs Ingestion URL

  • Data Collection Rule (DCR) with a custom stream

Specify general connection information

  1. From the Main menu, go to Modules > Connect > Overview. Go to the Connections section and click Create Connection.
  2. Enter a name and description for the connection.
  3. (Optional) In the General Information section, expand Advanced to configure the following settings:
    Log Level

    By default, Log Level is set to Information. To reduce the amount of logging, you can set Log Level to Warning, Error, or Fatal.

    Example Log Level setting
    Override Log Level

    If you are debugging the connection, select Override Log Level to set a Temporary Log Level (such as Trace or Debug) on this connection for a selected Number of Runs (up to 24). A scheduled or manual connection run, once started, counts towards the number of runs, regardless of the connection status. After the number of runs elapses, the logging for this connection returns to the Log Level you selected to prevent finer-grained logging from consuming additional resources for an indefinite number of runs.

    Minimum Pass Percentage

    Minimum percentage of the expected rows that must be processed for the connection to succeed.

    Memory Ceiling (GB)

    Maximum memory for the node process to run the connection. This defaults to 1 GB per connection, and cannot exceed the global maximum sum of memory for all running connections (by default, 8 GB). Increase this setting if a connection frequently exhibits out of memory errors while running.

    Note: If the sum of simultaneously scheduled connection Memory Ceiling values exceed the global Memory Ceiling, connections run until the global Memory Ceiling is reached, then any remaining connections enter a waiting queue if you select the Queue Connections configuration setting, or fail if you clear the Queue Connections configuration setting.

Configure the connection source

The connection source determines what data you are sending to the destination. This data is usually information from Tanium, such as a saved question, question log, client status, or event. The settings vary depending on which source you choose.

For more information about available connection sources, see Connection sources.

Figure 1. Connection source settings
Connection source settings
Note:

If a Tanium solution or source shows Critical state-critical, the installed solution does not meet the minimum required version for proper compatibility and functionality. Upgrade the solution to the minimum required version or later.

Note: After you create a connection, you cannot update the connection source type, only the source configuration. If you want to change the source type, create a new connection.

Configure the Microsoft Azure Monitor destination

Specify the Microsoft Azure Monitor settings for the Azure instance to which you want to send data.

Note: After you create a connection, you cannot update the connection destination type, only the destination configuration. If you want to change the destination, create a new connection.
Note: Individual field values in a row are limited to 32 KB. Values exceeding that limit are truncated to 32 KB.
  1. Select Azure Monitor for the destination and then provide a name for the destination.
    • Create a new destination: Specify a unique name to save the configuration information as a new destination. Select New and then enter a Destination Name.

    • Copy an existing destination: Select New, and then click Copy Settings. Select a destination, click Apply, and update the Destination Name.

    • Reuse an existing destination: Select Existing, and then select a Destination Name.

      Note: Configure a unique destination per connection. If you edit the settings for a shared destination for one connection, any other connections that use the shared destination are affected, and connection runs might fail.
    Example Connect configuration for a Microsoft Azure Monitor destination
  2. Enter the Microsoft Azure App Registration Tenant ID in the Tenant ID field. For more information about how to find the tenant ID, see Microsoft Azure documentation: Find your Microsoft Entra tenant.
    Note: Microsoft Entra ID was previously known as Microsoft Azure Active Directory or Microsoft Azure AD.
  3. Enter the Microsoft Azure App Registration (Client) ID in the Client ID field.
  4. Enter the Microsoft Azure App Registration Client Secret in the Client Secret field.
    Important: Be sure to provide the value of the client secret, and not the ID. The value only appears when you add the secret in the Microsoft Entra admin center and does not appear again. For more information, see Microsoft Entra documentation: Add a client secret.
  5. Specify Data Collection Configuration settings:
    1. Enter the Logs ingestion URL in the Logs Ingestion URL field. To find the Logs Ingestion URL, open Azure Portal and go to Azure Portal > Monitor > Data Collection Endpoints.
    2. Enter the Data Collection Rule (DCR) immutable ID in the Data Collection Rule Immutable ID field. You can find the DCR Immutable ID on the Overview tab of the DCR in Microsoft Azure.
      Note: The DCR Immutable ID is in the format dcr- + 32 hex characters. For example, dcr-0123456789abcdef0123456789abcdef is a valid DCR Immutable ID.
    3. Enter your DCR Stream Name in the Stream Name field. You can find the DCR Stream Name in the DCR JSON view.
      Note: The DCR Stream Name is in the format Custom-DCR Stream Name. For example, Custom-MyTable is a valid DCR Stream Name.
    Sample Azure Monitor Data Collection Configuration settings
  6. If you need to configure a custom batch size, expand Advanced.
    • Enter a Batch Size for the maximum number of records per post. The default Batch Size is 500.

      Note: Each request is limited to 30 MB.

For more information, see the following articles:

Configure filters

(Optional) In the Configure Output > Filters section, you can specify filters to modify the data that you are getting from your connection source before it is sent to the destination.

For more information about the types of filters you can configure, see Reference: Filtering options.

Format data for Microsoft Azure Monitor

You must send your file in JSON format, as listed in Reference: Format types.

Important: The Microsoft Azure Logs Ingestion API cannot support source columns with more than one space.
  • Example of unsupported spacingComputer Serial Number

  • Valid exampleComputerSerial Number

  • Valid exampleComputer SerialNumber

  • Valid exampleComputerSerialNumber

Important: Select Generate Document and clear Wrap data with source to properly structure the JSON file for Microsoft Azure. Connection runs fail if you do not properly structure the JSON file.
Note: Azure Monitor table column names are limited to a maximum of 45 characters.

In the Configure Output > Columns section, you can change the Destination Label of each column and Value Type to force the column to be a String, Numeric, or Date/Time value.

Figure 2. Columns section with Destination Label and Value Type fields
Columns section with Destination Label and Value Type fields

If you choose Numeric for the value, you can specify a default value that is used if the data cannot be coerced into a numeric value. You can specify any negative or positive number.

If you choose Date/Time for the value, specify the format that you want to use for the column. For more information about how to use a variable, see Time stamp variables.

For more information about column customizations, see Reference: Column customizations.

Schedule the connection

Connections can run at a highly configurable time interval, such as multiple times per hour, day, week, or month.

Important: Connections scheduled to run during an upgrade of Connect, or any Tanium solution configured as a connection source, might be interrupted or fail. Schedule your connections to run at a different time than your Tanium upgrades.
Note: If you do not enable the schedule, the connection only runs when you manually run it, unless you configure an Event source. Connections with Event sources only run when a configured event is detected, and cannot be scheduled or manually run.

Use the Schedule section to update the schedule:

  • Select Enable schedule.

  • In the Schedule Type, select Basic to build a schedule with the provided controls.

    Example connection schedule settings
  • To view or edit the cron expression directly, select Advanced - Define as a Cron Expression, and use the Advanced field to edit the cron expression.

    Example cron settings
Note: If a user that owns a scheduled connection is deleted, future scheduled instances of that connection do not run. For more information, see Issue: Scheduled connection owned by a deleted user no longer runs.

For more information about cron syntax, see Reference: Cron syntax for Connect.

Enable listening for an event

Connections with Event sources only run when a configured event is detected, and cannot be scheduled or manually run.

Use the Enablement section to send data when a configured event is detected:

  • Select Listen for this Event.

Save and verify connection

  1. After you enter the details for the connection, click Save.
    Tip: To save the connection and immediately run the connection, click Run and Save.

    If needed, resolve any errors or missing information. After the connection creates successfully, the connection details appear.

  2. To view details when the connection runs, click the Logs tab.
  3. To view an individual run log, expand the row table. For more information about how to resolve errors, see Troubleshooting.
Note: After a connection run successfully completes, it may take several minutes or more for Azure Monitor to populate the destination table with the data.
Note: To find the data in Microsoft Azure, open Azure Portal, go to Azure Portal > Workspace > Logs, and query your table name.