-
Notifications
You must be signed in to change notification settings - Fork 0
/
logstash_puppet
42 lines (38 loc) · 878 Bytes
/
logstash_puppet
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
####$$$$
package {'logstash' :
ensure => latest,
require => Yumrepo[ "logstash1.3" ],
}
yumrepo { "logstash1.3":
baseurl => "http://packages.elasticsearch.org/logstash/1.3/centos",
descr => "logstash1.3",
enabled => 1,
gpgcheck => 0,
}
service {'logstash' :
ensure => running,
enable => true,
# require => Package['logstash'],
}
#class { 'logstash': }
file { '/etc/logstash/conf.d/agent.conf':
ensure => file,
content => 'input {
file {
type => "message"
path => "/var/log/message"
start_position => beginning
tags => "system logs"
}
}
output {
stdout { }
redis {
host => "54.254.235.220"
port => 6379
data_type => "list"
key => "logstash"
}
}'
}
####$$$$