fluentd support glance logs collect

Change-Id: Id5f07e7a35884a031d58b2c0a2f905814976a925
This commit is contained in:
jiasirui 2021-12-23 11:22:39 +08:00
parent 09ad65f2c4
commit cd067c08c8

View File

@ -0,0 +1,14 @@
<source>
@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 /^(?<Timestamp>\S+ \S+) (?<Pid>\d+) (?<log_level>\S+) (?<python_module>\S+) (\[(?<global_id>\S+) (req-(?<request_id>\S+) (?<user_id>\S+) (?<tenant_id>\S+) (?<domain_id>\S+) (?<user_domain>\S+) (?<project_domain>\S+)|-)\])? (?<Payload>.*)?$/
time_key Timestamp
keep_time_key true
time_format %F %T.%L
ignore_repeated_permission_error true
enable_watch_timer false
</source>