kolla-ansible/ansible/roles/common/templates/rsyslog.conf.j2
akwasniewska 206455120f Fixed log error messages from keystone to syslog.
Rsyslog adapted to filter keystone error log messages.

Related bug: 1516462

Change-Id: I4d8d4280dc8fef870d56d8466ed466241ee18e64
2015-11-17 20:27:08 +01:00

145 lines
5.9 KiB
Django/Jinja
Executable File

# provides support for local system logging
$ModLoad imuxsock
$ModLoad imklog
$KLogPermitNonKernelFacility on
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
$RepeatedMsgReduction on
$template KollaAnsibleFile,"/var/log/kolla_ansible.log"
:syslogtag,contains,"ansible" ?KollaAnsibleFile
$template GlanceApiFile,"/var/log/glance/glance_api.log"
:syslogtag,contains,"glance-api" ?GlanceApiFile
$template GlanceRegistryFile,"/var/log/glance/glance_registry.log"
:syslogtag,contains,"glance-registry" ?GlanceRegistryFile
$template NovaApiFile,"/var/log/nova/nova-api.log"
:syslogtag,contains,"nova-api" ?NovaApiFile
$template NovaConductorFile,"/var/log/nova/nova-conductor.log"
:syslogtag,contains,"nova-conductor" ?NovaConductorFile
$template NovaConsoleauthFile,"/var/log/nova/nova-consoleauth.log"
:syslogtag,contains,"nova-consoleauth" ?NovaConsoleauthFile
$template NovaNovncFile,"/var/log/nova/nova-novncproxy.log"
:syslogtag,contains,"nova-novncproxy" ?NovaNovncFile
$template NovaSchedulerFile,"/var/log/nova/nova-scheduler.log"
:syslogtag,contains,"nova-scheduler" ?NovaSchedulerFile
$template NovaComputeFile,"/var/log/nova/nova-compute.log"
:syslogtag,contains,"nova-compute" ?NovaComputeFile
$template HeatAPIFile,"/var/log/heat/heat-api.log"
:syslogtag,contains,"heat-api" ?HeatAPIFile
$template HeatAPICfnFile,"/var/log/heat/heat-api-cfn.log"
:syslogtag,contains,"heat-api-cfn" ?HeatAPICfnFile
$template HeatEngineFile,"/var/log/heat/heat-engine.log"
:syslogtag,contains,"heat-engine" ?HeatEngineFile
$template NeutronServerFile,"/var/log/neutron/neutron-server.log"
:syslogtag,contains,"neutron-server" ?NeutronServerFile
$template NeutronOVSAgentFile,"/var/log/neutron/neutron-openvswitch-agent.log"
:syslogtag,contains,"neutron-openvswitch-agent" ?NeutronOVSAgentFile
$template NeutronLinuxbrAgentFile,"/var/log/neutron/neutron-linuxbridge-agent.log"
:syslogtag,contains,"neutron-linuxbridge-agent" ?NeutronLinuxbrAgentFile
$template NeutronDHCPAgentFile,"/var/log/neutron/neutron-dhcp-agent.log"
:syslogtag,contains,"neutron-dhcp-agent" ?NeutronDHCPAgentFile
$template NeutronMetadataAgentFile,"/var/log/neutron/neutron-metadata-agent.log"
:syslogtag,contains,"neutron-metadata-agent" ?NeutronMetadataAgentFile
$template NeutronL3AgentFile,"/var/log/neutron/neutron-l3-agent.log"
:syslogtag,contains,"neutron-l3-agent" ?NeutronL3AgentFile
$template KeystoneErrorFile,"/var/log/keystone/keystone-error.log"
if ($syslogtag contains "keystone-error") \
or ($syslogtag contains "keystone" and $syslogseverity <=4) then ?KeystoneErrorFile
$template KeystoneAccessFile,"/var/log/keystone/keystone-access.log"
:syslogtag,contains,"keystone-access" ?KeystoneAccessFile
$template CinderApiFile,"/var/log/cinder/cinder-api.log"
:syslogtag,contains,"cinder-api" ?CinderApiFile
$template CinderBackupFile,"/var/log/cinder/cinder-backup.log"
:syslogtag,contains,"cinder-backup" ?CinderBackupFile
$template CinderSchedulerFile,"/var/log/cinder/cinder-scheduler.log"
:syslogtag,contains,"cinder-scheduler" ?CinderSchedulerFile
$template CinderVolumeFile,"/var/log/cinder/cinder-volume.log"
:syslogtag,contains,"cinder-volume" ?CinderVolumeFile
$template SwiftAccountFile,"/var/log/swift/swift-account-server.log"
:syslogtag,contains,"swift-account-server" ?SwiftAccountFile
$template SwiftAccountAuditorFile,"/var/log/swift/swift-account-auditor.log"
:syslogtag,contains,"swift-account-auditor" ?SwiftAccountAuditorFile
$template SwiftAccountServerFile,"/var/log/swift/swift-account-server.log"
:syslogtag,contains,"swift-account-server" ?SwiftAccountServerFile
$template SwiftContainerReplicatorFile,"/var/log/swift/swift-container-replicator.log"
:syslogtag,contains,"swift-container-replicator" ?SwiftContainerReplicatorFile
$template SwiftObjectAuditorFile,"/var/log/swift/swift-object-auditor.log"
:syslogtag,contains,"swift-object-auditor" ?SwiftObjectAuditorFile
$template SwiftObjectReplicatorFile,"/var/log/swift/swift-object-replicator.log"
:syslogtag,contains,"swift-object-replicator" ?SwiftObjectReplicatorFile
$template SwiftProxyServerFile,"/var/log/swift/swift-proxy-server.log"
:syslogtag,contains,"swift-proxy-server" ?SwiftProxyServerFile
$template SwiftAccountReaperFile,"/var/log/swift/swift-account-reaper.log"
:syslogtag,contains,"swift-account-reaper" ?SwiftAccountReaperFile
$template SwiftContainerServerFile,"/var/log/swift/swift-container-server.log"
:syslogtag,contains,"swift-container-server" ?SwiftContainerServerFile
$template SwiftObjectServerFile,"/var/log/swift/swift-object-server.log"
:syslogtag,contains,"swift-object-server" ?SwiftObjectServerFile
$template SwiftRsyncdFile,"/var/log/swift/swift-rsyncd.log"
:syslogtag,contains,"swift-rsyncd" ?SwiftRsyncdFile
$template SwiftAccountReplicatorFile,"/var/log/swift/swift-account-replicator.log"
:syslogtag,contains,"swift-account-replicator" ?SwiftAccountReplicatorFile
$template SwiftContainerAuditorFile,"/var/log/swift/swift-container-auditor.log"
:syslogtag,contains,"swift-container-auditor" ?SwiftContainerAuditorFile
$template SwiftContainerUpdaterFile,"/var/log/swift/swift-container-updater.log"
:syslogtag,contains,"swift-container-updater" ?SwiftContainerUpdaterFile
$template SwiftObjectExpirerFile,"/var/log/swift/swift-object-expirer.log"
:syslogtag,contains,"swift-object-expirer" ?SwiftObjectExpirerFile
$template SwiftObjectUpdaterFile,"/var/log/swift/swift-object-updater.log"
:syslogtag,contains,"swift-object-updater" ?SwiftObjectUpdaterFile
$template MuranoEngineFile,"/var/log/murano/murano-engine.log"
:syslogtag,contains,"murano-engine" ?MuranoEngineFile
$template MuranoApiFile,"/var/log/murano/murano-api.log"
:syslogtag,contains,"murano-api" ?MuranoApiFile
$template MagnumApiFile,"/var/log/magnum/magnum-api.log"
:syslogtag,contains,"magnum-api" ?MagnumApiFile
$template MagnumConductorFile,"/var/log/magnum/magnum-conductor.log"
:syslogtag,contains,"magnum-conductor" ?MagnumConductorFile
$template DynFile,"/var/log/syslog.log"
*.* ?DynFile
& ~