Skip to main content

Microsoft Sentinel

Microsoft Azure SIEM

Synopsis​

Creates a target that ingests log messages into Microsoft Sentinel workspace tables using Data Collection Rules (DCRs).

Schema​

name: <string>
description: <string>
type: sentinel
pipelines: <pipeline[]>
status: <boolean>
properties:
# Authentication
tenant_id: <string>
client_id: <string>
client_secret: <string>

# Data Collection Rules
rule_id: <string>
endpoint: <string>

# Stream Configuration
stream: <string[]>
streams:
- name: <string>
rule_id: <string>

# Performance & Behavior
buffer_size: <numeric>
keep_phantom_fields: <boolean>
drop_unknown_stream_events: <boolean>
cache:
timeout: <numeric>
format: <string>

Configuration​

The following are the minimum requirements to define the target.

Core Settings​

FieldRequiredDefaultDescription
nameYTarget name
descriptionN-Optional description
typeYMust be sentinel
pipelinesN-Optional post-processor pipelines
statusNtrueEnable/disable the target

Authentication​

FieldRequiredDefaultDescription
tenant_idY*Azure tenant ID (not required with managed identity)
client_idY*Azure client ID (not required with managed identity)
client_secretY*Azure client secret (not required with managed identity)

*Required only when not using managed identity

Stream Configuration​

FieldRequiredDefaultDescription
endpointYDCR ingestion endpoint or Resource ID
rule_idNDefault Data Collection Rule (DCR) ID
streamN-Target table streams (string array)
streamsN-Detailed stream configurations
buffer_sizeN1048576Buffer size in bytes (1MB)
keep_phantom_fieldsNfalseKeep fields not defined in DCR schema
drop_unknown_stream_eventsNfalseSilently drop events for undefined streams
cache.timeoutN300Stream cache timeout in seconds
formatNasimData normalization format

Automatic Table Selection​

When stream is not specified, tables are automatically selected based on input type:

Input TypeTarget Table
Windows Event LogCustom-WindowsEvent
Windows Application LogCustom-WindowsEvent
Windows System LogCustom-WindowsEvent
Windows Security LogCustom-SecurityEvent
SyslogCustom-Syslog
Linux Audit ReportCustom-CommonSecurityLog
Windows Audit ReportCustom-CommonSecurityLog

Available Tables​

Standard Tables (Prefix: Custom-)

WindowsEvent SecurityEvent CommonSecurityLog Syslog

ASim Tables (Prefix: Custom- or Microsoft-)

ASimAuditEventLogs ASimAuthenticationEventLogs ASimDhcpEventLogs ASimDnsActivityLogs ASimFileEventLogs ASimNetworkSessionLogs ASimProcessEventLogs ASimRegistryEventLogs ASimUserManagementActivityLogs

Details​

The target supports automatic table selection, ASim normalization, advanced filtering options, and autodiscovery capabilities.

Data is automatically normalized to the specified format, which is by default: ASim.

Stream configurations are cached for improved performance. Large messages are stored temporarily and retried during finalization.

warning

Large buffer sizes increase memory usage.

Autodiscovery​

Director provides an autodiscovery feature that automatically configures Data Collection Rules and their associated streams.

The required permissions are:

  • For Data Collection Rules

    RoleScope
    Monitoring Metrics PublisherEach DCR with name starting with vmetric
  • For Resource Groups

    RoleScope
    Monitoring ReaderResource Group containing your DCE
warning

Always assign the Monitoring Reader role at the Resource Group level, not at the Subscription level.

The feature uses Resource IDs to discover DCRs and their configurations. It then automatically detects table schemas and validates fields, and prevents phantom fields through schema validation.

Autodiscovery adapts to environment changes automatically.

Examples​

Basic​

Configuration using Resource ID-based autodiscovery:

name: auto_sentinel
type: sentinel
properties:
tenant_id: "00000000-0000-0000-0000-000000000000"
client_id: "00000000-0000-0000-0000-000000000000"
client_secret: "your-client-secret"
endpoint: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/myDCE"

Managed Identity​

Using Managed Identity Authentication instead of App Registration:

name: managed_identity_sentinel
type: sentinel
properties:
endpoint: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/myDCE"

Filtered​

Using specific stream filtering and custom cache timeout:

name: filtered_autodiscovery
type: sentinel
properties:
tenant_id: "00000000-0000-0000-0000-000000000000"
client_id: "00000000-0000-0000-0000-000000000000"
client_secret: "your-client-secret"
endpoint: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/myDCE"
streams:
- name: "Custom-WindowsEvent"
- name: "Custom-SecurityEvent"
cache:
timeout: 300 # 5 minutes
keep_phantom_fields: false
drop_unknown_stream_events: true
warning

Disabling keep_phantom_fields may result in data loss for undefined fields.

warning

Enabling drop_unknown_stream_events silently discards unmatched events.

High-Performance​

Optimization for high-volume ingestion:

name: optimized_sentinel
type: sentinel
pipelines:
- normalization
properties:
tenant_id: "00000000-0000-0000-0000-000000000000"
client_id: "00000000-0000-0000-0000-000000000000"
client_secret: "your-client-secret"
endpoint: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionEndpoints/myDCE"
buffer_size: 5242880 # 5MB
format: "asim"
stream:
- "Custom-ASimProcessEventLogs"
- "Custom-ASimNetworkSessionLogs"
tip

For more details, refer to our Microsoft Sentinel Automation and Microsoft Sentinel Autodiscovery documentation.