Logstash: Modifying rewrite rules to allow kibana 3

Change-Id: I57db89c0fa8d9d78bc84ff0f382eab70844778f6
This commit is contained in:
Spencer Krum 2014-05-09 20:06:07 -07:00
parent ee18ccaca0
commit c754c92a5e

View File

@ -10,11 +10,11 @@
<IfModule mod_proxy.c> <IfModule mod_proxy.c>
<% if @proxy_elasticsearch == true %> <% if @proxy_elasticsearch == true %>
# Proxy GETs for elasticsearch _aliases, .*/_status, .*/_search, # Proxy GETs for elasticsearch .*/_aliases, .*/_status, .*/_search,
# .*/_mapping, _cluster/health, and _nodes. # .*/_mapping, .*/_mapping/field/.*, _cluster/health, and _nodes.
RewriteEngine on RewriteEngine on
RewriteCond %{REQUEST_METHOD} GET 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 RewriteCond %{REQUEST_METHOD} POST
RewriteRule ^/elasticsearch/(_aliases|(.*/)?_search)$ http://<%= scope.lookupvar("::logstash::web::discover_nodes")[0] %>/$1 [P] RewriteRule ^/elasticsearch/(_aliases|(.*/)?_search)$ http://<%= scope.lookupvar("::logstash::web::discover_nodes")[0] %>/$1 [P]
RewriteCond %{REQUEST_METHOD} OPTIONS RewriteCond %{REQUEST_METHOD} OPTIONS