Skip to content

ELK stack with predefined dashboard for RENAT project

Notifications You must be signed in to change notification settings

bachng2017/renat-stats

Repository files navigation

renat-stats is a ELK docker composer with predefined dashboard to track your renat scenario

sample

Prepare the renat server to send data to this stack

The renat official container came with this ability already. If you install the renat server by your own, follow these steps to send data to the renat-stats stack.

  1. add ELK 7.1 repository /etc/yum.repos.d/elasticsearch.repo
name=Elasticsearch repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/7.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
  1. install ELK filebeat
$ yum install -y filebeat rsyslog
  1. configure the rsyslog service by edite /etc/rsyslog.conf
local5.*                        /var/log/renat/renat.log
  1. configure filebeat service by editing /etc/filebeat/filebeat.yml to have at least those setting
filebeat.inputs:
- type: log
  paths:
    - /var/log/renat/renat.log
    - /var/log/renat.log
  fields:
    service: renat
output.logstash:
  hosts: ["<renat-stats-logstash-ip>:5044"]

where <renat-stats-logstash-ip> is the logstash IP of the stack. In case the renat container is running within the same docker network, it could be just logstash.

  1. restart the service
$ systemctl restart filebeat
$ systemctl restart rsyslog

and confirm the status of the service

$ systemctl status filebeat
$ systemctl status rsyslog

Using the renat-stats

  1. Clone the stack from git repository
$ git clone http://10.128.3.50/gitlab/bachng/renat-stats.git
  • Initialize and start the stack This will bring up the stack and push the dashboard configuration.
$ cd renat-stats
$ ./init.sh

The running stack will have a docker network called renat to bind all the ELK component.

Note: this will clear all existed data in the stack

  • Stop and remove the stack
$ ./stop.sh

The ELK data will remains in ./elasticsearch/data

About

ELK stack with predefined dashboard for RENAT project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages