Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› Serilog Sink
Cyber Security

Serilog Sink

← Back to Glossary
By NHI Mgmt Group Updated October 12, 2026 Domain: Cyber Security

A Serilog output target that sends log events to a destination such as a file, console, or external service. Sinks determine where structured log data goes, and they often become the boundary between application logging and downstream telemetry governance.

What a Serilog sink does

A Serilog sink is the output destination that receives structured log events and writes them somewhere useful, such as a console, file, database, search index, or monitoring service. It is the point where application telemetry leaves Serilog and enters another system’s storage, search, or alerting workflow.

Because sinks define the final destination of log data, they shape how logs are retained, queried, forwarded, and governed. A sink is not just a formatter or transport detail, it is part of the logging architecture that determines what downstream systems can see and do with event data.

Why sinks matter in a logging pipeline

Sinks are the practical boundary between log generation and log consumption. The application emits events, but the sink decides whether those events land in a local file, a centralized observability platform, or a third-party service. That choice affects durability, latency, routing, and how quickly teams can investigate incidents.

Different sinks support different operational goals. A file sink is useful for local persistence and simple host-level collection, while a networked sink may support aggregation, enrichment, or alerting. The same log event can therefore behave very differently depending on the sink, even when the application code does not change.

Sink selection also influences the fidelity of structured logging. A destination that preserves fields, levels, timestamps, and correlation data will support search and analytics far better than one that flattens or truncates output. In practice, the sink often determines whether structured logs remain structured all the way to the destination.

Common sink patterns and trade-offs

Serilog sinks are typically either built-in, community-maintained, or custom. Built-in sinks handle common destinations such as text output and files, while specialized sinks integrate with observability, analytics, or incident-response systems. Custom sinks are used when an organisation needs to push events into an internal platform or apply destination-specific behaviour.

Each pattern carries trade-offs. Simple sinks are easy to reason about, but they may offer limited filtering, buffering, or delivery guarantees. More capable sinks can improve resilience and routing, but they also add dependency on downstream services and may introduce operational complexity if they block, batch, or retry poorly.

The logging path should be designed so that sink failures do not become application failures. If a sink is slow, unavailable, or misconfigured, the logging layer can lose events, create backpressure, or silently reduce observability. That is why sink behaviour matters not only for logging quality, but also for runtime stability.

How sinks fit into telemetry and governance

Sinks sit at the edge of telemetry governance because they control where logs are stored and who can consume them. When a sink forwards data to a shared platform, it effectively joins the application to the organisation’s wider monitoring, retention, and access-control model. For security teams, that makes the sink a boundary worth documenting and reviewing.

This is especially important when logs may contain sensitive values, identifiers, request details, or audit-relevant events. A sink that sends data to an external service or multi-tenant platform changes the data exposure profile, even if the application code has not changed. The operational question is not only “does it log?”, but “where does it send the data, and what happens there?”

For practitioners, this means the sink should be treated as part of the logging design, not as a cosmetic configuration detail. The destination, transport, buffering, and retention characteristics all affect how much trust you can place in the log stream once it leaves the application.

Risk and Threat Considerations

Sinks can become a weak point when they move logs into systems that are less trusted, less monitored, or less durable than the application itself. The main risks are data exposure, event loss, and reduced visibility when the sink or its destination fails.

Failure mechanism: Misconfigured destinations, insecure transport, over-permissive access, or brittle delivery paths can expose sensitive log data, drop records, or prevent events from reaching the systems that need them.

Impact: That can undermine incident investigation, compliance evidence, alerting, and forensic reconstruction, while also widening the blast radius of any secrets or identifiers that were logged.

Standards & Framework Alignment

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

NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5AU-2 — Event LoggingSerilog sinks determine where audit and event logs are sent and retained.
AU-9 — Protection of Audit InformationSinks control exposure, integrity, and handling of stored log data.
SC-8 — Transmission Confidentiality and IntegrityNetworked sinks transmit log data to downstream services over a transport path.
Recommendation — Define sink destinations so required events reach approved audit logging systems. Protect sink outputs so audit records remain confidential and tamper-resistant. Use protected transport when sinks forward logs to remote destinations.
CIS Controls v8CIS-8 — Audit Log ManagementSinks are the mechanism that routes logs into central collection and retention workflows.
Recommendation — Route logs through sinks that support central collection, retention, and review.

Practitioner Guidance

What to watch for: Treat the sink as an operational control point, not just an output adapter. Confirm that the destination preserves the fields you rely on, that delivery is resilient under load, and that access to the downstream log store matches the sensitivity of the data being emitted.

Common misunderstanding: Teams often assume “logging is on” means “logging is safely usable.” In reality, a sink can quietly change the quality, confidentiality, and durability of the entire log pipeline, so the destination matters as much as the event source.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 12, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org