The log pipeline sits between every system you monitor and every tool that monitors it, so whoever controls a collector, a forwarder or the routing layer can blind the SOC, rewrite the evidence or read the secrets that leak into logs, without ever touching the SIEM. Yet it is usually owned by a platform or SRE team, built for throughput, and reviewed far less often than the SIEM behind it. This guide is for platform owners, detection engineers and security architects who run a log pipeline, whether built from open source collectors, a commercial data pipeline or cloud native forwarding. It covers the pipeline as a privileged system: admin roles on the management plane, the non-human identities it creates, keys and certificates, the pipeline's own logs, and its lifecycle from build to decommissioning. It is vendor-neutral; confirm exact setting names in your own product documentation.
This page is about hardening the pipeline itself. For pipeline architecture, onboarding order and delivery guarantees, use the Log pipeline (collectors, forwarders, data pipeline) rollout playbook; for how telemetry and SRE methods fit security work, see Observability, telemetry and SRE for security teams. To measure whether these controls keep working quarter on quarter, run the Log pipeline (collectors, forwarders, data pipeline) health check.
Key takeaways
- The pipeline is a tier 0 path. It carries authentication events for every tier and can drop, delay or alter them, so administer its management plane with the same rigour as the SIEM and the identity provider.
- Filter and routing rules are detection controls. A drop rule, a sampling change or a re-routed stream can remove evidence as effectively as deleting it; put pipeline configuration under change control and alert on changes outside it.
- Every collector is a non-human identity. Give each agent, forwarder tier and API pull job its own scoped credential with an owner and an expiry, and never one shared token for the whole fleet.
- Buffers and dead letter queues are data stores. Disk queues, retry spools and replay archives hold raw logs, including any secrets in them; protect, encrypt and size them like any other sensitive store.
- The pipeline must report on itself somewhere it cannot silence. Send its own audit and health telemetry to a destination that pipeline administrators cannot alter, and alert there when a collector or route goes quiet.
Why attackers target the pipeline
The UK NCSC introduction to logging warns that attackers may target the logging service to remove evidence of their actions, and advises limiting write permissions and making changes detectable. A pipeline gives an intruder subtler options than deleting logs in the SIEM: stopping a forwarder, filtering one event type for one host, or injecting false events. MITRE ATT&CK tracks the first group under T1685 Disable or Modify Tools, including T1685.001 Disable or Modify Windows Event Log and T1685.002 Disable or Modify Cloud Log, and altering stored or transmitted records under T1565 Data Manipulation.
The component view below reflects a common architecture and is NHI Mgmt Group's view, not a description of any one product; your pipeline may merge or split these layers.
| Component | What it holds or can do | If an attacker controls it | Primary control |
|---|---|---|---|
| Endpoint agent or collector | Read access to local logs, sometimes privileged; a credential for the next hop | Stops or filters local events, harvests the forwarding credential, sends forged events | Least privilege service account, per-agent credential, tamper alerts, heartbeat monitoring |
| Forwarder or aggregation tier | Inbound listeners, credentials for every destination, disk buffers | Receives unauthenticated input, reads buffered logs, re-routes streams | Mutual authentication on listeners, segmented network, encrypted buffers |
| Processing and routing layer | Parsing, enrichment, filter, sampling, redaction and routing rules | Drops or rewrites selected events, disables redaction, copies data to a new destination | Configuration as code, review, drift detection, destination allow list |
| Fleet or management plane | Pushes configuration and binaries to every agent | Deploys a malicious config or binary to the whole fleet in one step | Small admin group, phishing-resistant MFA, signed packages, two-person rule |
| API pull jobs | Credentials to read audit logs from cloud and SaaS tenants | Reuses the credential, or uses write scopes granted by mistake | Read-only audit scopes, federated credentials, per-tenant identity |
Admin roles on the management plane
A central console or fleet manager that pushes configuration to collectors is the most powerful point in the logging estate: one change reaches every host.
- Role separation: define at least a pipeline administrator (roles, destinations, credentials), a pipeline engineer (sources, parsers, routes in non-production), a release approver (promotes configuration to production), an operator (restarts, health views, no configuration rights) and a read-only auditor. Keep full administrators to a handful, and grant administrator rights just in time where the platform supports it.
- Destructive and high-impact changes: adding a new destination, removing a source, changing redaction rules, adding a drop or sampling rule on security data and changing fleet-wide agent versions should each need a second approver. NIST SP 800-53 AU-9(4) limits management of audit logging functionality to a defined subset of privileged users.
- Authentication: sign in through your identity provider with SSO and phishing-resistant MFA; keep one documented break-glass account. See the Break-Glass Account Guide.
- Admin devices and network: reach the management plane only from privileged access workstations and a management network segment. See the Privileged Access Workstations Guide.
Service accounts, tokens and certificates
A pipeline creates more non-human identities than almost any other security tool: one per agent or host group, one per forwarder tier, one per destination and one per API pull job.
| Identity | Needs | Avoid | Credential pattern |
|---|---|---|---|
| Agent run-as account | Read the specific log files and channels it ships | Running as root or local system for convenience | Dedicated low-privilege account; membership of the platform's built-in log reader group where one exists |
| Agent to forwarder credential | Write events to one listener | One token or certificate copied to every host | Per-host or per-group client certificate from your PKI, short lifetime, automated renewal |
| Forwarder to destination credential | Write to one index, topic or bucket | Destination admin roles; credentials that can also read or delete | Write-only scope per destination, stored in a secret store, rotated on a schedule |
| Cloud audit log pull | Read audit and activity logs | Owner or contributor roles granted to make the proof of concept work | Workload identity federation or cross-account role; no long-lived access key |
| SaaS audit log pull | Read the audit log API | Admin-level OAuth consent covering mail, files or users | Dedicated app registration with the narrowest audit scope the SaaS documents |
| Fleet manager enrolment secret | Enrol a new agent once | A permanent enrolment key embedded in golden images | Short-lived, single-use or narrowly scoped enrolment tokens, revoked after the rollout window |
- Secrets out of configuration: the OpenTelemetry project's configuration guidance is to keep API tokens and TLS private keys on an encrypted filesystem or in a secret store and to use environment variable expansion rather than literal values in configuration files. The principle applies to every collector. See the API Key Management Guide.
- Mutual authentication on listeners: RFC 5425 (syslog over TLS, TCP port 6514) requires both sender and receiver to implement certificate-based authentication and names mutual authentication as the recommended default; apply the same expectation to any proprietary or OTLP listener. See the mTLS Guide.
- Federate where possible: replace static cloud keys in pull jobs with federation. See the Workload Identity Federation Guide.
- Inventory: record every pipeline identity with owner, scope, issuing system and expiry in the NHI inventory. See the Service Account Security Guide.
Configuration integrity: filters, routes and redaction
Pipeline configuration decides what the SOC sees. Treat it as security configuration with the same controls as detection rules.
- Keep configuration in version control: every source definition, parser, filter, sampling rule, route, destination and redaction rule lives in a repository and reaches production through a pipeline with review (NIST SP 800-53 CM-3).
- Classify rules by security impact: any rule that drops, samples or truncates events from a source in the critical source register, or that changes redaction, is a high-impact change that needs a security reviewer, not only a platform reviewer.
- Allow-list destinations: maintain an approved list of destinations (hostnames, topics, buckets) and block or alert on any route to a destination not on it, so a compromised admin cannot quietly copy the stream elsewhere.
- Detect drift: compare the configuration running on each tier with the repository daily and alert on any difference, so console or host edits outside the pipeline are visible.
- Minimise components: the OpenTelemetry guidance notes that fewer components means less attack surface. Remove unused receivers, processors and plugins from every collector build (CM-7).
- Test redaction with seeded data: send synthetic events containing fake tokens, card numbers and passwords through each route and confirm they never reach a destination unmasked. See the Privacy in Security Logging and Monitoring Guide.
Hosts, network and buffers
- Least privilege on hosts: OpenTelemetry advises not running the Collector as root and applying least privilege where a component needs special permissions; its hosting guidance adds that a collector reading node logs should get only the specific volume mounts it needs, scoped with RBAC. Apply the same to any agent.
- Bind listeners narrowly: listeners should bind to a specific interface or localhost, not all interfaces. OpenTelemetry notes that from Collector v0.110.0 the default host for server components is localhost. Restrict which source addresses can reach forwarders (SC-7).
- Segment the logging network: place forwarders and aggregation tiers in a dedicated segment reachable only from sources and destinations. Where logs cross a trust boundary, NCSC suggests a one-way flow such as a data diode to make stored logs harder to modify.
- Protect buffers: restrict access to directories holding telemetry awaiting processing; the OpenTelemetry hosting guidance gives this as a way to prevent tampering with raw data. Encrypt the volumes that hold disk queues, retry spools and dead letter queues, and set a retention limit on them.
- Plan for exhaustion: NCSC advises planning storage rollover so a full disk does not stop the logging service. Size queues for the longest destination outage you accept and alert on queue depth before data is dropped (AU-4, AU-5(1)).
- Time: synchronise every collector and forwarder to an accurate time source and keep timestamps in UTC, as NCSC advises (AU-8). See the NTP Security Guide.
The pipeline's own logs and health telemetry
A pipeline that can be told to stop reporting on itself cannot be trusted to report a compromise.
| Event to capture | Why it matters | Alert? |
|---|---|---|
| Management plane role change, new local user, SSO setting change | Persistence on the most powerful pipeline component | Always |
| New destination, route change, drop or sampling rule on security data | Exfiltration or evidence loss | Always, with approver |
| Redaction rule disabled or changed | Secrets and personal data start flowing in clear | Always |
| Agent stopped, uninstalled, downgraded or configuration changed on host | Local blinding (T1685) | For critical hosts, always |
| Collector or forwarder heartbeat missed | Silent loss of a source group | Above the expected interval |
| Authentication failure at a listener, or a new client certificate seen | Forged event injection or credential theft | New or repeated failures |
- Independent destination: send management plane audit events and collector health metrics to a store or monitoring system that pipeline administrators cannot alter, ideally under a separate administrative account with immutability. NIST SP 800-53 AU-9(2) covers storing audit records on a separate system and AC-6(9) logging the use of privileged functions.
- Alert on silence: NCSC advises alerting when logs stop arriving centrally and, where that cannot be automated, triggering a test event and confirming it is captured. Do this per collector group, not only per destination.
Supply chain and lifecycle
| Stage | Security actions |
|---|---|
| Select | Ask how agents authenticate to the management plane, whether packages and configuration bundles are signed, whether the management plane supports SSO, MFA and fine-grained roles, and whether its audit log can be exported. |
| Build | Build collector images from a pinned, minimal component set; verify package signatures or checksums before installing (SI-7); remove enrolment secrets from golden images; record every agent version in the CMDB. |
| Deploy | Enable SSO and roles before enrolling agents; issue per-host or per-group certificates; turn on management plane audit export on day one; open only the listener ports each tier needs. |
| Run | Apply vendor or project security updates promptly and track agent version currency across the fleet; review roles, credentials, destinations and drop rules every quarter; renew certificates automatically and alert 30 days before expiry (our recommendation). |
| Back up | Back up pipeline configuration, routing rules, parsers and certificate authority material separately from event data, under credentials pipeline admins do not hold, and test a restore (CP-9). See the Backup Security and Immutable Backup Guide. |
| Migrate or retire | Run old and new pipelines in parallel until delivery is proven; revoke every agent certificate, destination credential and pull job consent of the old pipeline; wipe disk buffers and replay archives. See the Log pipeline (collectors, forwarders, data pipeline) migration playbook. |
Implementation approach
- Inventory (weeks 1 to 2): list every collector group, forwarder tier, destination, pull job and management plane account, with the credential each uses and its owner.
- Close the management plane first: SSO, phishing-resistant MFA, role separation and audit export to an independent store. These protect everything else.
- Split shared credentials: replace fleet-wide tokens with per-group certificates or tokens, starting with forwarders that receive from the internet edge or from less trusted segments. Run old and new credentials in parallel for one renewal cycle, then revoke the old ones.
- Move configuration to code: import the running configuration into a repository, add review and drift detection, then classify high-impact rule types.
- Harden hosts and listeners: drop root, bind listeners, enforce mutual authentication in audit mode first (log rejected clients for two weeks) before enforcing.
- Rollback: keep the previous credential set and configuration version deployable for one release; restore a specific right a failing source reports as missing, never a broad role or an unauthenticated listener.
Small versus large estates: a small team with one collector type and one destination can often get most of the value from SSO, per-group certificates, configuration in a repository and a heartbeat alert. Large estates with several pipeline products, regional aggregation tiers and many destinations need the destination allow list, a formal release approver role and drift detection per tier, because no one person can see every route.
Detection and measurement
- Pull job credentials used from unexpected places: sign-ins by pipeline identities outside their expected network or workload (T1078 Valid Accounts).
- Credentials found in files: collector tokens in scripts, images or repositories (T1552.001 Credentials In Files).
- Interception attempts: listener connections without valid client certificates (T1557 Adversary-in-the-Middle).
- Configuration drift and silent routes: running configuration differing from the repository, and sources whose events leave the collector but never reach the destination.
Metrics that show the controls are working (the health check turns these into thresholds):
- Percentage of agents and forwarders using a per-host or per-group credential rather than a shared one.
- Number of standing management plane administrators (target: five or fewer, our suggestion).
- Percentage of production pipeline configuration changes deployed through the reviewed pipeline.
- Percentage of collectors running as a non-privileged account.
- Percentage of routes whose destination is on the approved allow list (target: 100%).
Framework mapping
| Control area | NIST SP 800-53 Rev. 5 | NIST CSF 2.0 | CIS Controls v8.1 | ISO/IEC 27001:2022 Annex A |
|---|---|---|---|---|
| Management plane roles | AC-6, AC-6(9), AU-9(4) | PR.AA-05 | 5.4, 6.8 | A.8.2 |
| Collector identities and transport | IA-3, IA-5, SC-8, SC-8(1) | PR.DS-02 | 3.10 | A.8.5, A.8.24 |
| Configuration integrity | CM-2, CM-3, CM-6, CM-7 | PR.PS-01 | 4.1 | A.8.9 |
| Buffers, capacity and time | AU-4, AU-5, AU-8 | PR.PS-04 | 8.3, 8.4 | A.8.15, A.8.17 |
| Independent audit trail | AU-6, AU-9, AU-9(2) | DE.CM-01 | 8.9 | A.8.15 |
| Supply chain and lifecycle | SI-7, SR-3, CP-9 | ID.AM-08, GV.SC-07 | 2.2 | A.8.19 |
Common failure patterns
- One token for the fleet: a single forwarding token baked into every image, so one leaked laptop lets anyone write forged events into the security stream.
- Drop rules approved as cost savings: a filter added to cut volume removes the one event type a detection depends on, and nobody in security reviewed it. See the Security Log Cost Optimisation Guide.
- Listeners open to everything: a forwarder listening on all interfaces without client authentication accepts events from any host on the network.
- Health only visible inside the pipeline: the only alert for a stopped forwarder is generated by the forwarder.
- Retired pipelines that still hold credentials: old pull jobs keep tenant consent and old buffers keep raw logs long after migration.
Practitioner checklist
- Classify the pipeline management plane, forwarder hosts and pipeline identities as tier 0.
- Enforce SSO with phishing-resistant MFA and separate admin, engineer, approver, operator and auditor roles.
- Require a second approver for new destinations, drop or sampling rules on security data and redaction changes.
- Issue per-host or per-group credentials, enforce mutual authentication on every listener and federate pull jobs.
- Keep secrets out of configuration files and enrolment secrets out of golden images.
- Run collectors without root or local system rights and bind listeners narrowly.
- Manage all pipeline configuration as code with drift detection and a destination allow list.
- Encrypt and limit retention on disk buffers, retry spools and dead letter queues.
- Send the pipeline's own audit and health telemetry to an independent store and alert on silence there.
- Revoke every credential and wipe every buffer when a pipeline component is retired.
Standards and references
- NCSC: Introduction to logging for security purposes
- ASD's ACSC, CISA and partners: Best Practices for Event Logging and Threat Detection
- NIST: SP 800-92 Rev. 1 Cybersecurity Log Management Planning Guide (Initial Public Draft)
- NIST: SP 800-53 Rev. 5 Security and Privacy Controls
- IETF: RFC 5425 Transport Layer Security (TLS) Transport Mapping for Syslog
- OpenTelemetry: Collector configuration best practices
- OpenTelemetry: Collector hosting best practices
- MITRE ATT&CK: T1685 Disable or Modify Tools
Related NHI Mgmt Group resources: Log pipeline (collectors, forwarders, data pipeline) health check · If your log pipeline (collectors, forwarders, data pipeline) is compromised · Securing the SIEM itself · Observability, telemetry and SRE for security teams · Log Management and Retention Guide