forked from c3d2/nix-config
58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
---
|
|
# file: hypervisor.yml
|
|
- hosts: hypervisor
|
|
roles:
|
|
- proxmox
|
|
- { role: "elastic.beats", beat: "filebeat",
|
|
become: true,
|
|
tags: ["filebeat", "logging"],
|
|
beat_conf: {
|
|
filebeat: {
|
|
"inputs":[{
|
|
"type": log,
|
|
"enabled": true,
|
|
"paths": [
|
|
"/var/log/ceph/*.log",
|
|
"/var/log/pve/tasks/*/*",
|
|
"/var/log/vzdump/*.log",
|
|
|
|
],
|
|
tags: ["hypervisor", "proxmox"]
|
|
}]
|
|
}
|
|
},
|
|
"output_conf": {
|
|
"logstash": {
|
|
"hosts": ["logging.serv.zentralwerk.org:5044", "172.20.73.13:5044"]
|
|
}
|
|
},
|
|
logging_conf: {
|
|
level: warning,
|
|
to_files: false
|
|
}
|
|
}
|
|
- { role: "elastic.beats", beat: "journalbeat",
|
|
become: true,
|
|
tags: ["journalbeat", "logging"],
|
|
beat_conf: {
|
|
journalbeat: {
|
|
"inputs":[{
|
|
seek: cursor,
|
|
"paths": []
|
|
}]
|
|
},
|
|
tags: ["hypervisor", "proxmox"]
|
|
},
|
|
"output_conf": {
|
|
"logstash": {
|
|
"hosts": ["logging.serv.zentralwerk.org:5044", "172.20.73.13:5044"]
|
|
}
|
|
},
|
|
logging_conf: {
|
|
level: warning,
|
|
to_files: false,
|
|
}
|
|
}
|
|
vars:
|
|
beats_version: 7.3.0
|