Giter Club home page Giter Club logo

ansible-efk's Introduction

部署 elasticsearch+fluentd+kibana

多节点主机部署hosts文件示例:

说明:

   1. 下载软件包efkpackage.tar.gz并上传到/root/package/目录
         链接:https://pan.baidu.com/s/1wgUuDsHRtrWMQs6YQhucyA  提取码:yd9t
         MD5:caab1f3677a176d652ff2419b8df142d
   2. 执行init.sh脚本
   3. 改hosts配置
   4. 直接执行`# ansible-playbook -i hosts efk.yml`
############
[elasticsearch]
192.168.2.29 ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass="test@123" node_name=node-1 network_host=192.168.2.29
192.168.2.56 ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass="test@123" node_name=node-2 network_host=192.168.2.56
#network_host: Elasticsearch监听地址

[elasticsearch:vars]
# 定义Elasiticsearch discovery.zen.ping.unicast.hosts节点地址,多台写法:discovery_hosts='"192.168.2.29","192.168.2.56"'
discovery_hosts='"192.168.2.29","192.168.2.56"'


############
[fluentd]
192.168.2.29 ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass="test@123" network_host=192.168.2.29
192.168.2.56 ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass="test@123" network_host=192.168.2.56
# network_hosts表示要连接的elasticsearch服务器的地址


############
[kibana]
192.168.2.29 ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass="test@123"

[kibana:vars]
# 定义kibana监听地址
kibana_host="192.168.2.29"
# 定义kibana中连接elasticsearch服务的地址
elasticsearch_hosts="192.168.2.29"

ansible-efk's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.