fluent / fluent/fluent-bit

`record-modifier` filter's `allowlist_key` list limited to 10 entries

Open
#10,294 15 comments 1 reaction 0 assignees View on GitHub
status: waiting-for-triage
Dominant language
C
Stars
8.1k
Forks
2k
Avg merge
4d 20h
Merged PRs (30d)
71

Description

## Bug Report

**Describe the bug**
I am using the `record_modifier` filter as a processor (not that matter, but we never know) with the `allowlist_key` config:
```
- name: record_modifier
allowlist_key:
- key1
- key2
[...]
- key10
```

When I add a 11th entry to the array, Fluent Bit fails to start with the following error:
```
fluent-bit [2025/05/06 14:34:40] [error] unable to add key to list map
fluent-bit [2025/05/06 14:34:40] [error] yaml error
fluent-bit [2025/05/06 14:34:40] [error] configuration file contains errors, aborting.
```

I have tracked down the error message, and I believe this is due to this line:
https://github.com/fluent/fluent-bit/blame/757b13d365bf95a8dce309d5f8d5e973bbc339f1/src/config_format/flb_cf_yaml.c#L2592

**Your Environment**

* Version used: 4.0.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.