The contextual label that tells a detection engine what kind of telemetry a rule expects. In Sigma-style content, logsource is what constrains translation and matching so a process-creation rule is not applied to unrelated event types or domains.
Expanded Definition
Logsource is the metadata that narrows a detection rule to the telemetry family, product, or event domain it can meaningfully match. In Sigma-style rules, it acts as a translation guardrail so a rule written for Windows process creation, for example, is not applied to network flow logs or cloud audit events where the fields and semantics differ.
The term is used most often in detection engineering, where rule portability depends on the source context being explicit. It is not the same as the raw log itself, the parser, or the backend query language. A common boundary mistake is treating logsource as a minor label rather than part of the rule’s logic. In practice, it protects both accuracy and maintainability by keeping detections tied to the event types they were designed for.
Guidance versus consensus: most teams agree that logsource should be precise, but there is not full consensus on how narrowly it should be scoped. Some environments prefer platform-level grouping, while others use more specific product or service tags to reduce false translation.
Examples and Use Cases
Logsource appears wherever a detection rule must be translated across heterogeneous telemetry without losing its intended meaning.
- A rule for suspicious process creation may declare a Windows event log source so it is only compiled for process execution telemetry.
- A cloud audit rule may use a provider-specific logsource so the same detection logic can be mapped to the correct API activity stream.
- A Linux authentication rule may constrain matching to syslog-derived identity events rather than application logs that happen to contain usernames.
- A SOC content pipeline may group rules by logsource to route them to the right parser, test harness, or deployment target.
- A detection engineer may split a broad use case into multiple logsource-specific rules when field names and event semantics differ too much for one portable expression.
The main trade-off is specificity versus reuse: tighter logsource definitions improve fidelity, but overly narrow scoping can reduce portability and increase content maintenance. When telemetry is inconsistent across estates, the logsource choice often determines whether a rule can be reliably translated at all.
Security Implications
Mislabelled or overly broad logsource values can cause a detection rule to land on the wrong telemetry, where fields do not exist or mean something different. That creates false negatives, noisy false positives, or silent translation failures that are hard to spot during review.
The operational consequence is usually not a single broken alert, but a wider content-quality problem: detection coverage appears present on paper while the backend rule never matches the intended events. In mature environments, this can distort validation results, complicate tuning, and hide gaps in coverage for endpoint, identity, or cloud activity. It can also lead analysts to trust detections that are functionally unfit for the data source they were compiled against.
A practical signal to watch for is a rule that performs well in one backend but degrades sharply after translation, which often indicates the logsource scope and the real telemetry shape are out of alignment.
Domain and Governance Relevance
Logsource matters because detection content is only as reliable as the telemetry context attached to it. Governance starts with disciplined source classification: teams need a consistent way to name, scope, and review logsource values so rule authors, content translators, and analysts are working from the same assumptions.
In identity-rich environments, the choice becomes especially important because authentication, authorization, and NHI activity may be split across multiple telemetry families. If service-account or workload logs are grouped too loosely, detections can miss machine-identity abuse or mix it with unrelated application noise. For that reason, logsource is a control point for coverage, not just a documentation tag.
For NHIMG readers, the key question is whether the source label accurately reflects the security domain the rule depends on. When it does, detections are more portable, testable, and auditable across SIEM, SOAR, and content engineering workflows.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK and OWASP Non-Human Identity Top 10 address the attack and risk surface, while CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1059 — Command and Scripting Interpreter | Logsource scope keeps detections tied to telemetry that can evidence ATT&CK techniques. |
| Recommendation — Map detections to the telemetry source that can validate each ATT&CK technique. | ||
| CIS Controls v8 | 8.2 — Audit Log Management | Logsource governs whether audit data is classified and routed for effective log analysis. |
| Recommendation — Define source categories so audit logs are collected, normalized, and reviewed consistently. | ||
| NIST CSF 2.0 | DE.CM-8 — Monitoring for Anomalies and Events | Logsource alignment supports monitoring coverage by matching detections to the right event class. |
| Recommendation — Align monitoring rules to the telemetry source that actually contains the target events. | ||
| OWASP Non-Human Identity Top 10 | NHI-01 — Inventory and Ownership of Non-Human Identities | Logsource precision helps separate NHI telemetry from unrelated application and user events. |
| Recommendation — Classify NHI-related telemetry separately so machine-identity activity can be detected cleanly. | ||
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on September 7, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org