Agent Foskett Academy • Microsoft Sentinel • Module 2 • Lesson 21

Lesson 21 — Microsoft Sentinel Data Collection Rules

Data connectors bring telemetry toward Microsoft Sentinel.

Data Collection Rules define how supported data is collected, processed and routed through Azure Monitor before it reaches its destination.

By understanding DCRs, analysts and engineers can control what data is collected, apply transformations, reduce unnecessary ingestion and build a more deliberate security data pipeline.

Data connectors bring telemetry in. Data Collection Rules control how supported telemetry is collected and processed.
Agent Foskett Microsoft Sentinel Data Collection Rules lesson
What you will learn

This lesson explains how Data Collection Rules shape supported Azure Monitor and Microsoft Sentinel ingestion workflows.

What a DCR is
Azure Monitor Agent and associations
Data sources, flows and destinations
Filtering, transformations and governance

Learning objectives

After completing this lesson, you should understand how Data Collection Rules support Microsoft Sentinel and Azure Monitor data ingestion.

  • Explain what a Data Collection Rule is.
  • Understand Azure Monitor Agent and DCR associations.
  • Recognise data sources, streams, data flows and destinations.
  • Understand ingestion-time filtering and transformations.
  • Apply testing, cost and governance practices.

The problem this solves

Collecting every available event can create unnecessary noise, storage and cost.

DCRs provide a central way to define what supported data should be collected and where it should go.

What is a Data Collection Rule?

A Data Collection Rule, or DCR, is an Azure resource that defines a data collection workflow.

Depending on the scenario, it can specify data sources, streams, transformations, data flows and destinations such as a Log Analytics workspace.

Agent Foskett tip:

A DCR is part of the collection pipeline. It should be treated as controlled infrastructure, not as an undocumented portal setting.

How a DCR fits into Sentinel

Security data source │ ▼ Azure Monitor Agent or supported ingestion method │ ▼ Data Collection Rule │ ├── Select data ├── Identify data stream ├── Apply transformation └── Route data │ ▼ Log Analytics workspace │ ▼ Microsoft Sentinel analytics and investigations

Azure Monitor Agent

Azure Monitor Agent, commonly called AMA, collects supported guest operating system data according to associated Data Collection Rules.

The agent and DCR model replaces older approaches that relied on the legacy Log Analytics agent.

DCR associations

A Data Collection Rule association links a DCR to a resource such as an Azure virtual machine, virtual machine scale set or Azure Arc-enabled server.

The association determines which rule the monitored resource should use.

Data sources

Data sources identify the information being collected.

Examples can include Windows events, Syslog, performance counters and supported custom log scenarios.

Data streams

A stream represents the shape or category of data moving through the collection pipeline.

The DCR uses streams to connect incoming data with transformations and destinations.

Data flows

Data flows describe how one or more streams are sent to a destination.

They can also reference a transformation that filters or modifies incoming records before storage.

Destinations

Destinations define where collected data is sent.

For Microsoft Sentinel workflows, this commonly includes the Log Analytics workspace connected to Sentinel.

Data Collection Endpoints

A Data Collection Endpoint, or DCE, provides endpoints used by specific collection scenarios for configuration access or data ingestion.

Not every DCR workflow requires a dedicated DCE, so the requirement should be confirmed for the selected collection method.

Central management

DCRs are Azure resources that can be deployed and managed centrally.

This supports consistent configuration across groups of servers and makes collection settings easier to audit.

Data connector versus Data Collection Rule

Data connectorData Collection Rule
Provides the Sentinel connection experience for a data source.Defines supported collection, transformation and routing behaviour.
Explains prerequisites and configuration steps.Contains the underlying data collection configuration for applicable workflows.
May create or depend on a DCR.Can be viewed and managed as an Azure resource.
Focuses on bringing a product's telemetry into Sentinel.Focuses on controlling the data pipeline.

Ingestion-time transformations

Transformations use supported KQL logic to filter or modify incoming records before they are stored in the Log Analytics workspace.

This can reduce noise, remove unnecessary records or shape fields for the destination table.

Filtering data

Filtering at ingestion can prevent low-value records from being stored.

Because filtered data is no longer available for later investigation, every exclusion should have a documented reason and testing evidence.

Transforming fields

A transformation can add, remove or modify supported fields before ingestion.

The output must match the expected schema for the destination table.

Workspace transformations

Workspace transformation DCRs provide ingestion-time transformations for supported workflows that do not use a source-specific DCR.

They should be reviewed carefully because they can affect data arriving from multiple sources.

Simple transformation example

DCR transformation example
  1. 1
  2. 2
  3. 3
source
| where SeverityLevel != "Informational"
| project TimeGenerated, Computer, SeverityLevel, Message

This example demonstrates the idea of filtering and shaping incoming records. The actual fields and supported transformation must match the source stream and destination schema.

Cost considerations

DCRs can help reduce unnecessary ingestion by selecting or filtering data before storage.

Cost reduction should never remove telemetry required for detection, compliance, investigations or incident response.

Security coverage

Before excluding a data source or event category, identify the analytics rules, hunting queries and investigations that depend on it.

Lower volume is not useful if critical attack evidence disappears.

Practical DCR deployment workflow

Define the security use case │ ▼ Identify required data sources and events │ ▼ Create or review the DCR │ ▼ Associate the DCR with test resources │ ▼ Confirm data reaches the expected table │ ▼ Validate analytics, hunting and investigation queries │ ▼ Deploy gradually and monitor health, volume and cost

Testing

Test a DCR against controlled resources before broad deployment.

Confirm event coverage, table schema, transformations, ingestion delay and downstream detections.

Troubleshooting

  • Confirm the agent is healthy.
  • Check the DCR association.
  • Review source configuration.
  • Validate the transformation output.
  • Confirm the destination workspace and table.

Change control

DCR changes can affect detection visibility and ingestion cost across many resources.

Use version control, approvals, testing and a rollback plan for production changes.

Ownership

Assign an owner for each production DCR.

The owner should understand the data source, dependent Sentinel content and business reason for the collection settings.

Common mistake

A common mistake is filtering data only because it appears noisy.

Some high-volume events provide essential context during identity, endpoint and lateral movement investigations.

Another common mistake

Do not assume that creating a DCR automatically applies it to every resource.

For agent-based collection, confirm the required associations and resource scope.

Agent Foskett investigation tip

Never optimise away the evidence.

Before filtering telemetry, prove that the data is unnecessary for detections, investigations, compliance and incident reconstruction.

Best practices

  • Start with a defined security use case.
  • Collect only what has operational value.
  • Test transformations with representative data.
  • Document associations, owners and dependencies.
  • Monitor ingestion volume, health and detection impact.

Agent Foskett takeaway

Data Collection Rules give security teams deliberate control over supported Azure Monitor collection workflows.

Good DCR design balances visibility, performance and cost without removing the evidence analysts will need later.

Lesson summary
Data Collection Rules centrally define supported data sources, streams, transformations, data flows and destinations in Azure Monitor. For Microsoft Sentinel, they help control collection, routing, filtering and cost while preserving the telemetry required for detections and investigations.
Sentinel Academy Home

Microsoft Sentinel Data Collection Rules

Data Collection Rules centrally define supported Azure Monitor data sources, streams, transformations, data flows and destinations for Microsoft Sentinel and Log Analytics ingestion workflows.

Microsoft Sentinel Lesson 21

This Agent Foskett Microsoft Sentinel Academy lesson explains DCRs, Azure Monitor Agent, DCR associations, Data Collection Endpoints, ingestion-time transformations, cost management, testing and security data governance.