Skip to content

Instantly share code, notes, and snippets.

View shairozan's full-sized avatar

Darrell Breeden shairozan

View GitHub Profile
@huksley
huksley / graylog2-wipe.sh
Created May 16, 2013 10:08
Clean all data in graylog2 without deleting settings, with full restart
#!/bin/sh
service elasticsearch stop
service graylog2-server stop
killall -9 java
service apache2 stop
rm -Rf /opt/elasticsearch/data/*
# IF YOU HAVE AUTH USE THIS LINE - mongo graylog2 --eval "db.auth('graylog2', 'PASSWORD'); db.message_counts.remove();"
mongo graylog2 --eval "db.message_counts.remove();"
service elasticsearch start
service graylog2-server start