Increasing Suricata Cache memory limits
This procedure applies when the number of source ports in the switch mirroring (SPAN) session is
24 or more. Barracuda recommends increasing Suricata cache memory from the default 1 MB to 8 MB.
Step 1 – Stop Suricata
Open Services on the Windows Server.
Locate the Suricata service.
Click Stop.
Step 2 – Open suricata.yaml
Open a text editor as Administrator.
Open the file:
C:\Program Files\Suricata\suricata.yaml
Step 3 – Locate the PCAP section
In suricata.yaml, locate the pcap section. It typically looks like this:
pcap: - interface: Ethernet
Step 4 – Increase cache memory to 8 MB
Under the same pcap block, add:
pcap: - interface: Ethernet buffer-size: 8mb
Do not remove existing lines. Add only buffer-size: 8mb.
Step 5 – Save the configuration
Save suricata.yaml.
Close the text editor.
Step 6 – Start Suricata
Return to Services.
Start the Suricata service.
Step 7 – Verification (Optional)
Open the log file below and confirm Suricata starts without errors:
C:\Program Files\Suricata\log\suricata.log