@@ -416,35 +416,38 @@ app.log>`), there are a number of techniques you can use to manage the data flow
416416more efficiently.
417417
418418
419- ### Wildcards and Expansions
419+ ### Wildcards, Expansions and other tips
420420
421421The following match patterns can be used in ` <match> ` and ` <filter> ` tags:
422422
423- - ` * ` matches a single tag part.
423+ - ` * ` matches a single tag part.
424424
425- - For example, the pattern ` a.* ` matches ` a.b ` , but does not match ` a ` or
426- ` a.b.c `
425+ - For example, the pattern ` a.* ` matches ` a.b ` , but does not match ` a ` or ` a.b.c `
427426
428- - ` ** ` matches zero or more tag parts.
427+ - ` ** ` matches zero or more tag parts.
429428
430- - For example, the pattern ` a.** ` matches ` a ` , ` a.b ` and ` a.b.c `
429+ - For example, the pattern ` a.** ` matches ` a ` , ` a.b ` and ` a.b.c `
431430
432- - ` {X,Y,Z} ` matches X, Y, or Z, where X, Y, and Z are match patterns.
431+ - ` {X,Y,Z} ` matches X, Y, or Z, where X, Y, and Z are match patterns.
433432
434- - For example, the pattern ` {a,b} ` matches ` a ` and ` b ` , but does not match
435- ` c `
436- - This can be used in combination with ` * ` or ` ** ` patterns. Examples
437- include ` a.{b,c}.* ` and ` a.{b,c.**} ` .
433+ - For example, the pattern ` {a,b} ` matches ` a ` and ` b ` , but does not match ` c `
434+ - This can be used in combination with ` * ` or ` ** ` patterns. Examples
435+ include ` a.{b,c}.* ` and ` a.{b,c.**} ` .
438436
439- - ` #{...} ` evaluates the string inside brackets as a Ruby expression. (See
440- ** Embedding Ruby Expressions** section below).
437+ - ` /regular expression/ ` is for complex patterns
441438
442- - When multiple patterns are listed inside a single tag (delimited by one or
443- more whitespaces), it matches any of the listed patterns. For example:
439+ - For example, the pattern ` /(?!a\.).*/ ` matches non- ` a. ` started tags like ` b.xxx `
440+ - This feature is supported since fluentd v1.11.2
444441
445- - The patterns ` <match a b> ` match ` a ` and ` b ` .
446- - The patterns ` <match a.** b.*> ` match ` a ` , ` a.b ` , ` a.b.c ` (from the
447- first pattern) and ` b.d ` (from the second pattern).
442+ - ` #{...} ` evaluates the string inside brackets as a Ruby expression. (See
443+ ** Embedding Ruby Expressions** section below).
444+
445+ - When multiple patterns are listed inside a single tag (delimited by one or
446+ more whitespaces), it matches any of the listed patterns. For example:
447+
448+ - The patterns ` <match a b> ` match ` a ` and ` b ` .
449+ - The patterns ` <match a.** b.*> ` match ` a ` , ` a.b ` , ` a.b.c ` (from the
450+ first pattern) and ` b.d ` (from the second pattern).
448451
449452
450453### Note on Match Order
0 commit comments