Why Security Onion Kafka guaranteed delivery matters for a production grid
In a distributed Security Onion Pro grid, a manager outage can stop search nodes from indexing new events. The architecture docs explain why: search nodes depend on Redis on the manager, and when the manager goes down they cannot reach it, so events that arrive during the outage are not indexed. The Kafka pipeline is the Pro option built to close that gap. According to the Security Onion Kafka docs, it is a Pro feature that provides guaranteed message delivery and replaces Redis and Logstash on the manager and receiver nodes. The same architecture docs note that receiver nodes add pipeline redundancy and load balancing, so the two ideas belong in one design decision rather than two separate settings.
Teams should treat Kafka as a requirement when losing events during a manager or pipeline outage is unacceptable for their monitoring, investigation or compliance obligations, and when they already run a Pro grid with multiple receivers and the staff to operate a message broker. A single standalone node, an evaluation install or a small distributed grid where short gaps in indexing are tolerable may not need it. Before deciding, confirm with Security Onion Solutions which Pro licensing applies to your grid, and inventory the extra hosts the Kafka controllers and brokers would require, since those are separate machines with their own sizing, storage and patching work.
The decision also has a cost side the reader should plan for. Kafka itself is an Apache project under the Apache License 2.0, so the broker software carries no license fee, but the hardware, storage, retention tuning and ongoing operations are real work for your team or a partner. Confirm how your team will set log retention so brokers do not fill their disks, and who owns the outage runbook for the controllers and brokers. Those answers determine whether guaranteed delivery protects your investigations or simply adds another system that can fail.
How sensor, receiver, Kafka and search nodes move events
Events start at sensors and Fleet agents on monitored networks and hosts, then pass through receiver nodes into the Kafka controllers and brokers that replace Redis and Logstash on the manager and receiver path. Search nodes read from the Kafka pipeline and index events into Elasticsearch, while the manager coordinates the grid and its configuration. Check each hand-off with the consumer lag and broker disk use, because a stalled stage shows up as missing events in the console rather than as an error at the source.
Event flow from sensors and agents through Kafka to search nodes, with the manager's configuration role.
Sizing controllers and brokers for the Kafka cluster
Controllers run the KRaft metadata quorum that tracks topics, partitions, leaders and access control state for the cluster. Security Onion's Kafka documentation recommends at least three controllers, each with a minimum of 4 cores, 8 GB RAM and 200 GB storage. Controllers do not carry the event payload, so their load depends more on cluster churn than on event volume, which keeps their floor lower than the broker floor.
- Count: Run three controllers as the documented minimum so the quorum survives the loss of one node.
- Cores and RAM: Start at 4 cores and 8 GB RAM per controller, the documented minimum for each.
- Storage: Plan 200 GB per controller as the minimum, sized for metadata logs and snapshots rather than event data.
- What grows them: Large numbers of topics and partitions, frequent partition reassignment or many client connections increase metadata work.
- Placement: Keep controllers on separate hosts or failure domains from each other so one outage does not break the quorum.
Confirm with Security Onion how controller hardware should change for your topic count and client count before you order machines.
Brokers receive events from the manager and receiver nodes, hold them on disk and serve them to consumers. Security Onion's documentation recommends at least three brokers, each with a minimum of 8 cores, 32 GB RAM and 500 GB storage. Broker size is the decision that most affects how much event traffic the grid can absorb before backlog builds up.
- Count: Run three brokers as the documented minimum, so replicated partitions keep working when one broker is down.
- Cores and RAM: Start at 8 cores and 32 GB RAM per broker, the documented minimum.
- Storage: Plan 500 GB per broker as the minimum, then size the disk from the event rate multiplied by the retention window.
- Event volume: Higher sustained log and alert rates from sensors and endpoints need more disk throughput and more broker capacity.
- Retention and receivers: A longer
log.retention.hourswindow and more receiver nodes writing into the stream both increase the data held on each broker.
Ask Security Onion for the broker count and disk size that match your measured event rate and retention target, since the minimums only cover a small deployment.
Minimums describe the smallest cluster Security Onion will support, not the cluster your grid needs. The same role can need very different hardware depending on how much data arrives, how long it stays and how many nodes feed it. Sizing is a conversation with Security Onion about your numbers, so gather those numbers before the design review.
- Event volume: Measure events per second from sensors, endpoints and receivers during normal and peak periods, not only the average.
- Retention window: The number of hours kept in Kafka multiplies directly into broker disk use, so decide the window before buying storage.
- Number of receivers: Each receiver node adds ingest paths into the stream, which changes both throughput and how evenly load spreads across brokers.
- Headroom for failure: Size so that the cluster can carry load while one broker is down and recovering, not only when every node is healthy.
- Growth: Add expected sensor or log source growth over your planning horizon so the disk and CPU plan is not outgrown in the first year.
Before you approve hardware, get Security Onion's written sizing for your expected event rate, retention window and receiver count.
Kafka pipeline options and when each fits
This table compares the main choices for the Security Onion manager and receiver pipeline: keeping Redis and Logstash, moving to Kafka with minimum or larger broker counts, and single-site or multi-site layouts. Read each row against your own loss tolerance, hardware budget and disk plan, and treat the confirm column as the list to raise with Security Onion Solutions before you commit.
| Option | When it fits | Trade-off | What to confirm |
|---|---|---|---|
| Keep Redis and Logstash | Small grids where losing some in-flight events during a manager or queue outage is acceptable and you want no Pro pipeline change | The architecture docs note search nodes stop indexing if the manager goes down because they cannot reach Redis, so the queue is a single point of dependency | Whether your Security Onion edition and version still use this path and how upgrades treat it |
| Switch to Kafka pipeline | Grids where guaranteed delivery matters more than a simpler stack, and where you have Pro licensing | Adds three or more controllers and three or more brokers, each with its own disk and patching cycle | Pro licensing terms, cutover steps and rollback path on your version |
| Minimum Kafka layout (three controllers, three brokers) | Production grids that meet the documented minimum and can dedicate separate hosts to Kafka roles | Lowest hardware cost of the Kafka options, but little headroom when a broker is lost for maintenance | Whether the documented minimums hold for your expected event rate and replication settings |
| Larger Kafka layout (more brokers than the minimum) | High-throughput sensors or busy search tiers where broker load and recovery time are a concern | More hosts to size, monitor and patch, and higher recurring infrastructure cost | Sizing guidance for your event rate and the broker count Security Onion Solutions supports |
| log.retention.hours set conservatively | Grids with limited broker disk where you accept that events older than the window may be dropped from Kafka | Protects disk, but a long outage of downstream consumers can exceed the window and lose data | The value to use for your disk size and outage tolerance; do not assume a default |
| log.retention.hours set for a longer replay window | Environments that need to replay events after a consumer outage and have disk to match | Needs more broker storage and monitoring to avoid filling disks | Disk sizing per broker and how Security Onion Solutions recommends alerting on disk use |
| Single site Kafka | One data center or cloud region where all sensors and search nodes are reachable on the same network | Simpler operations and one set of certificates and ACLs, but a site outage stops the pipeline | Whether your grid supports this layout in the version you run |
| Multi-site design | Organizations with several sites that need independent buffering or regional recovery | Cross-site replication adds design work, network links and separate operations for each site | Whether Security Onion supports a multi-site Kafka topology and how Manager of Managers interacts with it |
How to switch the global pipeline to Kafka
This sequence moves a Security Onion Pro grid from Redis and Logstash queuing to Kafka without losing events in transit, and each step ends with a check that confirms the grid is ready for the next one.
Confirm Pro licensing and grid version
The grid owner confirms that the deployment holds a Security Onion Pro license, since the Kafka pipeline is a Pro feature, and records the running Security Onion version on the manager and every node. Check the version against the Security Onion documentation for Kafka and against the current end-of-life dates, so the team does not start a pipeline change on a release that is about to lose support. Confirm that the manager and all nodes are healthy in the console before any change. Done when the license status, version and node health are written down in the change record.
Provision controllers and brokers at documented minimums
The platform team builds at least three Kafka controllers and at least three brokers, each sized at or above the documented minimums: controllers with 4 cores, 8 GB RAM and 200 GB storage, and brokers with 8 cores, 32 GB RAM and 500 GB storage. Place the nodes so that a single host or hypervisor failure does not take out a quorum of controllers or brokers. Confirm that the nodes can reach each other and the manager on the ports the Security Onion Kafka documentation lists. Done when all six or more nodes boot, resolve each other by name, and pass a basic connectivity test.
Set log retention before ingest starts
Before any events flow through Kafka, the administrator sets log.retention.hours on the broker configuration so that retained messages cannot grow until they fill the broker disks. The value should match how long the grid must hold data in the queue for recovery, weighed against the free space on each broker. Ask the vendor or check the Security Onion Kafka documentation for where this key is set in a Salt-managed grid, and do not edit files by hand if the grid manages them. Done when the setting is applied on every broker and a broker restart reads the new value.
Plan the change window and rollback
The team schedules a change window with the SOC, because receivers and search nodes will change their data path while the switch runs. Agree on who can call a rollback, what evidence triggers it, and how analysts will know whether ingest is delayed. Take a current backup of the manager and confirm that it restores. Record the event counts per data source over a recent period so the post-change comparison has a baseline. Done when the change record names the owner, the rollback trigger, and the baseline counts.
Switch the global pipeline to Kafka
An administrator with grid rights sets the global pipeline to Kafka in the Security Onion Console, following the Kafka configuration steps in the Security Onion documentation, and applies the change to the manager and receiver nodes. Watch the grid apply the change and confirm that Redis and Logstash services on the manager and receivers stop as the new pipeline starts. Do this during the agreed window, one step at a time, with the rollback trigger in view. Done when the console shows the Kafka pipeline as active and the affected services report healthy.
Verify broker health and grid visibility
Check that every controller and broker reports healthy and that the cluster has an active quorum of controllers. Confirm that the manager still sees every node in the grid and that no node shows a stale or offline status. Review disk usage on each broker against the retention setting to confirm the trend is stable. Done when the cluster status is healthy, all nodes appear in the grid view, and broker disk use is inside the planned range.
Confirm events flow from receivers to search nodes
Send test traffic from a sensor and a Fleet-managed endpoint, then trace it through the receivers, into Kafka topics and onward to search nodes. Search for the test events in the Security Onion Console, and compare per-source counts against the baseline recorded during planning. Check that the search nodes index new data continuously and that no backlog grows over the observation period. Done when test events are searchable, per-source counts match the baseline within the agreed tolerance, and the SOC confirms that dashboards and alerts show current data.
Setting retention so Kafka does not fill disks
Set log.retention.hours deliberately before the pipeline carries production traffic. Security Onion's Kafka guidance says retention must be configured to avoid filling disks, and on a grid where Kafka sits between the manager and receiver nodes and the search nodes, a full broker disk is a data loss risk, not just a capacity alarm. Kafka keeps messages for the retention window whether or not consumers have read them, so the window you choose is the amount of replay protection you buy in exchange for disk. When brokers run out of storage, the cluster stops accepting writes to affected partitions, and every component that depends on the queue backs up behind it. That is the outage the Kafka pipeline exists to prevent, so the retention setting is part of the guaranteed delivery design.
Work from the measured ingest rate, not from a guess. Run the grid under representative load long enough to capture daily peaks, measure the bytes per second Kafka receives on each broker, and multiply out the window you want. Then compare that figure with the usable space per broker after the operating system, logs and headroom are subtracted. The supplied documentation sets a minimum of 500 GB storage for each broker, which is the floor for the hardware, not the sizing answer. A larger replay window needs more disk on every broker, so the 500 GB minimum may be too small for your window. Ask Security Onion Solutions to confirm how retention interacts with the replication setup in your design, because replicated copies consume space on each broker.
Retention and disk monitoring are day-two operations, and they need an owner before go-live. Alert on broker disk usage well before the threshold where writes would stop, and review the measured ingest rate after every major change to sensors, detections or log sources, since any of those can raise volume. Record the chosen window, the disk budget and the alert thresholds in your runbook so the next operator can tell whether a change is safe. The operational procedures for backups, retention and grid monitoring are covered in the Security Onion operations and troubleshooting work, and that is where the monitoring and capacity review should be scheduled.
Securing Kafka traffic and access in the grid
Kafka in a Security Onion Pro grid carries security telemetry between the manager, receiver and search nodes, so its transport, access control and host hardening all matter. The cards below cover the Kafka security settings you need to decide on, and the points where Security Onion's own configuration must be confirmed in its docs before you change anything.
TLS between clients, brokers and tools
Kafka encrypts traffic with SSL/TLS, but security is optional, so a cluster can run unsecured or mix secured and unsecured listeners. Decide the listener layout up front and avoid leaving a plaintext listener open by accident, especially one reachable from the sensor or search network. Confirm with the Security Onion Kafka docs which listeners the grid configures and how certificates are supplied to them.
Kafka security overviewSASL mechanisms for client authentication
Kafka authenticates clients, brokers and tools with SSL or SASL. The documented SASL mechanisms are GSSAPI (Kerberos), PLAIN, SCRAM-SHA-256, SCRAM-SHA-512 and OAUTHBEARER. Pick one that fits your identity estate and avoid PLAIN without TLS, since it sends credentials in clear text. Confirm which mechanism Security Onion Pro configures for its own services before adding any custom client.
ACL behavior in KRaft mode
In KRaft clusters the StandardAuthorizer stores ACLs in the cluster metadata log. Resources without ACLs are restricted to super users unless allow.everyone.if.no.acl.found is set to true. Leave that setting false unless you have a reason to open a resource, and test that the grid's own service accounts still have the access they need. Confirm the authorizer and super user settings Security Onion applies before you edit them.
Kafka authorization docsController and broker host hardening
Controllers and brokers hold the message log and cluster metadata, so treat them as the most sensitive hosts in the pipeline. Limit inbound access to the Kafka ports from the grid's own nodes, keep the operating system patched, and restrict administrative logins. Apply the minimum sizes from the Security Onion Kafka docs as a floor, not a ceiling, and confirm how Security Onion's firewall host groups apply to these nodes.
Certificate and credential rotation
TLS certificates and SASL credentials expire or may be exposed, and rotating them on a live cluster needs a written procedure. Plan which certificates each listener uses, how a new one is staged, and how clients are moved without dropping messages. Ask Security Onion how Kafka credentials are generated and stored, and whether rotation is handled by the grid tooling or must be done by hand.
Questions buyers ask about Kafka in Security Onion
What drives the cost and effort of switching Security Onion to Kafka?
The cost is driven mostly by the hardware you add and the work to validate it. Security Onion's Kafka pipeline is a Pro feature, so the Pro license is a prerequisite, and the switch also adds nodes: the Security Onion Kafka docs recommend at least three controllers (minimum 4 cores, 8 GB RAM, 200 GB storage each) and at least three brokers (minimum 8 cores, 32 GB RAM, 500 GB storage each). Those machines recur as infrastructure costs, while the migration itself is one-time work. Effort rises with the size of your grid, the number of receiver nodes, how much custom pipeline configuration you already run, and how much testing your change process requires. Ask any partner for a written scope that lists each node, its sizing, the retention settings and the cutover test plan.
Is Apache Kafka itself licensed, and do I pay for it?
Apache Kafka is licensed under the Apache License 2.0 (SPDX: Apache-2.0), and the Apache Software Foundation project has no paid edition. Your cost is the infrastructure to run it and the people to operate it, not a license fee for Kafka. Security Onion is different: its repository is licensed under the Elastic License 2.0, which is source-available rather than OSI open source, and the Kafka pipeline is part of Security Onion Pro, a paid edition sold on 1 to 5 year terms. Confirm the license terms for each component with your legal team before you commit.
How long does the change take, and what drives the duration?
No duration is published in the sources for this change, so ask any partner or Security Onion Solutions for a timeline based on your grid. The main drivers are the number of nodes to deploy and validate, whether you can add the Kafka controllers and brokers beside the existing grid before cutover, how many sensors and search nodes feed the manager, and how long your change window and test cycles take. A distributed grid with receiver nodes usually takes longer to verify than a standalone install. Build time for the new nodes is only part of the schedule; allow for soak testing and a rollback plan before you switch the global pipeline.
What must our internal team provide before the work starts?
Your team should provide the hardware or cloud capacity that meets the minimum specifications, network paths between the Kafka nodes and the Security Onion manager and receiver nodes, and access to change approvals. You also need a current inventory of your grid, including manager, search, sensor and receiver nodes, the Security Onion version, and any custom Logstash or Redis configuration you run. Decide the disk budget for retention in advance, since log.retention.hours is the setting that protects disk. Finally, name the people who will review test results and approve the cutover.
Can our own team do the Kafka switch without a partner?
Yes, if your engineers are comfortable with Security Onion's distributed grid, Kafka operations and Linux administration, and have time for a staged rollout. The Security Onion Kafka docs describe the pipeline, but a first switch on a production grid carries risk, especially around retention, authentication and broker failure testing. Kafka's security model supports SSL and SASL authentication and ACLs in KRaft mode, and a misconfigured authorizer can block access, so plan that work carefully. A partner is most useful when your team lacks Kafka or Security Onion production experience, or when you need written evidence for an assessment.
How does the Pro license relate to the Kafka pipeline?
The Kafka pipeline is a Security Onion Pro feature for guaranteed message delivery, and it replaces Redis and Logstash on the manager and receiver nodes. Without a Pro license you keep the free edition's pipeline, so the switch is only possible on a Pro grid. Pro also adds OIDC single sign-on, LUKS encryption, FIPS mode, OS STIG compliance, the Security Onion API and professional support, which you should weigh as part of the same decision. Confirm current Pro terms and pricing directly with Security Onion Solutions, since DeployOpen does not set those prices.
What happens to Kafka version choices and upgrades over time?
Kafka 4.x supports only KRaft mode, so ZooKeeper-based clusters must migrate to KRaft before upgrading to 4.x, and clusters older than 3.3.x should move to 3.9.x first. The supported releases listed on the Kafka downloads page are 4.3.1, 4.2.2 and 4.1.2, and rolling upgrades are supported from the last three releases to the latest. Brokers require Java 17 since Kafka 4.0. Ask your partner or Security Onion Solutions which Kafka version the Pro pipeline is validated against before you choose a version, because the Security Onion release determines what is supported.
How DeployOpen scopes a Kafka pipeline change
DeployOpen works in fixed scope: the scope, deliverables and timeline for a Kafka pipeline change are agreed in writing before any work starts, and a quote follows from that written scope. DeployOpen does not publish a price list, so the useful preparation on your side is a clear statement of what you need changed and what your environment looks like. A typical scope for this change covers a sizing review of the manager and receiver nodes, configuration of the Kafka controllers and brokers on the Pro grid, the security settings for those brokers, retention settings that protect disk, the switch of the global pipeline from Redis and Logstash to Kafka, and cutover and verification afterward.
The sizing review is where the scope is most sensitive to your environment. Ask the reviewer to confirm the controller and broker counts against your current event volume and the hardware you can dedicate, and to check the minimum resources listed in the Security Onion Kafka documentation against the actual hosts. Retention needs to be agreed as a number your storage team can defend, along with who watches disk use after cutover. Security configuration, such as how clients and brokers authenticate and encrypt traffic and how access is authorized, should be listed as its own deliverable so it is not treated as an afterthought.
Confirm three things before you sign: which party owns the cutover window and any rollback decision, what verification evidence you will receive at the end (such as proof that events flow through the new pipeline and that no messages are lost in a planned test), and what happens to the scope if the sizing review finds that your hardware or event volume differs from what you described. Those answers should appear in the written scope, because they determine both the quote and the effort your own team must reserve during the change.
How DeployOpen delivers and supports Security Onion Kafka work
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, including Security Onion Pro grids. For Kafka guaranteed message delivery, we start from your grid layout, data volumes and retention needs, then build the controller, broker and pipeline changes in your environment and hand over the evidence your team needs to run them.
How we scope
- Review your current manager, receiver, search and sensor layout before changing any queuing path.
- Agree in writing which Redis and Logstash components move to Kafka and which stay in place.
- Confirm controller and broker counts, hardware, disk capacity and log.retention.hours values for your environment.
- Document Kafka access, TLS and authorization requirements agreed with your security team before build starts.
How we build
- Deploy the three-controller and three-broker layout on the hardware you have agreed, using the Security Onion documented sequence.
- Switch the global pipeline to Kafka in a planned change window with a rollback path defined in advance.
- Test delivery by stopping and restarting the manager and receiver nodes and confirming no events are lost in transit.
- Check disk growth against retention settings under realistic event volume before sign-off.
How we hand over
- Deliver a written record of the final topology, versions, configuration values and retention decisions.
- Provide a runbook covering broker failure, controller failover, disk alerts and pipeline switch-back.
- Walk your operations and security engineers through monitoring of Kafka lag, disk use and node health.
- Record any open items, such as Kafka upgrade planning, for your own schedule.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers for the Kafka pipeline.
- Plan Kafka version changes against the Security Onion release you run, confirming compatibility before any upgrade.
- Retest delivery and retention after Security Onion upgrades, grid node changes or large shifts in event volume.
- Agree support scope, response expectations and review cadence in the written retainer before work begins.

