Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 921 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 921 Bytes

misc

trimpcap_install - Use to install TrimPCAP (and it's dependencies) and set up a series of cron jobs to trim PCAPs recorded by Security Onion after a defined period.

Default cron job trims PCAPs as follows:

  • Older than 3 days: Trim to 1MB per flow
  • Older than 6 days: Trim to 102KB per flow
  • Older than 30 days: Trim to 10KB per flow

To install, from your Security Onion box, copy and paste the following into a terminal:
sudo wget https://raw.githubusercontent.com/weslambert/misc/master/trimpcap_install && sudo chmod +x trimpcap_install && sudo ./trimpcap_install

After installation completes, the cron jobs should run at 1AM (UTC) every day.

You can edit /etc/cron.d/trimpcap to change the execution time.

See the following for more information about TrimPCAP:
http://www.netresec.com/?page=Blog&month=2017-12&post=Don%27t-Delete-PCAP-Files---Trim-Them