Skip to content

Configure Endpoint Agents

Permit a Windows endpoint, install Elastic Agent, and prove that current Windows and optional Sysmon events reach Security Onion.

Machines: Security Onion + disposable Windows endpointUsers: SOC administrator + Windows administratorStarting point: healthy Standalone node and synchronised clocks
1 Permit2 Test ports3 Verify package4 Install5 Confirm data

Before you begin

Record the endpoint identity and expected policy. Security Onion currently uses TCP 8220, 8443, and 5055 between endpoint Elastic Agents and a Standalone manager; permit only the intended endpoint subnet and verify current vendor requirements before deployment.

Verify before overriding security controls

Download the installer only from the authenticated SOC interface. Verify its signature or checksum before overriding a SmartScreen warning.

Detailed endpoint procedure

Configuring Security Onion Firewall

To allow the agent to connect through the firewall, navigate to Administration → Configuration.

Select the quick link Allow Elastic Agent endpoints to send logs. This will automatically select firewall → hostgroups → elastic_agent_endpoint. Add *the agent’s subnet. Click the *green checkmark to apply changes. Note that the changes typically apply within 15 minutes.

image.png

image.png

Click on Options and Synchronize Grid to push out changes. Please note that this can take several minutes to complete.

image.png

Deploying Elastic Agent on Windows

After waiting for the firewall change to apply, verify the required Elastic Agent paths from an elevated PowerShell session on the Windows VM. Replace <SECURITY_ONION_IP> with the manager address.

Test-NetConnection <SECURITY_ONION_IP> -Port 8220
Test-NetConnection <SECURITY_ONION_IP> -Port 8443
Test-NetConnection <SECURITY_ONION_IP> -Port 5055

image.png

Each required test should report TcpTestSucceeded : True. If one fails, confirm the Security Onion host group, intervening firewall policy, routing, and destination service before installing the agent.

Navigate to the Downloads page and download the Windows Elastic agent (exe).

image.png

Sysmon is optional

The demonstrated WS2019 VM already has Sysmon installed. To ingest Sysmon events in your lab, install and validate Sysmon before continuing.

Right-click on the elastic agent and click Run as administrator.

image.png

If Microsoft Defender SmartScreen prevents the installer from running, stop and verify that it came from the authenticated Security Onion SOC Downloads page. Check its digital signature or recorded checksum before selecting More info and Run anyway in an authorised lab.

image.png

Installation will be initiated.

image.png

After installation is complete, check the Elastic agent installer log.

image.png

You should see Elastic Agent has been successfully installed and Elastic Agent Installation completed.

image.png

If you encounter an error, try installing the Elastic agent again. If the error persists, refer to the Security Onion documentation for troubleshooting.

By default, Security Onion’s Fleet agent policies include integrations that collect Windows event logs from key channels such as PowerShell, ForwardedEvents, and Sysmon Operational.

You can check agent policies by navigating to Elastic FleetAgent policiesendpoints-initialwindows-endpoints.

image.png

Checking Host Logs in Dashboard

To verify that host logs are being ingested, navigate to the Dashboards page and select Host Overview on SOC web interface.

image.png

This gives us high-level view of host logs that are being ingested via Elastic agent. We see Sysmon logs and Windows event logs being ingested from the host WS2019.

image.png

Checkpoint: trace one endpoint event

Generate a benign Windows event, record its time and host, and locate the same event in SOC. Confirm agent status, policy, dataset, hostname, timestamp, and relevant event fields rather than relying only on a dashboard count.

Completion criteriaThe endpoint is enrolled, all required network paths work, and a current source event is searchable with the expected host and dataset fields.

↑ Back to Security Onion journey map