Write libvirt logs to host

This modifies the libvirt chart to write logs directly to the
host by default. This also modifies the fluentbit and fluentd
charts to capture libvirt logs from the host and index them into
Elasticsearch

Change-Id: I0bbc49d2c0d4cf4895f797e48f309f308ffd021f
This commit is contained in:
Steve Wilkerson
2018-12-19 16:54:04 -06:00
parent 13a58c5530
commit 281b0799f0
3 changed files with 37 additions and 0 deletions

View File

@@ -166,6 +166,8 @@ spec:
mountPath: /dev
- name: cgroup
mountPath: /sys/fs/cgroup
- name: logs
mountPath: /var/log/libvirt
- name: machine-id
mountPath: /etc/machine-id
readOnly: true
@@ -221,6 +223,9 @@ spec:
- name: dev
hostPath:
path: /dev
- name: logs
hostPath:
path: /var/log/libvirt
- name: cgroup
hostPath:
path: /sys/fs/cgroup

View File

@@ -82,6 +82,7 @@ conf:
ca_file: ""
listen_addr: 127.0.0.1
log_level: "3"
log_outputs: "1:file:/var/log/libvirt/libvirtd.log"
qemu:
stdio_handler: "file"
user: "nova"