Skip to content

Instantly share code, notes, and snippets.

@sorend
Created January 18, 2021 20:19
Show Gist options
  • Save sorend/4ff037b4136d7abf131eea3e61371bd4 to your computer and use it in GitHub Desktop.
Save sorend/4ff037b4136d7abf131eea3e61371bd4 to your computer and use it in GitHub Desktop.
<match kubernetes.**>
@type rewrite_tag_filter
@id id_rewrite_tag_filter.multiline
<rule>
key fluentd_multiline
pattern /^false$/
tag plain.${tag}
</rule>
<rule>
key fluentd_multiline
pattern /^false$/
invert true
tag multiline.${tag}
</rule>
</match>
<match multiline.**>
@type relabel
@label @multiline
</match>
<match plain.**>
@type relabel
@label @output
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment