Removing or replacing a Security Onion node

Retiring or swapping a Security Onion node without losing data, detections or sensor coverage depends on the node's role and the order of steps. This page covers what to plan, how each node type comes out of a grid, and what to confirm before you start.

On this page

When removing or replacing a Security Onion node is the right move

You need to remove or swap a Security Onion node when one is failing, undersized for the traffic it sees, past its support window, or being moved to new hardware. The goal is to make that change without breaking search, alerting or grid monitoring for analysts. The work differs by role. A sensor captures traffic and can often be replaced with less disruption to stored data. A search node holds indexed events and shards, so its data has to be moved or accepted as lost before it leaves the grid. A receiver adds pipeline redundancy and load balancing, so removing one changes where events flow. The manager is the most consequential role, because it coordinates the rest of the grid and holds the configuration and credentials that the other nodes depend on.

The Distributed deployment type, with a manager, one or more sensors and one or more search nodes, is the recommended design for production, and that is the design most readers will be changing. The architecture documentation is direct about the dependency: if the manager goes down, search nodes stop indexing because they cannot reach Redis. A manager replacement is therefore a planned outage for ingest, not a quiet swap. Before you touch any node, confirm which role it holds, what data lives on it, and whether a replacement is already installed and reachable. Also confirm the version and operating system of the replacement against the Security Onion EOL documentation, since a node that is at end of life may need a fresh install rather than an in-place change.

Treat the manager replacement as a rebuild from backups, and plan the sequence before the change window opens. Confirm that you have a recent copy of the configuration and the data you need to keep, stored off the manager itself, and that you can restore it onto new hardware that meets the minimum requirements for a manager or search node. Decide early whether search data on the outgoing node will be drained first or accepted as lost, because that choice drives the order of every later step. The sections that follow walk through each of these steps in order.

Search nodes depend on the manager, so removing the wrong role stops indexing

The diagram starts at the sensor nodes, which capture traffic and send events toward the grid. Those events pass through optional receiver nodes for pipeline redundancy and load balancing, then reach the search nodes, which index them into Elasticsearch. The manager sits at the centre: search nodes depend on it for Redis, and if the manager goes down, search nodes stop indexing. Before retiring any node, check which hand-off it sits on and whether a replacement is already receiving traffic.

Removing the manager or a search node interrupts indexing; sensors keep capturing only if feeds reroute.

Which removal path fits each node role

This table compares what each Security Onion node role needs before removal, what leaves Grid Members, whether SOC needs a restart, and how its Elastic Agent is handled. Treat each row as a checklist to confirm against the documentation for your installed version, because exact steps change between releases. The main takeaway is that manager and search nodes carry data or dependencies that must be moved first, while sensors and Fleet nodes mostly need their traffic or enrollments redirected.

Node roleDrain or confirm firstDelete from Grid Members and SOCElastic Agent step
SensorMove the TAP or SPAN feed to the replacement sensor and confirm no analyst depends on its captureRemove the node from Grid Members, then confirm in your version's docs whether SOC needs a restartUnenroll the Elastic Agent, then confirm it no longer appears in Fleet
Search nodeConfirm shards have moved to other search nodes and cluster health is acceptable before removalRemove from Grid Members only after data has left the node, then confirm the SOC restart stepUnenroll the Elastic Agent once the node holds no data that still needs indexing
Receiver nodeConfirm sensors and other nodes send events through the remaining or replacement receiverRemove from Grid Members, then confirm the pipeline and SOC restart steps for your versionUnenroll the Elastic Agent after no pipeline depends on this node
Heavy nodeConfirm no saved searches, scheduled work or analyst workflows depend on the node and move any role it hostsRemove from Grid Members, then confirm whether SOC needs a restart in your version's docsUnenroll the Elastic Agent and check that no integration still points to this node
Fleet nodeConfirm enrolled agents have reconnected to another Fleet node before stopping this oneRemove from Grid Members, then update enrollment addresses in agent policiesReassign enrolled agents first, then confirm the unenrollment method for your version
ManagerTake backups and copy them off the manager, since search and sensor nodes depend on itReplacement means rebuilding from backups, so confirm the restore procedure for your versionIdentify which agents enroll through the manager and plan their re-enrollment

How to retire a search node without losing indexed data

This sequence moves Elasticsearch data off a search node before the node leaves the grid, so indexed logs and alerts stay searchable and the grid has no orphaned component. Each step ends with a check you can record before moving on.

  1. Confirm cluster health and shard placement

    Before changing anything, record the Elasticsearch cluster status and which shards sit on the search node you plan to retire. Use the Security Onion Elasticsearch health tooling on the manager to capture the current status, the count of primary and replica shards on that node, and any shards already unassigned or relocating. Your change window should start only if the cluster is in a state you understand and can document. Done means you have a saved baseline that you can compare against later.

  2. Confirm the remaining nodes can hold the data

    Check that the other search nodes have enough disk and heap headroom to take the shards from the node being retired, and that disk watermarks will not block relocation. Ask your team to confirm the replica settings for your indices, because a shard with no replica on another node will be lost when the node is removed. If capacity is short, add or prepare the replacement search node first. Done means you have written confirmation that the remaining nodes have room, and you know which indices have replicas.

  3. Drain search node data off the node

    Exclude the search node from data allocation so Elasticsearch moves its primary and replica shards to the remaining nodes. The exact method depends on your Security Onion version and the Salt-managed configuration on your grid, so confirm the procedure against the current architecture documentation for your release before running it. Make the change through the grid's supported configuration path rather than editing Elasticsearch files by hand. Done means the drain is set and relocation has started.

  4. Verify shard relocation has finished

    Watch the cluster until no shards remain on the node being retired and relocation activity has stopped. Recheck the shard count on that node, confirm no shards are unassigned, and compare the cluster status with the baseline from the first step. Do not remove the node while shards are still moving or while any index is missing a copy that existed before. Done means the node holds zero shards and the cluster is green or back to its recorded prior state.

  5. Remove the node from Grid Members

    Once the data is off the node, remove it from the grid using the Grid Members view in the Security Onion Console, which is driven by the manager. Removing the node before data has moved can strand shards or leave the cluster short of a copy. After removal, confirm the node no longer appears in the Grid page and that the manager has applied the change. Done means the node is absent from grid membership and the cluster status has not regressed.

  6. Restart SOC so the grid view refreshes

    Restart the Security Operations Console service on the manager so it stops referencing the retired node and rebuilds its view of the grid. Check the Console afterward for stale node entries, errors, or missing data sources. Confirm that searches still return results from the remaining nodes over a recent time range. Done means the Console loads cleanly, lists only active nodes, and returns expected results for a test query.

  7. Unenroll the Elastic Agent on the retired node

    Unenroll the Elastic Agent from Fleet for the retired host so it stops reporting and no longer appears as an active agent. Then power down the node or repurpose it according to your decommissioning process, and remove any DNS, firewall, or monitoring entries that point to it. Confirm in Fleet that the agent shows as unenrolled and that no offline-agent alerts fire for it after the next check-in cycle. Done means the agent is unenrolled and no traffic or alerts still depend on the node.

  8. Record the final cluster state and retain the change record

    Run the same health and shard checks you used at the start and compare them with the baseline. Record the node removal, the drain settings applied, the time of each check, and who approved each step in your change system. Keep the record with your backup and restore documentation so a later audit or incident review can see when the node left and where its data went. Done means the final state matches or improves on the baseline and the change record is complete.

Rebuilding a manager from backups

Rebuild the manager rather than repair it when its core state is gone or unreliable: the operating system or disk is lost, the manager's configuration can no longer be trusted, or the node is being replaced outright. Repairing a manager in place is the better choice when the node still boots, Salt and the Console work, and the problem is limited to a service or a single component. A rebuild is a restore onto new or reimaged hardware, so the question to settle first is what must come back exactly as it was. Before you touch the old node, confirm that a recent backup exists and that you can read it. Backups taken on the manager itself are lost with it, so copy them off the manager first. The sibling backup and restore topic covers what Security Onion backs up on its own, what it does not, and the restore steps, so this section does not repeat them.

Sequencing is where rebuilds go wrong. Plan to restore the configuration layer first, then PostgreSQL, then Elasticsearch objects such as cases and Kibana content, and confirm each stage before starting the next. Restoring out of order can leave the Console pointing at data that does not match the grid. Write down which backup set you are restoring, the version it came from, and the node names and IP addresses the grid expects. Keep those names identical, because sensors and search nodes are enrolled against the manager's identity and address. Record the grid state before the rebuild, including which nodes are enrolled and which are offline, so you can tell afterward whether anything drifted.

Sensors and search nodes depend on the manager being reachable again. The architecture documentation notes that when the manager is down, search nodes stop indexing because they cannot reach Redis, so sensor traffic may back up or be lost while the manager is away. Treat the manager outage as a grid outage and plan the window with the team that runs the sensors. After the manager is back, check the Grid page for every node's status and confirm that events are arriving again before you retire anything else. Ask your partner or vendor to confirm, for your version, which steps require re-enrollment and which keep existing agent connections. Keep the old manager powered off, not wiped, until the rebuilt grid has been verified.

Security risks when a node leaves the grid

A node that leaves the grid often keeps its access after the hardware is gone. The cards below cover the places where a retired or rebuilt node can still hold credentials, accept data, answer on the network or leave gaps in your records.

Credentials and keys on retired hardware

A node holds local secrets, certificates and keys generated during installation and enrollment. Before the hardware leaves your control, list every credential that node could have used and plan to rotate those that other nodes still trust. Wipe or destroy the disks only after you confirm the replacement has its own material and no shared secret depends on the retired host. Ask your team to record who performed each step and when.

Stale Elastic Agent enrollments

An Elastic Agent enrolled on a retired node can keep sending data to the grid if its enrollment is never revoked. Check the agent list in the Security Onion Console and unenroll agents tied to the node you are removing. Confirm no agent still reports under the old hostname before you consider the removal complete, because a silent agent looks healthy in some views.

Decommissioned sensors still on the network

A sensor that is powered down or disconnected from its management interface can still be reachable from other segments if its switch ports, routes or firewall rules remain. Remove the sensor's addresses from host groups, firewall allow lists and monitoring targets. Then verify from each network segment that the old management address no longer answers, and that any mirror or TAP feed has been reassigned or disabled.

PCAP and logs on reused disks

Full packet capture and indexed logs are sensitive, and they can survive on disks you plan to reuse, resell or return to a vendor. Identify which volumes held PCAP, Elasticsearch data and case exports before the node leaves service. Confirm with your storage and asset teams whether secure erase or physical destruction is required under your data handling policy, and keep a record of the method used for each disk.

Audit trail continuity across rebuilds

Rebuilding a manager can break the chain of records that show who changed detections, settings and cases. Before the rebuild, export the audit history and case records you must retain, and store them outside the node being replaced. After the rebuild, confirm that the new manager's logs begin where the old record ends, so an assessor can follow changes across the gap.

Analyst access changes after removal

Analysts may have bookmarks, saved searches or role assignments tied to the node or its hostname. When the node is gone, review user accounts, custom roles and SSO group mappings that referenced it. Remove access that no longer has a purpose, and tell analysts which console address and workflows replace the old ones so they do not keep trying the retired host.

Questions teams ask before removing a node

Can I replace a Security Onion node without any downtime?

Not always, and the answer depends on which node you are replacing. The architecture docs note that if the manager goes down, search nodes stop indexing because they cannot reach Redis, so manager work is the highest-risk change in a grid. Receiver nodes add pipeline redundancy and load balancing, which can keep ingest flowing while one of them is out of service. A search node removal depends on how much data it holds and whether the remaining search nodes can carry the load while its data is moved. Confirm the exact sequence for your node role against the architecture documentation and plan a window for any change that touches the manager.

What do I need to provide before a node replacement starts?

You need current backups, a documented inventory of your grid, and access to the systems that the change touches. Before any node is removed, confirm that you hold recent copies of the manager configuration and that you can restore them, because a rebuild depends on them. List every sensor, search, receiver and Fleet node with its role, hardware and network path, so the replacement matches what it replaces. You also need change approval, a maintenance window, and someone who can reach your hypervisor, cloud account or data center console. Your storage team should confirm free capacity on the search nodes that will absorb data during the drain.

What drives the cost and effort of replacing a node?

Grid size, the node role, and the amount of stored data drive most of the effort. A sensor swap mostly involves network mirroring and reconfiguration, while a search node swap means moving indexed data, which takes longer as volume grows. The number of nodes sharing the work and the spare capacity left after removal also change the plan. Cost components usually include internal staff hours, any partner scope, and new hardware if the replacement is larger. Hardware minimums are published in the hardware documentation, so check them first. Ask any provider for a written scope that lists each node, the data steps, the verification steps and what is excluded.

Can my in-house team remove or replace a Security Onion node?

A team with Linux administration, Salt familiarity and experience running a distributed grid can usually do it, provided it has tested backups and a rollback plan. The work touches the manager, Elasticsearch data, the SOC web application and Elastic Agent enrollment, so mistakes can affect analysts across the whole grid. Teams with a small on-call rotation or no recent grid experience often find the drain and rebuild steps the hardest part. Run a practice removal in a lab or evaluation deployment first, and document each command and check. Decide in advance who signs off before the production node is removed.

How long does a node rebuild take?

The duration cannot be stated here because it depends on your grid size, the volume of data to move, the node role, network throughput and how much verification you require. A manager rebuild from backups also depends on how complete and current those backups are. Ask any partner or internal lead for a duration tied to a written scope, and check whether it includes data drain time, verification and post-change monitoring. Plan for a window that covers a failed step and a rollback, not only the best case.

Does the removed node's data disappear, and how do I confirm nothing is lost?

Data held on a search node is not automatically safe when you remove that node, so confirm where its indexed data lives before you delete it. Drain or relocate the data first, then check cluster health and document counts against your expectations. Elasticsearch health checks, including the so-elasticsearch-query tooling, help you spot unassigned shards before you finish. Keep your case data and Kibana objects in an Elasticsearch snapshot or other copy outside the node. Confirm the exact steps for your version in the Security Onion documentation, since the procedure differs between releases.

When should I bring in a partner for a Security Onion node change?

Bring in a partner when the change touches the manager, the grid is production critical, or your team lacks recent experience with distributed grid operations. A partner is also useful when you need the work written as a fixed scope with deliverables, verification and a rollback plan before the window opens. DeployOpen plans, implements, backs up, upgrades, documents and supports self-hosted open-source platforms inside your own infrastructure, including Security Onion. Most engagements are fixed-scope and agreed in writing before work starts, and a quote follows from that scope. Ask for a named engineer, a dry run in a lab, and a written list of what happens if a step fails.

Does Security Onion's license affect how I replace nodes?

The license does not change the technical steps, but it does affect what you can do with the code. The Security Onion repository is licensed under the Elastic License 2.0, which is source-available rather than an OSI-approved open-source license. Review the Security Onion repository license with your legal team before you modify or redistribute the software as part of a replacement project. Confirm also whether your edition includes the professional support you expect, since the Pro edition is a paid option with different features.

What DeployOpen needs from your team to plan the change

Before we can scope a node removal or replacement, we need a clear picture of the grid as it runs today. The most important input is the grid topology: which manager, receiver, sensor, search and Fleet nodes exist, how many search nodes hold Elasticsearch data, and whether the grid is a Distributed design or something you have adapted. Node roles decide the work. A sensor swap mostly touches capture and detection, while removing a search node means moving its indexed data before anything is deleted. Please also send the exact Security Onion version on every node, since the removal steps differ between 2.4 and 3.x, and confirm the operating system, because only Oracle Linux 9 is supported for 3.0.0 and later.

Next we need to know where your backups live and whether they are current. Tell us what the manager backs up on its own, where copies are stored, when the last successful restore test ran, and whether any Elasticsearch snapshots for cases or Kibana objects exist. We also need your data retention settings for each search node, including whether retention is managed by data stream lifecycle or ILM, and the disk watermark thresholds in use. These settings determine how much data must be drained or accepted elsewhere, and whether a replacement node has enough space to take it. Confirm your change-control process and who approves deletions from the Grid page.

Finally, share your maintenance windows, the analyst hours that must stay uninterrupted, and any external dependencies such as SIEM forwarding or sensor traffic feeds that will be affected while a node is offline. Scope and deliverables are agreed in writing before work starts. Most engagements are fixed-scope, so the more precisely these inputs are described, the more precisely the written scope can name the steps, the checks and the rollback point. DeployOpen does not publish a price list. A quote follows from the written scope, so ask for the cost components to be itemized: planning, drain and rebuild effort, retest, and any follow-on support.

How DeployOpen scopes and delivers node replacement

DeployOpen plans, implements and documents node removal and replacement inside your own infrastructure, from the written scope through to handover. Each engagement starts with your grid layout, the data each node holds and the monitoring you rely on, so the change is sequenced around your analysts and your retention obligations.

How we scope

  • Written scope names each node to remove or replace, its role, and the Grid Members entries affected
  • Scope records how search node data will be drained and what retention must be preserved
  • Scope lists backups to verify, including manager configuration and Elasticsearch snapshots before any change
  • Fixed-scope agreement sets deliverables and timelines in writing before work starts

How we build

  • Work follows a confirmed sequence: drain, remove from Grid Members, restart SOC, unenroll Elastic agent
  • Each step is checked on your grid before the next one begins, with rollback points recorded
  • Manager rebuilds from backups are tested on a non-production copy where your environment allows it
  • Changes go through your Salt-managed configuration process, not ad hoc edits on individual nodes

How we hand over

  • Handover document records the final grid topology, node inventory and configuration changes made
  • Runbook covers the removal or replacement steps, verification queries and known failure points
  • Evidence pack shows backup verification, health checks and access changes for your audit trail
  • Walkthrough with your operators confirms they can repeat the procedure for future node changes

How we support

  • Post-change monitoring checks node status, search health and offline agent alerts for an agreed period
  • Ongoing support, upgrades and continuous testing are available as a retainer
  • Future node changes, including a planned Security Onion upgrade, can be scoped as a new written engagement
  • Confirm with DeployOpen the support window, response expectations and retainer terms before signing

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.