Adding looser/more logstash sources, and fixing a git error with older versions of ansible

This commit is contained in:
Will Bradley 2013-11-19 06:41:42 +00:00
parent 5c2e2417af
commit ff1daa0173
2 changed files with 12 additions and 6 deletions

View File

@ -8,13 +8,17 @@ input {
port => 5514
type => "linux-syslog"
}
}
filter {
grok {
type => "linux-syslog"
pattern => "%{SYSLOGLINE}"
file {
type => "syslog"
path => [ "/var/log/*.log", "/var/log/messages", "/var/log/syslog", "/var/log/nginx/*.log" ]
}
}
#filter {
# grok {
# type => "linux-syslog"
# pattern => "%{SYSLOGLINE}"
# }
#}
# Define outputs
output {
# send events to stdout for easy debugging

View File

@ -10,9 +10,11 @@
- nginx
- name: ensure we have the specified logstash release
git: repo=https://github.com/elasticsearch/kibana.git dest=/var/www/kibana update=yes
git: repo=https://github.com/elasticsearch/kibana.git dest=/var/www/kibana #update=yes
- name: ensure kibana nginx site is in place
template: src=../files/kibana/kibana.conf.j2 dest=/etc/nginx/sites-available/kibana mode=0755
- name: ensure kibana is secured with a password
template: src=../files/kibana/kibana.htpasswd.j2 dest=/etc/nginx/conf.d/kibana.htpasswd mode=0755
- name: ensure default Nginx site is not enabled
file: state=absent path=/etc/nginx/sites-enabled/default
- name: ensure kibana nginx site is enabled