From c754c92a5e17f19d1836a6b5197d32ff78748095 Mon Sep 17 00:00:00 2001 From: Spencer Krum Date: Fri, 9 May 2014 20:06:07 -0700 Subject: [PATCH] Logstash: Modifying rewrite rules to allow kibana 3 Change-Id: I57db89c0fa8d9d78bc84ff0f382eab70844778f6 --- modules/logstash/templates/kibana.vhost.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/logstash/templates/kibana.vhost.erb b/modules/logstash/templates/kibana.vhost.erb index 028553d043..a14cd3c451 100644 --- a/modules/logstash/templates/kibana.vhost.erb +++ b/modules/logstash/templates/kibana.vhost.erb @@ -10,11 +10,11 @@ <% if @proxy_elasticsearch == true %> - # Proxy GETs for elasticsearch _aliases, .*/_status, .*/_search, - # .*/_mapping, _cluster/health, and _nodes. + # Proxy GETs for elasticsearch .*/_aliases, .*/_status, .*/_search, + # .*/_mapping, .*/_mapping/field/.*, _cluster/health, and _nodes. RewriteEngine on RewriteCond %{REQUEST_METHOD} GET - RewriteRule ^/elasticsearch/(_aliases|(.*/)?_status|(.*/)?_search|(.*/)?_mapping|_cluster/health|_nodes)$ http://<%= scope.lookupvar("::logstash::web::discover_nodes")[0] %>/$1 [P] + RewriteRule ^/elasticsearch/((.*/)?_aliases|(.*/)?_status|(.*/)?_search|(.*/)?_mapping|(.*/)?_mapping/field/(.*)?|_cluster/health|_nodes)$ http://<%= scope.lookupvar("::logstash::web::discover_nodes")[0] %>/$1 [P] RewriteCond %{REQUEST_METHOD} POST RewriteRule ^/elasticsearch/(_aliases|(.*/)?_search)$ http://<%= scope.lookupvar("::logstash::web::discover_nodes")[0] %>/$1 [P] RewriteCond %{REQUEST_METHOD} OPTIONS