From 9b4f8d907abae62bcc958b04ad0e5f7de959c2bc Mon Sep 17 00:00:00 2001 From: Jim Unger Date: Tue, 26 Apr 2016 14:33:06 -0500 Subject: [PATCH] [add data] Update processor property names that changed in ES --- .../add_data_steps/pipeline_setup/lib/processor_types.js | 2 +- .../ingest_processor_api_kibana_to_es_converters.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/kibana/public/settings/sections/indices/add_data_steps/pipeline_setup/lib/processor_types.js b/src/plugins/kibana/public/settings/sections/indices/add_data_steps/pipeline_setup/lib/processor_types.js index 2ed08d60cc06d..811302a48c312 100644 --- a/src/plugins/kibana/public/settings/sections/indices/add_data_steps/pipeline_setup/lib/processor_types.js +++ b/src/plugins/kibana/public/settings/sections/indices/add_data_steps/pipeline_setup/lib/processor_types.js @@ -108,7 +108,7 @@ export class GeoIp extends Processor { constructor(processorId) { super(processorId, 'geoip', 'Geo IP'); this.sourceField = ''; - this.targetField = 'geoip'; + this.targetField = ''; this.databaseFile = ''; this.databaseFields = []; } diff --git a/src/plugins/kibana/server/lib/converters/ingest_processor_api_kibana_to_es_converters.js b/src/plugins/kibana/server/lib/converters/ingest_processor_api_kibana_to_es_converters.js index 28a97f8fd0044..dd00da1ea1a64 100644 --- a/src/plugins/kibana/server/lib/converters/ingest_processor_api_kibana_to_es_converters.js +++ b/src/plugins/kibana/server/lib/converters/ingest_processor_api_kibana_to_es_converters.js @@ -61,7 +61,7 @@ export function geoip(processorApiDocument) { const processor = { geoip: { tag: processorApiDocument.processor_id, - source_field: processorApiDocument.source_field + field: processorApiDocument.source_field } }; if (!_.isEmpty(processorApiDocument.target_field)) { @@ -71,7 +71,7 @@ export function geoip(processorApiDocument) { processor.geoip.database_file = processorApiDocument.database_file; } if (!_.isEmpty(processorApiDocument.database_fields)) { - processor.geoip.fields = processorApiDocument.database_fields; + processor.geoip.properties = processorApiDocument.database_fields; } return processor;