forked from lusis/chef-logstash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.yml
65 lines (62 loc) · 1.59 KB
/
.kitchen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
driver:
name: vagrant
driver_config:
require_chef_omnibus: true
use_vagrant_berkshelf_plugin: true
customize:
memory: 512
cpus: 1
provisioner:
name: chef_solo
platforms:
- name: ubuntu-12.04
suites:
- name: server
run_list:
- recipe[apt::default]
- recipe[java::default]
- recipe[logstash::server]
- recipe[logstash::agent]
- recipe[kibana::default]
attributes:
java:
jdk_version: 7
oracle:
accept_oracle_download_terms: true
install_flavor: oracle
logstash:
supervisor_gid: 'adm'
agent:
server_ipaddress: 127.0.0.1
xms: 128m
xmx: 128m
enable_embedded_es: false
inputs:
- file:
type: syslog
path:
- /var/log/syslog
- /var/log/messages
start_position: beginning
filters:
- condition: 'if [type] == "syslog"'
block:
grok:
match:
- 'message'
- '%{SYSLOGTIMESTAMP:timestamp} %{IPORHOST:host} (?:%{PROG:program}(?:\[%{POSINT:pid}\])?: )?%{GREEDYDATA:message}'
date:
match:
- 'timestamp'
- 'MMM d HH:mm:ss'
- 'MMM dd HH:mm:ss'
- 'ISO8601'
server:
enable_embedded_es: true
web:
enabled: true
kibana:
webserver_listen: '0.0.0.0'
webserver: 'nginx'
install_type: 'file'