From 581e87af03d0147635eacd3c5277537a8514da4a Mon Sep 17 00:00:00 2001 From: Jake Landis Date: Tue, 23 Oct 2018 09:03:20 -0500 Subject: [PATCH 1/3] console: ingest node - add tag and update pipeline processor parameter --- src/core_plugins/console/api_server/es_6_0/ingest.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core_plugins/console/api_server/es_6_0/ingest.js b/src/core_plugins/console/api_server/es_6_0/ingest.js index d56c2f5e9e710..27c43324a4aae 100644 --- a/src/core_plugins/console/api_server/es_6_0/ingest.js +++ b/src/core_plugins/console/api_server/es_6_0/ingest.js @@ -19,7 +19,8 @@ const commonPipelineParams = { on_failure: [], - if: '' + if: '', + tag: '' }; // Based on https://www.elastic.co/guide/en/elasticsearch/reference/master/append-processor.html @@ -268,9 +269,9 @@ const lowercaseProcessorDefinition = { const pipelineProcessorDefinition = { pipeline: { __template: { - pipeline: '' + name: '' }, - pipeline: '', + name: '', ...commonPipelineParams } }; From b90bcf1ea068b7d9adef7ddf3dafb4c21fd75444 Mon Sep 17 00:00:00 2001 From: Jake Landis Date: Tue, 23 Oct 2018 09:12:08 -0500 Subject: [PATCH 2/3] inline -> source for script processor since inline is deprecicated --- src/core_plugins/console/api_server/es_6_0/ingest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core_plugins/console/api_server/es_6_0/ingest.js b/src/core_plugins/console/api_server/es_6_0/ingest.js index 27c43324a4aae..bb25fedddc07a 100644 --- a/src/core_plugins/console/api_server/es_6_0/ingest.js +++ b/src/core_plugins/console/api_server/es_6_0/ingest.js @@ -310,7 +310,7 @@ const scriptProcessorDefinition = { lang: 'painless', file: '', id: '', - inline: '', + source: '', params: {}, ...commonPipelineParams } From bd6d2a5f338e36b61052c5275fb3925a9d17b53b Mon Sep 17 00:00:00 2001 From: Jake Landis Date: Tue, 23 Oct 2018 11:31:38 -0500 Subject: [PATCH 3/3] appease the linter --- src/core_plugins/console/api_server/es_6_0/ingest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core_plugins/console/api_server/es_6_0/ingest.js b/src/core_plugins/console/api_server/es_6_0/ingest.js index bb25fedddc07a..9d0d73c5fb294 100644 --- a/src/core_plugins/console/api_server/es_6_0/ingest.js +++ b/src/core_plugins/console/api_server/es_6_0/ingest.js @@ -20,7 +20,7 @@ const commonPipelineParams = { on_failure: [], if: '', - tag: '' + tag: '' }; // Based on https://www.elastic.co/guide/en/elasticsearch/reference/master/append-processor.html