Beats Dashboard - anujajakhade/anuja GitHub Wiki

Building Beats-Dashboard

Beats 5.0.0 can be built and tested on Linux on z Systems for RHEL 7.2 by following these instructions.

General Notes:

  • When following the steps below please use a standard permission user unless otherwise specified.

  • A directory /<source_root>/ will be referred to in these instructions, this is a temporary writeable directory anywhere you'd like to place it.

Prerequisites (RHEL 7.2)

  • Go 1.7.1 -- Instructions for building Go can be found here.

  • Docker >=1.10.0 -- Instructions for building Docker can be found here.

  • Python >=2.7.9 -- Instructions for building Python can be found here.

  • Docker-Compose >= 1.7.0 -- Instructions for building Docker-Compose can be found here.

  • ELK stack

Step 1 : Install the Dependencies

  • RHEL 7.2

Step 2 : Build and Install Beats

export GOPATH=$HOME
mkdir -p $GOPATH/src/github.com/elastic
cd $GOPATH/src/github.com/elastic
git clone https://github.com/elastic/beats.git
cd beats
git checkout v5.0.0

Currently there are 5 Beats: filebeat, packetbeat, metricbeat, winlogbeat, libbeat. Compile and generate configuration files for a particular Beat by using the commands as shown below.

cd /scratch/ecos0009/beats/src/github.com/elastic/beats/libbeat/dashboards
make
./import_dashboards -es  http://localhost:9200
  • For Packetbeat:
cd $GOPATH/src/github.com/elastic/beats/packetbeat
curl -XPUT 'http://localhost:9200/_template/packetbeat' [email protected]
sudo ./packetbeat -e -c packetbeat.yml -d "publish" 2> packetbeat.log &
 curl -XGET 'http://localhost:9200/packetbeat-*/_search?pretty'
  • For Filebeat:
cd $GOPATH/src/github.com/elastic/beats/filebeat
curl -XPUT 'http://localhost:9200/_template/filebeat' [email protected]
sudo ./filebeat -e -c filebeat.yml -d "publish" 2> filebeat.log &
curl -XGET 'http://localhost:9200/filebeat-*/_search?pretty'

  • For Metricbeat:
cd $GOPATH/src/github.com/elastic/beats/metricbeat
curl -XPUT 'http://localhost:9200/_template/metricbeat' [email protected]
sudo ./metricbeat -e -c metricbeat.yml -d "publish" 2> metricbeat.log &
curl -XGET 'http://localhost:9200/metricbeat-*/_search?pretty'

`

###Reference: https://github.com/elastic/beats/blob/v5.0.0/CONTRIBUTING.md