Skip to content

Commit

Permalink
Merge pull request #62 from gabrielbussolo/61-document_the_properties…
Browse files Browse the repository at this point in the history
…_that_cant_be_used_by_a_custom_plugin

Document the configs keys constraints
  • Loading branch information
cosmo0920 authored Mar 26, 2023
2 parents 1c1d505 + 5393d03 commit 92ef537
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,55 @@ When creating a Fluent Bit Input plugin, the _input_ package can be used as foll
import "github.com/fluent/fluent-bit-go/input"
```

#### Config key constraint

Some config keys are used/overwritten by Fluent Bit and can't be used by a custom plugin, they are:

| Property | Input | Output |
|------------------------------|-------|--------|
| `alias` | X | X |
| `host` | X | X |
| `ipv6` | X | X |
| `listen` | X | |
| `log_level` | X | X |
| `log_suppress_interval` | X | |
| `match` | X | |
| `match_regex` | X | |
| `mem_buf_limit` | X | X |
| `port` | X | X |
| `retry_limit` | X | |
| `routable` | X | X |
| `storage.pause_on_chunks_overlimit` | X | X |
| `storage.total_limit_size` | X | |
| `storage.type` | X | X |
| `tag` | X | X |
| `threaded` | X | X |
| `tls` | X | X |
| `tls.ca_file` | X | X |
| `tls.ca_path` | X | X |
| `tls.crt_file` | X | X |
| `tls.debug` | X | X |
| `tls.key_file` | X | X |
| `tls.key_passwd` | X | X |
| `tls.verify` | X | X |
| `tls.vhost` | X | X |
| `workers` | X | |

This implies that if your plugin depends on property like `listen` you can use on output plugin but not on input plugin, `host` don't work on both, rather than this custom key like `address` work on both.

```ini
[OUTPUT]
Name my_output_plugin
Listen something # work
Host # don't work
Address # work
[INPUT]
Name my_input_plugin
Listen something #don't work
Host localhost # don't work
Address # work
```

## Contact

Feel free to join us on our Slack channel, Mailing List, IRC or Twitter:
Expand Down

0 comments on commit 92ef537

Please sign in to comment.