Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Latest commit

 

History

History
62 lines (46 loc) · 1.56 KB

RUN.md

File metadata and controls

62 lines (46 loc) · 1.56 KB

Short RUN guide

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

Build ElasticBeat

cd $GOPATH
mkdir -p src/github.com/radoondas
cd src/github.com/radoondas
git clone https://github.com/radoondas/elasticbeat.git

Elastic and Kibana

Meanwhile setup your ElasticSearch and Kibana (example dashbords)

Build ElasticBeat

cd $GOPATH/src/github.com/radoondas/elasticbeat
make

Delete template (Optional)

If you need for any reason to delete old template, use following method.

curl -XDELETE 'http://localhost:9200/_template/elasticbeat'

Import template

cd $GOPATH/src/github.com/radoondas/elasticbeat/etc
curl -XPUT 'http://localhost:9200/_template/elasticbeat' -d@elasticbeat.template.json

Run ElasticBeat

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