This adds the ability to substitute fluentd for logstash for ELK stack deployments. This is a seamless substitution, but logstash is still the default if no options are changed. Rsyslog will be utilized instead of the official Filebeat logstash forwarder. To use fluentd instead of logstash change the following parameter in install/group_vars/all.yml: logging_backend: fluentd In addition, the following enhancements were made: * All service ports are now configurable * Firewall ports are now configurable Documentation updates can be viewed here: http://rst.ninjs.org/?n=aa3ea354e28f4ef11d2a03344d8c34be&theme=basic Patchset #2: clean up commit message character length. Patchset #3: explicitly state logstash is the default Patchset #4: clean up browbeat install instructions Patchset #5: add /etc/rsyslog.d/openstack-logs.conf that will pickup common openstack logs in /var/log/* Change-Id: Ife928c1f6699e0c675d44e857ccb6aaff165752d
154 lines
4.0 KiB
Django/Jinja
154 lines
4.0 KiB
Django/Jinja
# aggregate common openstack logs via rsyslog
|
|
|
|
$ModLoad imfile
|
|
|
|
# Neutron
|
|
$InputFileName /var/log/neutron/server.log
|
|
$InputFileTag neutron-server-errors
|
|
$InputFileStateFile neutron-server-errors
|
|
$InputFileSeverity error
|
|
$InputFileFacility local7
|
|
$InputRunFileMonitor
|
|
|
|
# Nova
|
|
$InputFileName /var/log/nova/nova-api.log
|
|
$InputFileTag nova-api-errors
|
|
$InputFileStateFile nova-api-errors
|
|
$InputFileSeverity error
|
|
$InputFileFacility local7
|
|
$InputRunFileMonitor
|
|
|
|
$InputFileName /var/log/nova/nova-cert.log
|
|
$InputFileTag nova-cert-errors
|
|
$InputFileStateFile nova-cert-errors
|
|
$InputFileSeverity error
|
|
$InputFileFacility local7
|
|
$InputRunFileMonitor
|
|
|
|
$InputFileName /var/log/nova/nova-conductor.log
|
|
$InputFileTag nova-conductor-errors
|
|
$InputFileStateFile nova-conductor-errors
|
|
$InputFileSeverity error
|
|
$InputFileFacility local7
|
|
$InputRunFileMonitor
|
|
|
|
$InputFileName /var/log/nova/nova-consoleauth.log
|
|
$InputFileTag nova-consoleauth-errors
|
|
$InputFileStateFile nova-consoleauth-errors
|
|
$InputFileSeverity error
|
|
$InputFileFacility local7
|
|
$InputRunFileMonitor
|
|
|
|
$InputFileName /var/log/nova/nova-manage.log
|
|
$InputFileTag nova-manage-errors
|
|
$InputFileStateFile nova-manage-errors
|
|
$InputFileSeverity error
|
|
$InputFileFacility local7
|
|
$InputRunFileMonitor
|
|
|
|
$InputFileName /var/log/nova/nova-novncproxy.log
|
|
$InputFileTag nova-novncproxy-errors
|
|
$InputFileStateFile nova-novncproxy-errors
|
|
$InputFileSeverity error
|
|
$InputFileFacility local7
|
|
$InputRunFileMonitor
|
|
|
|
$InputFileName /var/log/nova/nova-scheduler.log
|
|
$InputFileTag nova-scheduler-errors
|
|
$InputFileStateFile nova-scheduler-errors
|
|
$InputFileSeverity error
|
|
$InputFileFacility local7
|
|
$InputRunFileMonitor
|
|
|
|
# cinder
|
|
$InputFileName /var/log/cinder/api.log
|
|
$InputFileTag cinder-api-errors
|
|
$InputFileStateFile cinder-api-errors
|
|
$InputFileSeverity error
|
|
$InputFileFacility local7
|
|
$InputRunFileMonitor
|
|
|
|
$InputFileName /var/log/cinder/backup.log
|
|
$InputFileTag cinder-backup-errors
|
|
$InputFileStateFile cinder-backup-errors
|
|
$InputFileSeverity error
|
|
$InputFileFacility local7
|
|
$InputRunFileMonitor
|
|
|
|
$InputFileName /var/log/cinder/scheduler.log
|
|
$InputFileTag cinder-scheduler-errors
|
|
$InputFileStateFile cinder-scheduler-errors
|
|
$InputFileSeverity error
|
|
$InputFileFacility local7
|
|
$InputRunFileMonitor
|
|
|
|
$InputFileName /var/log/cinder/volume.log
|
|
$InputFileTag cinder-volume-errors
|
|
$InputFileStateFile cinder-volume-errors
|
|
$InputFileSeverity error
|
|
$InputFileFacility local7
|
|
$InputRunFileMonitor
|
|
|
|
# glance
|
|
$InputFileName /var/log/glance/api.log
|
|
$InputFileTag glance-api-errors
|
|
$InputFileStateFile glance-api-errors
|
|
$InputFileSeverity error
|
|
$InputFileFacility local7
|
|
$InputRunFileMonitor
|
|
|
|
$InputFileName /var/log/glance/registry.log
|
|
$InputFileTag glance-registry-errors
|
|
$InputFileStateFile glance-registry-errors
|
|
$InputFileSeverity error
|
|
$InputFileFacility local7
|
|
$InputRunFileMonitor
|
|
|
|
$InputFileName /var/log/glance/scrubber.log
|
|
$InputFileTag glance-scrubber-errors
|
|
$InputFileStateFile glance-scrubber-errors
|
|
$InputFileSeverity error
|
|
$InputFileFacility local7
|
|
$InputRunFileMonitor
|
|
|
|
# keystone
|
|
$InputFileName /var/log/keystone/keystone.log
|
|
$InputFileTag keystone-errors
|
|
$InputFileStateFile keystone-errors
|
|
$InputFileSeverity error
|
|
$InputFileFacility local7
|
|
$InputRunFileMonitor
|
|
|
|
# horizon
|
|
$InputFileName /var/log/horizon/horizon.log
|
|
$InputFileTag horizon-errors
|
|
$InputFileStateFile horizon-errors
|
|
$InputFileSeverity error
|
|
$InputFileFacility local7
|
|
$InputRunFileMonitor
|
|
|
|
$InputFileName /var/log/httpd/horizon_error.log
|
|
$InputFileTag horizon-httpd-errors
|
|
$InputFileStateFile horizon-httpd-errors
|
|
$InputFileSeverity error
|
|
$InputFileFacility local7
|
|
$InputRunFileMonitor
|
|
|
|
$InputFileName /var/log/httpd/horizon_ssl_error.log
|
|
$InputFileTag horizon-httpd_ssl-errors
|
|
$InputFileStateFile horizon-httpd_ssl-errors
|
|
$InputFileSeverity error
|
|
$InputFileFacility local7
|
|
$InputRunFileMonitor
|
|
|
|
# mariadb
|
|
$InputFileName /var/log/mariadb/mariadb.log
|
|
$InputFileTag mariadb-errors
|
|
$InputFileStateFile mariadb-errors
|
|
$InputFileSeverity error
|
|
$InputFileFacility local7
|
|
$InputRunFileMonitor
|
|
|
|
# send to elk_server
|
|
*.* @{{ elk_server }}:{{ fluentd_syslog_port }}
|