Skip to content

Commit 92ef537

Browse files
authored
Merge pull request #62 from gabrielbussolo/61-document_the_properties_that_cant_be_used_by_a_custom_plugin
Document the configs keys constraints
2 parents 1c1d505 + 5393d03 commit 92ef537

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

README.md

+49
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,55 @@ When creating a Fluent Bit Input plugin, the _input_ package can be used as foll
3232
import "github.com/fluent/fluent-bit-go/input"
3333
```
3434

35+
#### Config key constraint
36+
37+
Some config keys are used/overwritten by Fluent Bit and can't be used by a custom plugin, they are:
38+
39+
| Property | Input | Output |
40+
|------------------------------|-------|--------|
41+
| `alias` | X | X |
42+
| `host` | X | X |
43+
| `ipv6` | X | X |
44+
| `listen` | X | |
45+
| `log_level` | X | X |
46+
| `log_suppress_interval` | X | |
47+
| `match` | X | |
48+
| `match_regex` | X | |
49+
| `mem_buf_limit` | X | X |
50+
| `port` | X | X |
51+
| `retry_limit` | X | |
52+
| `routable` | X | X |
53+
| `storage.pause_on_chunks_overlimit` | X | X |
54+
| `storage.total_limit_size` | X | |
55+
| `storage.type` | X | X |
56+
| `tag` | X | X |
57+
| `threaded` | X | X |
58+
| `tls` | X | X |
59+
| `tls.ca_file` | X | X |
60+
| `tls.ca_path` | X | X |
61+
| `tls.crt_file` | X | X |
62+
| `tls.debug` | X | X |
63+
| `tls.key_file` | X | X |
64+
| `tls.key_passwd` | X | X |
65+
| `tls.verify` | X | X |
66+
| `tls.vhost` | X | X |
67+
| `workers` | X | |
68+
69+
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.
70+
71+
```ini
72+
[OUTPUT]
73+
Name my_output_plugin
74+
Listen something # work
75+
Host # don't work
76+
Address # work
77+
[INPUT]
78+
Name my_input_plugin
79+
Listen something #don't work
80+
Host localhost # don't work
81+
Address # work
82+
```
83+
3584
## Contact
3685

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

0 commit comments

Comments
 (0)