瀏覽代碼

Merge "Remove systemd.source prefix from logs tag"

pull/170/head
Martin Polreich 6 年之前
父節點
當前提交
e4ea94f1bb
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      linux/meta/fluentd.yml

+ 4
- 2
linux/meta/fluentd.yml 查看文件

@@ -77,6 +77,8 @@ agent:
record:
- name: severity_label
value: '${ {"TRACE"=>8,"DEBUG"=>7,"INFO"=>6,"NOTICE"=>5,"WARNING"=>4,"ERROR"=>3,"CRITICAL"=>2,"ALERT"=>1,"EMERGENCY"=>0}.key(record["Severity"].to_i) }'
- name: source
value: systemd
match:
rewrite_tag:
tag: systemd.source
@@ -84,9 +86,9 @@ agent:
rule:
- name: ident
regexp: '^(.*)$'
result: __TAG__.$1
result: $1.systemd
push_to_default:
tag: 'systemd.source.*'
tag: '*.systemd'
type: copy
store:
- type: relabel

Loading…
取消
儲存