Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in_tail: Add descriptions for glob_policy parameter #488

Merged
merged 5 commits into from
Apr 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions input/tail.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ If the date is `20140401`, Fluentd starts to watch the files in `/path/to/2014/0

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.

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.

### `path_timezone`

| type | default | version |
Expand All @@ -113,6 +115,19 @@ path_timezone "+00"

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

### `glob_policy`

| type | default | available values | version |
| :--- | :--- | :--- |:--- |
| enum | backward\_compatible | backward\_compatible/extended/always | 1.17.0 |

This parameter permits to extend glob patterns on `path` and `exclude_path` parameters.
When specifying `extended`, users can use `[]` and `?` in glob patterns.
When specifying `always`, users can use `[]`, `?`, and additonally `{}` in glob patterns.

However, `always` option is not able to use with the default value of `path_delimiter`.
When using the default value of `path_delimiter`, it will be marked as `Fluent::ConfigError`.

### `exclude_path`

| type | default | version |
Expand Down