README.md 893 Bytes

Filebeat

同步 filebeat 的配置文件,并且restart filebeat.

Requirements

依赖如下的hosts:

  • java-activity
  • java-bigdata
  • java-browser
  • java-gateway
  • java-nginx
  • java-order
  • java-product
  • java-promotion
  • java-resources
  • java-risk
  • java-sns
  • java-uic
  • java-union
  • java-users

How to Run

jump to server: ansible@10.66.233.9

Default inventory file in [ansible.cfg] is : [./inventories/test]

You should identify inventory file by [-i]


ansible-playbook -i inventories/az3/hosts playbooks/java-filebeat.yml -e 'group=主机组名' -e 'config_group=配置文件名(java-nginx/nginx-access/java-gateway等等,参考./templates/'
ansible-playbook -i inventories/az3/hosts playbooks/java-filebeat.yml -e 'group=java-nginx' -e 'config_group=java-nginx'

Author Information
------------------
tiexin.yang@yoho.cn