How to investigate Windows EVTX files with so-import-evtx
When an incident responder pulls Windows event log files from affected hosts, those logs need to be searched next to the network data Security Onion already holds. so-import-evtx imports one or more EVTX files from the command line with sudo and prints a link to the imported logs in SOC. If you upload the files through Grid instead, the import runs automatically. Either path lets analysts pivot from a suspicious authentication or process event to the Zeek connections and Suricata alerts from the same time window, which is often the fastest way to see whether host activity and network activity tell the same story.
Teams usually need this when the host logs were never forwarded to Security Onion, when a retained export from an earlier period is the only evidence available, or when a responder collected Security and System logs from a machine that was isolated before its logs could reach the monitoring stack. The import does not replace a live log pipeline. Events arrive as a one-time snapshot, so ongoing monitoring, alerting on new host activity and retention of those events still depend on forwarding them through Elastic Agent or syslog. Confirm with your Security Onion version and grid layout how imported events are indexed, how long they stay searchable, and whether your analysts' roles can view them, because those details decide whether the import is useful in your case workflow.
Before you run it, decide who owns the evidence chain. Record the source host, the collection method, the file hashes and the time zone of the exported logs, since mismatched time zones are a common reason cross-referenced timelines fail. Confirm the exact syntax and any options for your release in the Security Onion documentation for so-import-evtx, and test the import on a copy of a known sample file first so the team knows what the output link looks like before an active incident depends on it.
Choosing between so-import-evtx and Grid upload
With so-import-evtx, an operator logs in to the manager node and runs the command with sudo, passing one or more EVTX files. The operator needs shell access to the manager, which is a privileged position in the grid. With Grid upload, an analyst or administrator uses the Security Onion Console to upload the files, and the import runs automatically without a shell session. The choice shifts the work from a systems operator to someone who works inside the web interface.
- Shell access: The command line path requires SSH access and sudo rights on the manager. Grid upload requires only console access with the right role.
- Operator skill: Command line imports suit a small group of engineers who already administer the grid.
- Repeatability: Scripts can wrap so-import-evtx, but any script run on the manager must be reviewed like other administrative change.
- Analyst independence: Grid upload lets investigators load evidence without waiting for a platform administrator.
- Audit trail: Confirm which actions each path records in your logs, since shell sessions and console uploads leave different traces.
Confirm with your own grid which roles can reach the upload feature and which accounts can reach the manager shell before you assign either path to a team.
Both paths place imported logs into the same searchable data, so anyone who can query the imported events can read them. The difference lies in who can start an import and who can reach the files before they are ingested. Limiting the command line path to a few administrators keeps imports tightly controlled, while Grid upload depends on the role model configured in the console.
- Role scope: Map which console roles can upload and which can only search imported events, and test those boundaries with a non-admin account.
- Manager exposure: Keep the manager reachable only from administrative networks, because the command line path depends on that host.
- Shared accounts: Avoid shared sudo or console accounts, so each import can be tied to a named person.
- Data visibility: Confirm whether imported events inherit the same visibility as live data in your deployment, or whether any separation is needed.
- Multi-tenant or multi-team grids: If several teams share one grid, decide whether imported incident data must be visible to all of them.
Review these settings with your identity and security team, and document the answers in the same place as your role matrix.
Windows event logs from an incident are evidence, so the import path affects how the files are moved, stored and recorded. The command line path involves copying files to the manager, which places a working copy on that host. Grid upload moves files through the web interface, which may leave the original in the browser workflow or a temporary location, depending on the deployment. Confirm the exact handling for your version before you rely on either path for evidence.
- File transfer: Document how files reach the manager for the command line path, including the transfer method and who holds the copy.
- Original preservation: Keep the untouched originals with a recorded hash in your evidence store, separate from the imported copy.
- Temporary storage: Ask the vendor or your own testing where uploaded files are staged and how long they remain.
- Chain of custody: Record who collected the logs, who imported them, and when, whichever path you use.
- Deletion: Confirm how imported files and staged copies are removed once the case closes.
Test both paths on sample logs in a lab grid and check the staging locations before a real incident uses them.
The two paths need different training. The command line path requires operators who understand the manager host, file permissions, sudo use and the output that so-import-evtx prints, including the link to the imported logs in SOC. Grid upload needs analysts who know the console, can pick the right upload options and can confirm that the events appeared before they begin hunting. Both groups need to know how the imported data is searched alongside network data.
- Operators: Train at least two people on the command line path so an import can proceed when one is unavailable.
- Analysts: Train analysts on Grid upload and on checking that the import completed before drawing conclusions.
- Verification habits: Teach both groups to compare event counts or sample records against the source files.
- Documentation: Keep a short runbook for each path, with the exact steps used in your environment.
- Refresher cycle: Repeat the exercise after each Security Onion upgrade, because console screens and commands can change.
Ask your team which people already hold these skills and plan the training before the first real case, since the first import often happens under time pressure.
Import options and when each fits
This table compares the ways to bring EVTX files into Security Onion and the deployment choices that affect them. Read each row as a routing decision: find the situation that matches your incident, then check the confirmation column before you start the import.
| Choice | When it fits | What to confirm first |
|---|---|---|
| Command-line import with so-import-evtx | You have EVTX files on a Security Onion node you can access and an analyst with sudo rights runs the import directly. | Which node holds the files, that the sudo user is authorized for the import, and that the output link opens in SOC for the right analysts. |
| Grid upload | Your analysts work in the Console and prefer uploading evidence without shell access to a node. | That your Grid version offers upload and that the upload runs the same import process as the command line. |
| Single EVTX file | One host or one log channel from the incident is enough to test a hypothesis or confirm a timeline. | That the file came from a known host, the export is complete, and the time range is recorded in your case notes. |
| Multiple EVTX files | The incident spans several hosts, such as a domain controller and workstations, and you need to hunt across them together. | Naming and host attribution for each file, and whether the command accepts the full set in one run or needs repeated runs. |
| Existing production grid | Evidence must sit alongside live network data from Suricata and Zeek so analysts can pivot between them. | Storage headroom on search nodes, who can access the imported data, and retention rules that will apply to the imported logs. |
| Lab or import deployment | You are validating the workflow, training analysts or handling evidence that must stay separate from production. | Which deployment type you have, that it can run the same import steps, and that no live network data is expected in that environment. |
| Air-gapped or restricted network | The grid has no internet access and all evidence arrives on removable media. | How the files are transferred and checked into the environment, and that your handling procedure covers chain of custody. |
How imported EVTX events reach the hunt workflow
The flow starts with Windows event log files collected from an incident. An analyst either runs so-import-evtx from the command line with sudo or uploads the files through Grid, which runs the same import automatically. The imported events land in the Security Onion grid, where they are searchable in SOC next to Suricata and Zeek network data. From there the analyst pivots to cases. Check that the imported events carry the host and time context you expect before building hunts on them.
Two import paths feed the same grid, where SOC hunts across EVTX and network data.
Steps to load and verify EVTX evidence
This sequence takes Windows event log files from an incident into Security Onion in a controlled, verifiable way. The result is a set of imported logs that analysts can search, with timestamps and host fields checked, alongside the network data already in the grid.
Confirm deployment type and console access
Before any evidence moves, the responsible analyst confirms which Security Onion deployment type is running (Import, Evaluation, Standalone or Distributed) and that they can reach the Security Onion Console (SOC) with an account that has the access needed to search the imported data. Check the grid's health from the manager, and confirm with the platform owner whether uploads go through the command line or through Grid upload, since that determines the import path. The step is done when the analyst has written down the deployment type, the SOC address and the account used, and has confirmed that a simple search returns current network data.
Copy evidence to a controlled location
Copy the EVTX files from the source system into a controlled working directory on the Security Onion host or the workstation that will run the import, using a method your incident response procedure approves. Record a cryptographic hash (SHA-256 is the usual choice, confirm the algorithm your team requires) for each original file and for each copy, and store the hash list with the case record. Keep the original media or export unchanged. The step is done when every copied file matches its recorded hash and the hash list is filed with the incident record.
Run so-import-evtx on the files
On the node that holds the import tooling, run
so-import-evtxwith sudo against one or more of the copied EVTX files, passing the full paths. The command loads the events and prints a link to the imported logs in SOC. If you use Grid upload instead, the upload runs the same import automatically, so the check in this step is identical. Watch the command output for errors on individual files and note any file that did not load. The step is done when the command completes without errors for each file and prints the SOC link.Open the printed link in SOC
Open the link printed by the import in the Security Onion Console. Confirm that the browser lands on events from the imported logs rather than live sensor data, and that the result count is not zero. If the link returns nothing, check the command output for the file names, confirm the sudo run completed, and re-check the import on the console. The step is done when the analyst can see imported events in SOC and has noted the count of events per file to compare against the source logs.
Verify event times and host fields
Sample events from each file and compare their timestamps and host fields with the source system's own log views or the examiner's notes. Check that event times match the expected time zone and that the host name, channel and event ID fields are populated as expected. Note any mismatch, because a time offset or host mismatch changes how events line up with network activity. Record the findings in the case notes. The step is done when a documented sample of events from each file matches the source, and any discrepancy has an explanation written next to it.
Hunt across endpoint and network logs
Run hunts in Hunt that combine the imported EVTX events with network alerts and Zeek or Suricata records for the same hosts and time window. Use Onion Query Language (OQL) to filter by host, event ID and time range, then pivot from a host's logon events to the connections and alerts seen for that address. Confirm that the hunt returns rows from both the imported logs and the network data. Promote useful queries into the case record so the work can be repeated. The step is done when the analyst has at least one saved query that links an endpoint event to a network record and the results are attached to the case.
Record the verified evidence set
Write the final evidence record for the case: the list of EVTX files, their hashes, the import command or upload used, the SOC link, the event counts, the time and host checks and the saved hunts. Ask a second analyst to review the record and repeat one sample check. This record lets reviewers and auditors trace how the events reached the grid. The step is done when the record is complete, the second reviewer has signed off, and the case holds the link to the imported logs.
Hunting EVTX events alongside network data
The value of importing EVTX files into Security Onion is that analysts can pivot between Windows events and the network records Suricata and Zeek produce for the same activity. A hunt usually starts from one signal, such as a logon or a process creation event from a host in the incident, and then asks which connections, DNS lookups or file transfers that host made around the same moment. Before you start, confirm which fields in your imported events correspond to host identity, user account and IP address, because the pivot only works where those values line up with the network data. The exact field names depend on how the events are parsed and mapped in your grid, so check the mappings on an imported sample in your own environment rather than assuming them.
Time alignment is the second requirement and the one most often missed. Imported EVTX files carry their own timestamps, and the time zone and clock accuracy of the source host determine whether a Windows event lines up with a Suricata or Zeek record from the same minute. Set the Hunt time range to cover the full window of the suspected activity, widen it when the source host clock may have drifted, and record any offset you find in the case notes so other analysts can interpret the results the same way. Confirm how your sensors and the imported logs are timestamped by comparing one known event across both sources before you draw conclusions from a timeline.
A hunt that finds something useful should leave a trail. Save the query, add the matching Windows events and network records to a case as evidence, and note which pivot fields produced the match. If the same pattern should trigger again, turn the working query into a detection and test it against the imported data first so you know it fires on the incident and stays quiet on normal activity. Ask your Security Onion operator or partner to confirm how case evidence from imported files is stored and retained in your deployment, since that determines what the case record can show an auditor or a later responder.
Security and evidence handling for imported logs
Imported EVTX files often come from systems under investigation, so the import path is also an evidence path. The cards below cover who can run the import, how the source files are protected and verified, what roles analysts hold once the events are indexed, and how long the copies stay in the grid. Check each control before the first file is loaded.
Limit who can run the import
The command-line path runs with sudo, so anyone who can execute it can write new events into the grid. Restrict sudo rights on the manager to named responders for the duration of the case, and record who was granted them. Confirm whether Grid upload is available to your analysts and whether it runs the same import process before you allow it as the default route.
Protect the source files
The EVTX files are the primary evidence, and a copy that has been opened, edited or re-exported may no longer match the original. Store the originals on read-only media or a restricted share, and work only from copies. Keep the staging directory separate from analyst workstations so that files are not left on shared hosts after the import completes.
Hash files before and after import
Compute a cryptographic hash of each EVTX file when it is collected, and record the hash in the case notes with the collection time and collector name. Recompute the hash before import to confirm the file has not changed in transit. This gives you a documented link between the evidence and the events you later cite in findings, which matters if an auditor or legal reviewer asks how the data was handled.
Scope analyst roles to the case
Analysts who triage alerts do not always need to search imported historical logs, and imported incident data may include sensitive user activity. Decide which roles can view imported indices and which can change rules, acknowledge alerts or open cases. Review role assignments when the case closes, and confirm in the Security Onion Console that the roles behave as you expect for imported data.
Set retention for imported data
Imported events are indexed like live data, so they follow the retention settings of the grid unless you manage them separately. Decide whether imported incident data should be kept longer or removed after the case closes, and document the decision with the case record. Ask your Security Onion administrator how retention is configured on your grid before you import, because changing it later may affect data already loaded.
Confirm the license before deployment
The Security Onion repository is licensed under the Elastic License 2.0, which is source-available and not an OSI-approved open-source license. Have legal or procurement review the terms for your intended use, including any internal hosting or service delivery you plan. Confirm this review is complete before the import workflow is documented as an approved incident response procedure.
Security Onion repositoryQuestions teams ask before importing EVTX evidence
How much does it cost to import EVTX files into Security Onion?
The software is free to download, so the cost is the people and infrastructure around the import. Your own analysts or a partner are paid for scoping, collecting and preparing the logs, running the import, building hunts and writing up findings, and you carry the cost of the grid that stores and searches the data. Most of this is one-time work for a single incident. Recurring costs appear only if you keep a grid running for ongoing monitoring or add a support agreement. Ask any partner for a fixed-scope quote that lists each task, the systems touched, the number of log sets and the report format, because those items drive the price more than the file count alone. Security Onion Pro is a separate paid edition on 1 to 5 year terms, so confirm whether you need it before budgeting.
How long does an EVTX import and hunt take?
The import itself is usually the shortest step, and the time that varies most is the hunting and the verification that follows. The main drivers are total volume across all files, the number of hosts and time ranges involved, whether the files are complete or partial, how much network data overlaps the same period, and how many questions the investigation must answer. Storage and search capacity on the node matter too, because large imports compete with existing indexing and queries. Rather than relying on a generic figure, measure one representative file on your test grid, then extrapolate. Ask any partner to base the timeline on that measurement and on the number of hosts in scope.
Can our internal team import and hunt EVTX files without outside help?
Yes, if you have an analyst who can use the Security Onion Console, run so-import-evtx with sudo on a node you control, and write Onion Query Language searches. The tool is a command-line import that prints a link to the imported logs in SOC, and uploading through Grid runs the same import automatically. The harder parts are knowing which Windows logs matter for the incident, correlating events with Zeek and Suricata data, and documenting findings in a form that holds up to legal or regulatory review. Teams without this experience often bring in a partner for the first case, then take over the workflow. Be honest with yourself about staffing during an active incident, when the same analysts are also containing the threat.
What do we need to provide before an EVTX import starts?
You need access, evidence and a place to test. Access means a named account in the Security Onion Console with the right role, sudo rights on the node that will run the import, and a secure channel for transferring the files. Evidence means the EVTX files themselves, a record of where and when each was collected, the hosts they came from, and the time zone each system used, because mismatched clocks are a common source of confusion. A test grid is strongly advisable so you can confirm import behavior, file size limits and search performance before the incident data arrives. Ask your partner to list these requirements in the written scope so nothing is discovered mid-engagement.
Should we bring in a partner during an active incident?
Bring in a partner as early as your internal team cannot cover both containment and evidence analysis, and before anyone changes or re-collects the source logs. A partner is most useful when they can work from a copy of the files you already preserved, with a written scope that names the questions to answer, the hosts in scope and the deliverables. Do not let an outside party work directly on production systems without clear authorization from your incident lead and legal counsel. Expect the partner to ask for chain-of-custody details and to report what the evidence shows and what it does not. If you have a retainer or an established engagement, confirm the contact path before the incident happens.
Does importing EVTX files into Security Onion change the original evidence?
Importing does not need to alter the original files, but you should keep an unmodified copy of every EVTX file and record its hash before any work begins. The import creates indexed copies in the grid, so the search results reflect the content of the file at import time. Store the source archive under your own evidence controls, and confirm with your legal or compliance team how long it must be retained. Any analysis performed on the imported copy should be documented so reviewers can trace each finding back to the original file.
What engineering checks should we run before trusting the search results?
Start by confirming that event counts for a known host and time range match what the source system reports, and that timestamps line up with the time zone you recorded. Next, check that the event IDs you rely on appear as expected, that fields used in your Onion Query Language searches are populated, and that no files failed silently during import. Compare a few key events against the raw XML to confirm parsing. Finally, correlate a sample of Windows events with Zeek and Suricata records from the same period to confirm the timeline holds together. Write these checks into your runbook so another analyst can repeat them.
Operating EVTX imports after the incident
Record every EVTX import as evidence the moment it is loaded. Each file imported with so-import-evtx should be logged with its source host, the collection method, the hash of the original file, the operator who ran the import, the case number and the time of import. The command prints a link to the imported logs in SOC, so capture that link in the case notes at the same time. Keep the original .evtx files in the case evidence store, untouched, so the imported copy can always be traced back to a verifiable source. Confirm with your legal or incident response lead how your organization expects chain of custody to be recorded, because the import tool does not produce that record for you.
Decide retention before the import, not after the case closes. Imported EVTX data sits in the same Security Onion data store as live monitoring, so it is subject to the same retention and access rules as everything else on the grid. Agree with your compliance team whether imported logs from a closed case should be kept, removed or exported to the case archive, and who approves each choice. Check how removal works in your grid version and how it affects any detections or dashboards built on those events before anyone deletes data. Record the decision in the case so the reasoning survives staff changes.
Repeat the import the same way every time. Write a short runbook covering the file naming convention, the target grid, the import method (command line or Grid upload), the tags or case fields to set, and the verification query an analyst runs to confirm event counts look sensible. Use the same runbook across incidents so results can be compared. Link each import to the case workflow used for alert triage and escalation, so imported evidence is reviewed, tagged and attached to the same case as the network alerts that prompted the investigation. Test the runbook on a non-production grid first, and confirm your Security Onion version's behavior for uploads with your own environment before relying on it during an incident.
How DeployOpen scopes and supports EVTX investigation work
DeployOpen treats EVTX loading as part of a wider Security Onion investigation setup, not a one-off import. We agree the evidence sources, the grid path and the hunts that matter before any file is loaded, then document and hand over the workflow so your analysts can repeat it on the next incident.
How we scope
- Engagements are fixed-scope, with the EVTX sources, collection hosts and time ranges agreed in writing before work starts.
- We confirm whether your grid is Import, Standalone or Distributed, since that decides between so-import-evtx and Grid upload.
- The written scope names which network data sets the event logs will be hunted alongside, such as Zeek and Suricata records.
How we build
- We test the import path on sample EVTX files from a non-production host so the analysts see the expected fields and timestamps.
- We check that imported events are searchable in SOC and pivot correctly to network records for the same hosts and time windows.
- We document the sudo command, the Grid upload steps and the access rights needed for each analyst role.
How we hand over
- Deliverables include a written runbook covering file handling, chain of custody notes and the link each import produces.
- We provide sample OQL hunts for common Windows event categories, tested against the imported data in your environment.
- We walk your analysts through a live import and hunt, then leave a checklist they can follow during an incident.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers once the initial scope closes.
- Retainer support can cover re-testing the import path after Security Onion upgrades or changes to the grid.
- Ask us to confirm, before signing, how your organization's evidence handling rules apply to imported log files.

