Skip to content

Commit b958b31

Browse files
authored
in_tail: Add descriptions for use_extended_glob parameter (#488)
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
1 parent da88893 commit b958b31

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

input/tail.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ If the date is `20140401`, Fluentd starts to watch the files in `/path/to/2014/0
9797

9898
By default, You should not use `*` with log rotation because it may cause the log duplication. To avoid log duplication, you need to set `follow_inodes true` in the configuration.
9999

100+
If you want to use other glob patterns such as `[]` and `?`, you need to set up `glob_policy extended` as described in the `glob_policy` section.
101+
100102
### `path_timezone`
101103

102104
| type | default | version |
@@ -113,6 +115,19 @@ path_timezone "+00"
113115

114116
For timezone format, see [Timezone Section](../configuration/format-section.md#time-parameters).
115117

118+
### `glob_policy`
119+
120+
| type | default | available values | version |
121+
| :--- | :--- | :--- |:--- |
122+
| enum | backward\_compatible | backward\_compatible/extended/always | 1.17.0 |
123+
124+
This parameter permits to extend glob patterns on `path` and `exclude_path` parameters.
125+
When specifying `extended`, users can use `[]` and `?` in glob patterns.
126+
When specifying `always`, users can use `[]`, `?`, and additonally `{}` in glob patterns.
127+
128+
However, `always` option is not able to use with the default value of `path_delimiter`.
129+
When using the default value of `path_delimiter`, it will be marked as `Fluent::ConfigError`.
130+
116131
### `exclude_path`
117132

118133
| type | default | version |

0 commit comments

Comments
 (0)