First, setup Go lang environment (if you don't have it already)
Add to your .bashrc important variables.
Supported GO versions: 1.5 (with GO15VENDOREXPERIMENT enabled) or 1.6+. Suggested version of GO: 1.7+
export GOROOT="$HOME/opt/go"
export GOPATH="$HOME/workspace/go"
export PATH="$GOROOT/bin:$PATH"
# to enable vendor experiment in GO 1.5
export GO15VENDOREXPERIMENT=1
cd $GOPATH
mkdir -p src/github.com/radoondas
cd src/github.com/radoondas
git clone https://github.com/radoondas/elasticbeat.git
Meanwhile setup your ElasticSearch and Kibana (example dashbords)
cd $GOPATH/src/github.com/radoondas/elasticbeat
make
If you need for any reason to delete old template, use following method.
curl -XDELETE 'http://localhost:9200/_template/elasticbeat'
cd $GOPATH/src/github.com/radoondas/elasticbeat/etc
curl -XPUT 'http://localhost:9200/_template/elasticbeat' [email protected]
Following command will execute ElasticBeat with debug option and will not index results in to ES. Instead, you will see output on the screen.
cd $GOPATH/src/github.com/radoondas/elasticbeat
./elasticbeat -e -v -d elasticbeat -c elasticbeat.yml
With no debug options - just do straight indexing to your ES installation
./elasticbeat -c elasticbeat.yml