Browse Source

Merge "[queens-only] Fluentd - Fix multiline format" into stable/queens

changes/23/741223/1
Zuul 1 year ago
committed by Gerrit Code Review
parent
commit
e149018713
  1. 7
      ci/environments/scenario001-multinode-containers.yaml
  2. 8
      common/services/role.role.j2.yaml

7
ci/environments/scenario001-multinode-containers.yaml

@ -173,6 +173,13 @@ parameter_defaults:
LoggingServers:
- host: 127.0.0.1
port: 24224
LoggingExtraSources:
- format: multiline
format_firstline: /(?<time>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.\d+) (?<pid>\d+) (?<priority>\S+) (?<component>\S+) (?<message> Traceback .*)$/
format1: /(?<time>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.\d+) (?<pid>\d+) (?<priority>\S+) (?<component>\S+) (?<message> .*)$/
format2: /(?<time>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.\d+) (?<pid>\d+) (?<priority>\S+) (?<component>\S+) (?<traceback> \S.*)$/
path: /var/log/nova/nova-conductor.log
tag: openstack.nova.conductor.traceback
MonitoringRabbitHost: 127.0.0.1
MonitoringRabbitPort: 5676
MonitoringRabbitPassword: sensu

8
common/services/role.role.j2.yaml

@ -123,13 +123,7 @@ resources:
pos_file_path => coalesce($.data.pos_file_path, ''),
sources => coalesce($.data.sources, {}).flatten()
) ->
$sources.where($ != null).select({
'type' => 'tail',
'tag' => $.tag,
'path' => $.path,
'format' => $.get('format', $default_format),
'pos_file' => $.get('pos_file', $pos_file_path + '/' + $.tag + '.pos')
})
$sources.where($ != null)
data:
sources:
- {get_attr: [LoggingConfiguration, LoggingDefaultSources]}

Loading…
Cancel
Save