Browse Source

Merge "Remove systemd.source prefix from logs tag"

pull/170/head
Martin Polreich 6 years ago
parent
commit
e4ea94f1bb
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      linux/meta/fluentd.yml

+ 4
- 2
linux/meta/fluentd.yml View File

record: record:
- name: severity_label - 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) }' 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: match:
rewrite_tag: rewrite_tag:
tag: systemd.source tag: systemd.source
rule: rule:
- name: ident - name: ident
regexp: '^(.*)$' regexp: '^(.*)$'
result: __TAG__.$1
result: $1.systemd
push_to_default: push_to_default:
tag: 'systemd.source.*'
tag: '*.systemd'
type: copy type: copy
store: store:
- type: relabel - type: relabel

Loading…
Cancel
Save