From 3d8a81038ef05293b55d847b86ba9b8701b13f00 Mon Sep 17 00:00:00 2001 From: Spencer Alger Date: Wed, 21 May 2014 12:44:56 -0700 Subject: [PATCH] added 1.1 API to the doc index, and reset flag to the log generator --- docs/index.asciidoc | 2 ++ scripts/generate/logs/index.js | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/docs/index.asciidoc b/docs/index.asciidoc index 5bf76109f..205af7125 100644 --- a/docs/index.asciidoc +++ b/docs/index.asciidoc @@ -18,6 +18,8 @@ include::development.asciidoc[] include::api_methods.asciidoc[] +include::api_methods_1_1.asciidoc[] + include::api_methods_1_0.asciidoc[] include::api_methods_0_90.asciidoc[] diff --git a/scripts/generate/logs/index.js b/scripts/generate/logs/index.js index 3420fd69e..dc1881a63 100644 --- a/scripts/generate/logs/index.js +++ b/scripts/generate/logs/index.js @@ -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: {