2019-09-10 06:57:26 +00:00
|
|
|
---
|
|
|
|
- hosts: localhost
|
|
|
|
connection: local
|
|
|
|
vars:
|
|
|
|
logstash_plugins:
|
|
|
|
- name: logstash-output-influxdb
|
|
|
|
logstash_inputs:
|
2019-09-30 13:30:12 +00:00
|
|
|
- >
|
|
|
|
file {
|
|
|
|
path => "/var/log/syslog"
|
|
|
|
}
|
2019-09-10 06:57:26 +00:00
|
|
|
logstash_outputs:
|
|
|
|
- >
|
|
|
|
file {
|
|
|
|
path => "/var/log/syslog"
|
|
|
|
codec => "json"
|
|
|
|
}
|
|
|
|
|
|
|
|
roles:
|
|
|
|
- ansible-role-logstash
|