Database commands - Snorby/snorby GitHub Wiki

Reset Metrics Calculations

bundle exec rake snorby:soft_reset

Hard Database Reset

Drop the database and recreate the schema. This will destroy events, users, etc. Everything that's stored in the database.

bundle exec rake snorby:hard_reset

Drop False Positives (complex pruning)

RAILS_ENV=production rails c

Remove 1000 Events at a time false positives only.

 while Event.all(:classification_id => 8).count > 0 do
   trimdb = Event.all(:classification_id => 8, :limit => 1000, :order => :timestamp.asc)
   trimdb.destroy!
 end

Recalculate Statistics

$> bundle exec rake snorby:soft_reset

Back to Snorby E-Book

⚠️ **GitHub.com Fallback** ⚠️