Public | Automated Build

Last pushed: 20 days ago
Short Description
kibana-elasticsearch image based on centos7
Full Description

kibana-elasticsearch deploy on centos

ansible

  • install ansible

http://docs.ansible.com/ansible/intro_installation.html#latest-releases-via-pip

  • git clone
git clone https://github.com/kodamap/kibana-elasticsearch
  • install iptables_raw module (optional)

To modify iptables rule , install iptables_raw from https://github.com/Nordeus/ansible_iptables_raw

cd kibana-elasticsearch/playbooks
git clone https://github.com/Nordeus/ansible_iptables_raw
mkdir library
cp ansible_iptables_raw/iptables_raw.py ./library/

or disable firewalld and comment out firewall task

vi roles/kibana-elasticsearch/tasks/main.yml
---

- include: configure.yml
- include: enable_plugin.yml
# - include: firewall.yml
  • configure ansible_host
[kibana-elasticsearch]
x.x.x.x

[client]
x.x.x.x
`
  • install elasticsearch + kibana on the same node and beats to the clients.
ansible-playbook -i ansible_host kibana-elasticsearch.yml --private-key=~/private-key.pem -u centos

docker

elasticsearch + kibana

  • create data directories
sudo mkdir -p /var/data/elasticsearch; sudo chmod 777 /var/data/elasticsearch
sudo mkdir -p /var/data/kibana; sudo chmod 777 /var/data/kibana
  • build and run
cd dockerfiles
sudo docker build -t localhost/elasticsearch:v1 elasticsearch/
sudo docker build -t localhost/kibana:v1 kibana/
sudo docker run -v /var/data/elasticsearch:/var/lib/elasticsearch -p 9200:9200 -itd --name elasticsearch localhost/elasticsearch:v1
sudo docker run -v /var/data/kibana:/var/lib/kibana -p 5601:5601 -itd --name kibana --link elasticsearch:EL localhost/kibana:v1

nginx (optional)

If you need to proxy access and authentication is required for kibana, you may build nginx (reverse proxy ).

  • nginx use 5681/tcp port.
  • basic auth id / pass : elastic/changeme
sudo docker build -t localhost/nginx:v1 dockerfiles/nginx/
sudo docker run -p 5681:5681 -itd --name nginx --link kibana:KIBANA localhost/nginx:v1

Reference

  • elasticsearch

https://www.elastic.co/guide/en/elasticsearch/reference/current/_installation.html
https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html

  • plugin

https://www.elastic.co/guide/en/beats/filebeat/current/_tutorial.html

  • kibana

https://www.elastic.co/guide/en/kibana/current/rpm.html

  • filebeat

https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-installation.html

  • packetbeat

https://www.elastic.co/guide/en/beats/packetbeat/current/packetbeat-installation.html

Docker Pull Command
Owner
kodamap
Source Repository

Comments (0)