added 1.1 API to the doc index, and reset flag to the log generator

This commit is contained in:
Spencer Alger
2014-05-21 12:44:56 -07:00
parent 531ceb00d2
commit 3d8a81038e
2 changed files with 15 additions and 0 deletions

View File

@ -34,6 +34,10 @@ var optimist = require('optimist')
help: {
describe: 'This help message',
type: 'boolean'
},
reset: {
describe: 'Clear all logstash-* indices before genrating logs',
type: 'boolean'
}
});
@ -270,6 +274,15 @@ queue.drain = function () {
};
async.series([
function (done) {
if (argv.reset) {
client.indices.delete({
index: 'logstash-*'
}, done);
} else {
done();
}
},
function (done) {
client.cluster.putSettings({
body: {