Merge "Fluentd: fix duplicate log level naming"
This commit is contained in:
commit
aa3d644f99
@ -12,7 +12,7 @@
|
||||
<filter apache_access>
|
||||
@type record_transformer
|
||||
<record>
|
||||
severity_label INFO
|
||||
log_level INFO
|
||||
Severity 6
|
||||
</record>
|
||||
</filter>
|
||||
|
@ -3,7 +3,7 @@
|
||||
reserve_data true
|
||||
format grok
|
||||
key_name message
|
||||
grok_pattern %{TIMESTAMP_ISO8601:Timestamp} %{NUMBER:Pid} %{LOGLEVEL:severity_label} %{NOTSPACE:python_module} \[(?:req-(?:%{NOTSPACE:request_id}) (?:%{NOTSPACE:user_id}) (?:%{NOTSPACE:tenant_id}) (?:%{NOTSPACE:domain_id}) (?:%{NOTSPACE:user_domain}) (?:%{NOTSPACE:project_domain})|-)\] %{GREEDYDATA:Payload}
|
||||
grok_pattern %{TIMESTAMP_ISO8601:Timestamp} %{NUMBER:Pid} %{LOGLEVEL:log_level} %{NOTSPACE:python_module} \[(?:req-(?:%{NOTSPACE:request_id}) (?:%{NOTSPACE:user_id}) (?:%{NOTSPACE:tenant_id}) (?:%{NOTSPACE:domain_id}) (?:%{NOTSPACE:user_domain}) (?:%{NOTSPACE:project_domain})|-)\] %{GREEDYDATA:Payload}
|
||||
time_format "%Y-%m-%d %H:%M:%S.%L"
|
||||
time_key Timestamp
|
||||
keep_time_key true
|
||||
|
@ -6,7 +6,7 @@
|
||||
tag infra.mariadb
|
||||
format multiline
|
||||
format_firstline /^\d{6}/
|
||||
format1 /^(?<time>\d{6} \d{1,2}:\d{1,2}:\d{1,2}) \[(?<severity_label>\S+)\] (?<Payload>.*)/
|
||||
format1 /^(?<time>\d{6} \d{1,2}:\d{1,2}:\d{1,2}) \[(?<log_level>\S+)\] (?<Payload>.*)/
|
||||
time_format %y%m%d %k:%M:%S
|
||||
enable_watch_timer false
|
||||
</source>
|
||||
|
Loading…
Reference in New Issue
Block a user