项目作者: Dalee

项目描述 :
Vagrant vm for ELK stack (https://www.elastic.co/) testing / development playground
高级语言: Shell
项目地址: git://github.com/Dalee/elk-playground.git
创建时间: 2016-12-15T15:30:05Z
项目社区:https://github.com/Dalee/elk-playground

开源协议:

下载


ELK Playground

Usage

  1. $ vagrant up
  2. $ vagrant ssh
  3. $ cd /home/web/elk
  4. $ make vagrant

This will install template mappings for the following indexes (logstash automatic mapping
management is disabled):

  • logstash-frontend-access-*
  • logstash-frontend-error-*
  • logstash-backend-*
  • logstash-error-*

So, what those mappings all about?

logstash-frontend-* - indices for access_log and error_log NGINX configuration parameters.
log_format is described in bundled configuration sample:

  1. log_format logstash '$remote_addr "$host" '
  2. '$request_method "$request_uri" '
  3. '"$http_referer" "$http_user_agent" '
  4. '$status $bytes_sent '
  5. '$geoip_country_code $geoip_latitude $geoip_longitude';

logstash-backend-* - indices for dalee-logger library

logstash-error-* - indices for logstash _grokparsefailure events

Load single event with geoip information

  1. $ curl -H "X-Real-Ip: 89.17.48.5" -H "Host: elk.local" 127.1 -v

Kibana Web-interface

http://elk.local

Bundled configurations

Few sample configurations for frontend (nginx) and backend (right now, only node.js)