Set Neutron logs Timestamp based on time record field
- Fix issue with milliseconds in logs shiped to elastic.
Related-bug: PROD-36383
Change-Id: I9f7477e27134bc796ef2207a2a0fe32df82a93d4
diff --git a/neutron/meta/fluentd.yml b/neutron/meta/fluentd.yml
index 92ef2eb..279e789 100644
--- a/neutron/meta/fluentd.yml
+++ b/neutron/meta/fluentd.yml
@@ -31,6 +31,8 @@
value: ${ record['message'] }
- name: python_module
value: ${ record['name'] }
+ - name: Timestamp
+ value: ${ DateTime.parse(record['time']).strftime('%Y-%m-%dT%H:%M:%S.%N%z') }
parse_http_stats:
tag: openstack.neutron
type: parser