Skip to content

weslambert/misc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages