Merge "Add more metadata to logs"

This commit is contained in:
Zuul 2020-09-16 23:04:43 +00:00 committed by Gerrit Code Review
commit 918ea0c41c
1 changed files with 23 additions and 1 deletions

View File

@ -53,6 +53,14 @@ parameters:
default: '' default: ''
description: Contains content of the private key corresponding to the cert RsyslogElasticsearchTlsClientCert. description: Contains content of the private key corresponding to the cert RsyslogElasticsearchTlsClientCert.
type: string type: string
CloudName:
default: overcloud.localdomain
description: The DNS name of this cloud. E.g. ci-overcloud.tripleo.org
type: string
KeystoneRegion:
type: string
default: 'regionOne'
description: Keystone region for endpoint
resources: resources:
ContainersCommon: ContainersCommon:
@ -136,6 +144,7 @@ outputs:
- property: - property:
outname: '@timestamp' outname: '@timestamp'
name: timereported name: timereported
dateFormat: 'rfc3339'
format: jsonf format: jsonf
- property: - property:
outname: host outname: host
@ -143,7 +152,7 @@ outputs:
format: jsonf format: jsonf
- property: - property:
outname: severity outname: severity
name: syslogseverity-text name: syslogseverity
format: jsonf format: jsonf
- property: - property:
outname: facility outname: facility
@ -161,6 +170,19 @@ outputs:
outname: message outname: message
name: msg name: msg
format: jsonf format: jsonf
- property:
outname: file
name: '$!metadata!filename'
format: jsonf
- constant:
outname: cloud
value: {get_param: CloudName}
format: jsonf
- constant:
outname: region
value: {get_param: KeystoneRegion}
format: jsonf
tripleo::profile::base::logging::rsyslog::elasticsearch: tripleo::profile::base::logging::rsyslog::elasticsearch:
map_merge: map_merge:
- {get_param: RsyslogElasticsearchSetting} - {get_param: RsyslogElasticsearchSetting}