From dfc919bb0eb6080f741f2b785f4648cb04b247f6 Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Mon, 24 Sep 2018 21:50:41 -0500 Subject: [PATCH] Convert refresh fact to strings While the use of "to_json" resulted in a string it also created a JSON escaped a string full of slashes which then corrupts kibana index patterns. Change-Id: I2c26ab9dd4930226f3e554c2f9bed5e382cdafa5 Signed-off-by: Kevin Carter --- elk_metrics_6x/fieldRefresh.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elk_metrics_6x/fieldRefresh.yml b/elk_metrics_6x/fieldRefresh.yml index 724c7702..889a79b8 100644 --- a/elk_metrics_6x/fieldRefresh.yml +++ b/elk_metrics_6x/fieldRefresh.yml @@ -67,10 +67,10 @@ set_fact: index_refresh_fact: attributes: - fieldFormatMap: "{{ attributes['fieldFormatMap'] | to_json }}" + fieldFormatMap: "{{ attributes['fieldFormatMap'] | string }}" timeFieldName: "{{ attributes['timeFieldName'] }}" title: "{{ attributes['title'] }}" - fields: "{{ index_fields_format_return['content'] | to_json }}" + fields: "{{ index_fields_format_return['content'] | string }}" - name: Put index fields uri: