###A simple webserver to serve Kibana in golang.
- Single file to deploy.
- Builtin support for reverse proxy of elasticsearch requests.
#Build
go build logstash-web.go
#Usage
# start web server
./logstash-web -basedir=./logstash-1.4.0/vendor
# open the url in browser:
http://localhost:9090/logstash/kibana/
./logstash-web -h
-basedir="./logstash-1.4.0/vendor": base dir
-bind=":9090": bind address
-esaddr="http://127.0.0.1:9200/": elasticsearch address
-esprefix="/es/": elasticsearch prefix
-prefix="/logstash/": uri prefix
the parent folder of kibana webapp. default is ./logstash-1.4.0/vendor
bind address of the web server. default is ":9090"
base URI prefix of kibana static files and elasticsearch requests. default is /logstash/
.
elasticsearch URI prefix relative to prefix. default is /es/
elasticsearch server address. default is http://localhost:9200/
/** @scratch /configuration/config.js/5
*
* ==== elasticsearch
*
* The URL to your elasticsearch server. You almost certainly don't
* want +http://localhost:9200+ here. Even if Kibana and Elasticsearch are on
* the same host. By default this will attempt to reach ES at the same host you have
* kibana installed on. You probably want to set it to the FQDN of your
* elasticsearch host
*/
elasticsearch: "/logstash/es/",