Merge "Fluentd: fix duplicate log level naming"
This commit is contained in:
commit
aa3d644f99
@ -12,7 +12,7 @@
|
|||||||
<filter apache_access>
|
<filter apache_access>
|
||||||
@type record_transformer
|
@type record_transformer
|
||||||
<record>
|
<record>
|
||||||
severity_label INFO
|
log_level INFO
|
||||||
Severity 6
|
Severity 6
|
||||||
</record>
|
</record>
|
||||||
</filter>
|
</filter>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
reserve_data true
|
reserve_data true
|
||||||
format grok
|
format grok
|
||||||
key_name message
|
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_format "%Y-%m-%d %H:%M:%S.%L"
|
||||||
time_key Timestamp
|
time_key Timestamp
|
||||||
keep_time_key true
|
keep_time_key true
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
tag infra.mariadb
|
tag infra.mariadb
|
||||||
format multiline
|
format multiline
|
||||||
format_firstline /^\d{6}/
|
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
|
time_format %y%m%d %k:%M:%S
|
||||||
enable_watch_timer false
|
enable_watch_timer false
|
||||||
</source>
|
</source>
|
||||||
|
Loading…
Reference in New Issue
Block a user