Skip to content

Instantly share code, notes, and snippets.

View altmas5's full-sized avatar
๐ŸŠ

Jorge Vallecillo altmas5

๐ŸŠ
View GitHub Profile
#!/bin/bash
###################################################################
# check_postfix_mailqueue is developped with GPL Licence 2.0
#
# GPL License: http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
#
# First version developped by : Bjoern Bongermino
#
###################################################################
# This program is free software; you can redistribute it and/or
@altmas5
altmas5 / graylog2-wipe.sh
Created December 28, 2017 18:16 — forked from huksley/graylog2-wipe.sh
Clean all data in graylog2 without deleting settings, with full restart
#!/bin/sh
systemctl stop elasticsearch.service
systemctl stop graylog-server.service
rm -rf /var/lib/elasticsearch/nodes/0/indices/*
# 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();"
systemctl start elasticsearch.service
systemctl start graylog-server.service