From baf16d19daf97b5e51ebb62c853e6e7ecdbd8ffc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guilherme=20Steinm=C3=BCller?= <gsteinmuller@vexxhost.com>
Date: Mon, 24 Sep 2018 00:03:24 +0000
Subject: [PATCH] Fix OpenStack Log Visualizations

The json visualization templates are limited to filebeat-*
index-pattern. To avoid incompatibility between versions
of kibana, this patch aims to set the index-pattern of the
openstack visualizations as the global index-pattern *.

Change-Id: I2c41b94b0a9c323ecac47db0dd1e4075ad6a432a
---
 elk_metrics_6x/templates/openstack-log-dashboard.json | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/elk_metrics_6x/templates/openstack-log-dashboard.json b/elk_metrics_6x/templates/openstack-log-dashboard.json
index b03edc3b..cb932438 100644
--- a/elk_metrics_6x/templates/openstack-log-dashboard.json
+++ b/elk_metrics_6x/templates/openstack-log-dashboard.json
@@ -12,7 +12,7 @@
          "description":"",
          "version":1,
          "kibanaSavedObjectMeta":{
-            "searchSourceJSON":"{\"index\":\"filebeat-*\",\"filter\":[],\"query\":{\"query\":\"\",\"language\":\"lucene\"}}"
+            "searchSourceJSON":"{\"index\":\"*\",\"filter\":[],\"query\":{\"query\":\"\",\"language\":\"lucene\"}}"
          }
       }
    }
@@ -32,7 +32,7 @@
          "description":"",
          "version":1,
          "kibanaSavedObjectMeta":{
-            "searchSourceJSON":"{\"index\":\"filebeat-*\",\"filter\":[],\"query\":{\"language\":\"lucene\",\"query\":\"\"}}"
+            "searchSourceJSON":"{\"index\":\"*\",\"filter\":[],\"query\":{\"language\":\"lucene\",\"query\":\"\"}}"
          }
       }
    }
@@ -52,7 +52,7 @@
          "description":"",
          "version":1,
          "kibanaSavedObjectMeta":{
-            "searchSourceJSON":"{\"index\":\"filebeat-*\",\"filter\":[],\"query\":{\"language\":\"lucene\",\"query\":\"\"}}"
+            "searchSourceJSON":"{\"index\":\"*\",\"filter\":[],\"query\":{\"language\":\"lucene\",\"query\":\"\"}}"
          }
       }
    }
@@ -78,7 +78,7 @@
          ],
          "version":1,
          "kibanaSavedObjectMeta":{
-            "searchSourceJSON":"{\"index\":\"filebeat-*\",\"highlightAll\":true,\"version\":true,\"query\":{\"language\":\"lucene\",\"query\":\"*\"},\"filter\":[]}"
+            "searchSourceJSON":"{\"index\":\"*\",\"highlightAll\":true,\"version\":true,\"query\":{\"language\":\"lucene\",\"query\":\"*\"},\"filter\":[]}"
          }
       }
    }