项目作者: dpashin

项目描述 :
Demo vagrant environment with elk and php
高级语言: Shell
项目地址: git://github.com/dpashin/php-elk-demo.git
创建时间: 2018-04-24T16:29:35Z
项目社区:https://github.com/dpashin/php-elk-demo

开源协议:

下载


SUMMARY

Demo environment with two boxes:

  • elkhost: installed elk 6.x
  • phphost: installed php and filebeat. writes logs to elkhost.

INSTALL

  1. cd elk
  2. vagrant up
  3. cd ../
  4. cd php
  5. vagrant up

USAGE

write some logs on phphost

  1. # ssh to box
  2. cd php
  3. vagrant ssh
  4. # write some logs
  5. php /vagrant/write.php && tail /vagrant/log/demo.log
  6. # check filebeat logs
  7. sudo tail -n 100 /var/log/filebeat/filebeat

check logs on root host: