How to exclude pattern in <match> for fluentd config? How to exclude pattern in <match> for fluentd config? kubernetes kubernetes

How to exclude pattern in <match> for fluentd config?


Drop one, leave everything else:

<match what.you.want.to.drop>  @type null</match><match **>  # process everything else</match>

Drop everything except one:

<match what.you.want.to.stay>  # process here or send to a label</match><match **> # Optional block. It will be dropped anyways if no other matches, but with a warning printed to a fluentd log.  # Drop everything else explicitly to avoid warning.  @type null</match>