Use different pos files for gnocchi services
Adjust timeformat.
Change-Id: Ia1515a03f4e5e48dee908015c9d5be3e148144db
Closes-Bug: PROD-24758
diff --git a/gnocchi/meta/fluentd.yml b/gnocchi/meta/fluentd.yml
index 39aea37..d8e1aa9 100644
--- a/gnocchi/meta/fluentd.yml
+++ b/gnocchi/meta/fluentd.yml
@@ -8,22 +8,22 @@
type: tail
tag: gnocchi.metricd
path: /var/log/gnocchi/gnocchi-metricd.log
- pos_file: {{ pillar.fluentd.agent.dir.positiondb }}/gnocchi.pos
+ pos_file: {{ pillar.fluentd.agent.dir.positiondb }}/gnocchi_metricd.pos
parser:
type: regexp
time_key: time
- time_format: '%FT%H:%M:%S.%L%z'
+ time_format: '%Y-%m-%d %H:%M:%S,%L'
keep_time_key: false
format: '/^(?<time>.*)\s\[(?<pid>[0-9]+)\]\s(?<severity_label>[A-Z]+)\s+(?<Payload>.*)$/'
tail_gnocchi_statsd:
type: tail
tag: gnocchi.statsd
path: /var/log/gnocchi/gnocchi-statsd.log
- pos_file: {{ pillar.fluentd.agent.dir.positiondb }}/gnocchi.pos
+ pos_file: {{ pillar.fluentd.agent.dir.positiondb }}/gnocchi_statsd.pos
parser:
type: regexp
time_key: time
- time_format: '%FT%H:%M:%S.%L%z'
+ time_format: '%Y-%m-%d %H:%M:%S,%L'
keep_time_key: false
format: '/^(?<time>.*)\s\[(?<pid>[0-9]+)\]\s(?<severity_label>[A-Z]+)\s+(?<Payload>.*)$/'
filter:
@@ -44,4 +44,4 @@
tag: gnocchi.**
type: relabel
label: default_output
-{%- endif %}
\ No newline at end of file
+{%- endif %}