
Interesting read-only data on the elasticsearch cluster can be found at _cluster/health, this opens that url in the apache reverse proxy so that we can see the health of the cluster. Change-Id: I8d7a2eeec1f02aaa78af5f348b1ae91af76f522d
22 lines
1.1 KiB
Plaintext
22 lines
1.1 KiB
Plaintext
<VirtualHost <%= scope.lookupvar("::logstash::web::vhost_name") %>:80>
|
|
ServerName <%= scope.lookupvar("::logstash::web::vhost_name") %>
|
|
ServerAdmin <%= scope.lookupvar("::logstash::web::serveradmin") %>
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/<%= scope.lookupvar("::logstash::web::vhost_name") %>-error.log
|
|
|
|
LogLevel warn
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/<%= scope.lookupvar("::logstash::web::vhost_name") %>-access.log combined
|
|
|
|
<% if proxy_elasticsearch == true %>
|
|
# Proxy for elasticsearch _aliases, .*/_status, and .*/_search.
|
|
<LocationMatch "^/elasticsearch/(_aliases|(.*/)?_status|(.*/)?_search|_cluster/health)$">
|
|
ProxyPassMatch http://<%= scope.lookupvar("::logstash::web::discover_nodes")[0] %>/$1 connectiontimeout=5 timeout=120
|
|
</LocationMatch>
|
|
ProxyPassReverse /elasticsearch/ http://<%= scope.lookupvar("::logstash::web::discover_nodes")[0] %>/
|
|
<% end %>
|
|
|
|
ProxyPass / http://127.0.0.1:5601/ retry=0
|
|
ProxyPassReverse / http://127.0.0.1:5601/
|
|
</VirtualHost>
|