Database Commands - Snorby/snorby GitHub Wiki
bundle exec rake snorby:soft_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
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