venus/devstack/fluentd-conf/input/cyborg.conf
jiasirui 5a75e9e52b use system log dir as the cybrog log output
Signed-off-by: jiasirui <jiasirui3@163.com>
Change-Id: I9bf51b8e5cb0b10050770c1df74cc886219602e8
2022-06-02 16:28:36 +08:00

14 lines
652 B
Plaintext

<source>
@type tail
path /var/log/cyborg/*.log
pos_file /var/run/td-agent/devstack-openstack_cyborg.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>