added 1.1 API to the doc index, and reset flag to the log generator
This commit is contained in:
@ -18,6 +18,8 @@ include::development.asciidoc[]
|
|||||||
|
|
||||||
include::api_methods.asciidoc[]
|
include::api_methods.asciidoc[]
|
||||||
|
|
||||||
|
include::api_methods_1_1.asciidoc[]
|
||||||
|
|
||||||
include::api_methods_1_0.asciidoc[]
|
include::api_methods_1_0.asciidoc[]
|
||||||
|
|
||||||
include::api_methods_0_90.asciidoc[]
|
include::api_methods_0_90.asciidoc[]
|
||||||
|
|||||||
@ -34,6 +34,10 @@ var optimist = require('optimist')
|
|||||||
help: {
|
help: {
|
||||||
describe: 'This help message',
|
describe: 'This help message',
|
||||||
type: 'boolean'
|
type: 'boolean'
|
||||||
|
},
|
||||||
|
reset: {
|
||||||
|
describe: 'Clear all logstash-* indices before genrating logs',
|
||||||
|
type: 'boolean'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -270,6 +274,15 @@ queue.drain = function () {
|
|||||||
};
|
};
|
||||||
|
|
||||||
async.series([
|
async.series([
|
||||||
|
function (done) {
|
||||||
|
if (argv.reset) {
|
||||||
|
client.indices.delete({
|
||||||
|
index: 'logstash-*'
|
||||||
|
}, done);
|
||||||
|
} else {
|
||||||
|
done();
|
||||||
|
}
|
||||||
|
},
|
||||||
function (done) {
|
function (done) {
|
||||||
client.cluster.putSettings({
|
client.cluster.putSettings({
|
||||||
body: {
|
body: {
|
||||||
|
|||||||
Reference in New Issue
Block a user