By NHI Mgmt Group Editorial TeamDomain: Cyber SecuritySource: SawmillsPublished September 23, 2025

TL;DR: .NET teams can forward Serilog logs through OpenTelemetry into a centralized telemetry pipeline without rewriting existing sinks, using package updates, collector endpoint configuration, and environment-aware settings, according to Sawmills. The governance issue is not logging mechanics alone, but how teams preserve context, control telemetry sprawl, and keep production configuration auditable.


At a glance

What this is: This guide explains how to send Serilog logs through OpenTelemetry to Sawmills while preserving existing console and file sinks, with emphasis on endpoint configuration and deployment flexibility.

Why it matters: It matters because telemetry pipelines now carry sensitive operational data, and identity-aware governance must keep access, routing, and environment-specific configuration under control as logs move across systems.

👉 Read Sawmills' guide to forwarding Serilog logs through OpenTelemetry


Context

OpenTelemetry forwarding is fundamentally a telemetry governance problem, not just a code integration task. When logs, metrics, and traces move through multiple collectors and sinks, the risk shifts to configuration drift, environment leakage, and uncontrolled data routing. For security and platform teams, the interesting question is how observability pipelines preserve traceability without turning into another unmanaged data path.

The identity dimension appears when telemetry endpoints, environment variables, and collector access behave like machine-managed controls. Those endpoints are effectively privileged integration points, so the same discipline used for workload identity, secrets handling, and access scoping applies here. That makes the topic relevant to IAM and NHI programmes even though the article is written as an observability implementation guide.


Key questions

Q: How should security teams govern OpenTelemetry agents in production?

A: Treat OpenTelemetry agents as production infrastructure with change control, role-based ownership, and approval paths for instrumentation changes. Limit who can alter export endpoints, sampling policies, and enrichment logic, because those settings determine where operational data flows. Pair that with logging on pipeline changes so telemetry governance is auditable rather than informal.

Q: Why do telemetry endpoints need identity-style controls?

A: Telemetry endpoints behave like machine-managed access points because they decide where operational data is sent and which service context it carries. If those endpoints are altered without control, logs can be misrouted, sensitive metadata can leak, and investigations lose fidelity. Identity-style controls help keep ownership, change history, and scope clear.

Q: What breaks when environment-specific telemetry configuration is inconsistent?

A: Inconsistent configuration breaks routing consistency, environment separation, and incident investigation. A service may send production logs to a default local endpoint, reuse the wrong service attributes, or expose the same collector path across tiers. The result is noisy observability data and weaker assurance about where sensitive operational information is landing.

Q: How do teams know whether log forwarding is actually under control?

A: Teams know log forwarding is under control when collector destinations are inventoried, endpoint changes are reviewed, service attributes are standardised, and test results match expected routing in each environment. If those signals are missing, the pipeline may work technically while still operating outside governance boundaries.


Technical breakdown

Serilog sinks and OpenTelemetry exporters

Serilog can write to multiple sinks at once, while OpenTelemetry acts as a standard transport and schema layer for logs, metrics, and traces. In practice, the exporter packages convert application events into OTLP payloads and send them to a collector or backend. The important design point is that the logging pipeline becomes distributed, so transport settings, headers, and resource attributes matter as much as the log message itself.

Practical implication: treat log forwarding configuration as a governed runtime path, not a developer convenience setting.

Collector endpoints and environment-specific routing

The guide relies on a collector endpoint that may be discovered in Kubernetes or injected through environment variables. That pattern is operationally useful, but it also creates a trust boundary around endpoint resolution, DNS, pod discovery, and environment-specific configuration. If those values are wrong or exposed, telemetry can land in the wrong place or fail open into local defaults, which weakens observability integrity.

Practical implication: validate collector endpoint sources and restrict who can change deployment-time routing variables.

Resource attributes and telemetry context

Resource attributes such as service.name, deployment.environment, and service.instance.id attach identity-like context to telemetry streams. They let downstream systems separate services, versions, and environments, but they also become important classification signals for analytics and access policies. If teams copy production labels into lower environments or reuse the same identifiers too broadly, telemetry governance and investigation quality both suffer.

Practical implication: standardise resource attributes across environments and review them as part of deployment controls.


NHI Mgmt Group analysis

Telemetry pipelines now carry identity-like control points. The article is about log forwarding, but the real governance lesson is that collector endpoints, environment variables, and resource attributes behave like machine-managed access controls. Once telemetry crosses application and platform boundaries, teams need the same discipline they apply to workload identity and secrets handling. That means observability architecture should be governed as part of identity and access control, not left to application defaults.

Configuration flexibility is useful only when it is auditable. Hard-coded endpoints are fragile, but environment-based routing can drift just as easily if ownership is unclear. The security question is not whether a team can change telemetry destinations, but whether it can prove who changed them, when, and for which environment. Practitioners should treat collector configuration as a controlled operational dependency.

Resource attributes create a named context layer for machine telemetry. Fields like service.name and deployment.environment are not just metadata. They are the labels that allow downstream filtering, investigation, and policy enforcement. In governance terms, that makes them part of the control plane for telemetry quality. Practitioners should define them centrally, not let each service invent its own naming pattern.

OpenTelemetry standardises transport, not trust. The protocol reduces integration friction, but it does not solve endpoint assurance, payload sensitivity, or access governance. That distinction matters for identity teams because standardisation can hide risk behind familiar tooling. Practitioners should assess which telemetry paths carry sensitive operational data and apply explicit controls around collection, routing, and retention.

Named concept: telemetry routing trust gap. This guide exposes the gap between an application’s ability to emit data and the organisation’s ability to govern where that data lands. The control problem is not logging volume, but the trust placed in endpoint configuration and runtime context. Practitioners should close that gap with policy, inventory, and change control for telemetry destinations.

What this signals

OpenTelemetry does not remove the need for security governance. It simply shifts the control point from individual application sinks to shared routing and collection layers, which makes configuration discipline more important, not less. Teams that already manage workload identities and secrets should apply the same governance mindset to telemetry endpoints and environment-specific settings.

Telemetry routing trust gap: the next control gap for platform teams is not log collection itself, but proving that every telemetry destination is approved, traceable, and environment-bound. That is where observability governance starts to overlap with identity and access management.

For identity and security programmes, the practical signal is whether machine-managed configuration now has named owners, review cadence, and change evidence. If not, telemetry will remain a useful engineering tool but a weakly governed data path.


For practitioners

  • Inventory telemetry destinations Catalog every collector, backend, and environment-specific endpoint used by Serilog and OpenTelemetry so routing changes are visible to platform and security teams.
  • Protect routing variables as controlled configuration Restrict who can modify SAWMILLS_COLLECTOR_HOST, SAWMILLS_COLLECTOR_PORT, and similar deployment variables, and require change review for production updates.
  • Standardise resource attributes across services Define required values for service.name, service.version, service.instance.id, and deployment.environment so telemetry can be reliably filtered and investigated.
  • Treat headers and endpoints as sensitive metadata Review custom headers such as X-Source and collector URLs for exposure risk, because they can reveal service topology and trusted integration patterns.
  • Validate telemetry in each deployment tier Test forwarding in development, staging, and production separately so endpoint resolution, OTLP transport, and sink behaviour are confirmed before release.

Key takeaways

  • OpenTelemetry forwarding improves interoperability, but it does not replace governance over where telemetry is sent.
  • Collector endpoints, headers, and resource attributes function as machine-managed control points that security teams should inventory and review.
  • The strongest operational outcome comes from standardised telemetry context, controlled routing changes, and deployment-tier validation.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the technical controls, while ISO/IEC 27001:2022 define the regulatory obligations.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0PR.AC-4Telemetry routing and collector access depend on controlled permissions and boundaries.
NIST SP 800-53 Rev 5AC-6Least privilege is relevant to who can modify telemetry paths and configuration.
ISO/IEC 27001:2022A.8.2Access to configuration and supporting information assets needs explicit control.

Use A.8.2 to classify and protect telemetry configuration as a controlled information asset.


Key terms

  • Telemetry routing: The process of directing logs and events to different destinations based on value, urgency, and investigative need. In mature SOC designs, routing is a security control because it determines which events remain searchable in the SIEM and which are archived more cheaply.
  • OpenTelemetry: An open standard for collecting and moving traces, metrics, and logs in a consistent format. It helps teams avoid re-instrumenting every system when tools change, and it supports cross-platform analysis by keeping telemetry structured and portable.
  • Resource attribute: A property of the thing being accessed, such as owner ID, status, type, or flag state. Resource attributes matter because authorization is rarely just about who the requester is. Good policy engines use them to make access decisions that reflect object context, not only identity context.

What's in the full article

Sawmills' full guide covers the operational implementation details this post intentionally leaves at the governance level:

  • Exact Serilog and OpenTelemetry package configuration for .NET projects
  • Collector endpoint discovery steps in Kubernetes environments
  • Code-first and appsettings-based setup examples for OTLP forwarding
  • Environment-variable patterns for production-safe endpoint management

👉 The full Sawmills guide covers configuration examples, collector discovery, and production-safe routing patterns.

Deepen your knowledge

NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, workload identity, and secrets management for practitioners responsible for machine-managed access. It is designed for teams that need to connect identity controls to the broader security programmes their platforms depend on.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 19, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org