diff --git a/monitoring/config/local_settings.py b/monitoring/config/local_settings.py index 252759ad..2d6986a5 100644 --- a/monitoring/config/local_settings.py +++ b/monitoring/config/local_settings.py @@ -104,14 +104,14 @@ GRAFANA_URL = getattr(settings, 'GRAFANA_URL', None) SHOW_GRAFANA_HOME = getattr(settings, 'SHOW_GRAFANA_HOME', True) -ENABLE_LOG_MANAGEMENT_BUTTON = getattr(settings, 'ENABLE_LOG_MANAGEMENT_BUTTON', False) +ENABLE_LOG_MANAGEMENT_BUTTON = getattr(settings, 'ENABLE_LOG_MANAGEMENT_BUTTON', True) ENABLE_EVENT_MANAGEMENT_BUTTON = getattr(settings, 'ENABLE_EVENT_MANAGEMENT_BUTTON', False) KIBANA_POLICY_RULE = getattr(settings, 'KIBANA_POLICY_RULE', 'monitoring:kibana_access') KIBANA_POLICY_SCOPE = getattr(settings, 'KIBANA_POLICY_SCOPE', 'monitoring') -KIBANA_HOST = getattr(settings, 'KIBANA_HOST', 'http://192.168.10.4:5601/') +KIBANA_HOST = getattr(settings, 'KIBANA_HOST', 'http://192.168.10.6:5601/') OPENSTACK_SSL_NO_VERIFY = getattr(settings, 'OPENSTACK_SSL_NO_VERIFY', False) OPENSTACK_SSL_CACERT = getattr(settings, 'OPENSTACK_SSL_CACERT', None) diff --git a/monitoring/overview/templates/overview/index.html b/monitoring/overview/templates/overview/index.html index efac22bd..acfa3c4b 100644 --- a/monitoring/overview/templates/overview/index.html +++ b/monitoring/overview/templates/overview/index.html @@ -45,7 +45,7 @@ {% endif %} {% if can_access_kibana %} {% if enable_log_management_button or enable_event_management_button %} - + {% if enable_log_management_button %} {% if enable_event_management_button %} diff --git a/monitoring/overview/views.py b/monitoring/overview/views.py index 9eec7269..b670bc4f 100644 --- a/monitoring/overview/views.py +++ b/monitoring/overview/views.py @@ -415,9 +415,10 @@ class KibanaProxyView(generic.View): # passing kbn version explicitly for kibana >= 4.3.x headers = { - 'X-Auth-Token': request.user.token.id, - 'kbn-version': request.META.get('HTTP_KBN_VERSION', ''), - 'Cookie': request.META.get('HTTP_COOKIE', '') + "X-Auth-Token": request.user.token.id, + "kbn-version": request.META.get("HTTP_KBN_VERSION", ""), + "Cookie": request.META.get("HTTP_COOKIE", ""), + "Content-Type": "application/json", } return self.read(request.method, url, request.body, headers)