From cd067c08c8b9a4e69344a88e4d0c15ab2cf53e6d Mon Sep 17 00:00:00 2001 From: jiasirui Date: Thu, 23 Dec 2021 11:22:39 +0800 Subject: [PATCH] fluentd support glance logs collect Change-Id: Id5f07e7a35884a031d58b2c0a2f905814976a925 --- devstack/fluentd-conf/input/02-glance.conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 devstack/fluentd-conf/input/02-glance.conf diff --git a/devstack/fluentd-conf/input/02-glance.conf b/devstack/fluentd-conf/input/02-glance.conf new file mode 100644 index 0000000..babd6d7 --- /dev/null +++ b/devstack/fluentd-conf/input/02-glance.conf @@ -0,0 +1,14 @@ + + @type tail + path /var/log/kolla/glance/*.log + pos_file /var/run/td-agent/devstack-openstack_glance.pos + tag devstack + format multiline + format_firstline /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.\d{3} \d+ \S+ \S+ \[(\S+ req-\S+ \S+ \S+ \S+ \S+ \S+|-)\]/ + format1 /^(?\S+ \S+) (?\d+) (?\S+) (?\S+) (\[(?\S+) (req-(?\S+) (?\S+) (?\S+) (?\S+) (?\S+) (?\S+)|-)\])? (?.*)?$/ + time_key Timestamp + keep_time_key true + time_format %F %T.%L + ignore_repeated_permission_error true + enable_watch_timer false + \ No newline at end of file