updates to logging

This commit is contained in:
Daniel Poelzleithner 2019-07-19 14:51:09 +02:00
parent fb9d929bc4
commit 0fbfadf9cc
2 ha cambiato i file con 54 aggiunte e 0 eliminazioni

Vedi File

@ -3,3 +3,55 @@
- 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.2.0

Vedi File

@ -67,6 +67,8 @@
user = "root";
};
systemd.services.graylog.serviceConfig.Restart = "always";
system.stateVersion = "19.03"; # Did you read the comment?
}