From 9c6397022193cb8c25b1ae80d853046c5d6c6928 Mon Sep 17 00:00:00 2001 From: owanio1992 Date: Tue, 4 Nov 2025 23:02:23 +0800 Subject: [PATCH 1/4] docs: Add json.escape_unicode option to service configuration Signed-off-by: owanio1992 --- .../configuring-fluent-bit/classic-mode/configuration-file.md | 1 + administration/configuring-fluent-bit/yaml/configuration-file.md | 1 + administration/configuring-fluent-bit/yaml/service-section.md | 1 + 3 files changed, 3 insertions(+) diff --git a/administration/configuring-fluent-bit/classic-mode/configuration-file.md b/administration/configuring-fluent-bit/classic-mode/configuration-file.md index 01091dc37..a9e4cf961 100644 --- a/administration/configuring-fluent-bit/classic-mode/configuration-file.md +++ b/administration/configuring-fluent-bit/classic-mode/configuration-file.md @@ -35,6 +35,7 @@ The `Service` section defines global properties of the service. The following ke | `scheduler.cap` | Set a maximum retry time in seconds. Supported in v1.8.7 and greater. | `2000` | | `scheduler.base` | Set a base of exponential backoff. Supported in v1.8.7 and greater. | `5` | | `json.convert_nan_to_null` | If enabled, `NaN` converts to `null` when Fluent Bit converts `msgpack` to `json`. | `false` | +| `json.escape_unicode` | Controls how Fluent Bit serializes non‑ASCII / multi‑byte Unicode characters in JSON strings. When enabled, Unicode characters are escaped as \uXXXX sequences (characters outside BMP become surrogate pairs). When disabled, Fluent Bit emits raw UTF‑8 bytes. | `true` | | `sp.convert_from_str_to_num` | If enabled, Stream processor converts from number string to number type. | `true` | | `windows.maxstdio` | If specified, the limit of stdio is adjusted. Only provided for Windows. From 512 to 2048 is allowed. | `512` | diff --git a/administration/configuring-fluent-bit/yaml/configuration-file.md b/administration/configuring-fluent-bit/yaml/configuration-file.md index 8edf5407e..6ff7b71c2 100644 --- a/administration/configuring-fluent-bit/yaml/configuration-file.md +++ b/administration/configuring-fluent-bit/yaml/configuration-file.md @@ -81,6 +81,7 @@ The `service` section defines the global properties of the service. The Service | `scheduler.cap` | Set a maximum retry time in seconds. Supported from v1.8.7. | `2000` | | `scheduler.base` | Sets the base of exponential backoff. Supported from v1.8.7. | `5` | | `json.convert_nan_to_null` | If enabled, NaN is converted to null when Fluent Bit converts `msgpack` to JSON. | `false` | +| `json.escape_unicode` | Controls how Fluent Bit serializes non‑ASCII / multi‑byte Unicode characters in JSON strings. When enabled, Unicode characters are escaped as \uXXXX sequences (characters outside BMP become surrogate pairs). When disabled, Fluent Bit emits raw UTF‑8 bytes. | `true` | | `sp.convert_from_str_to_num` | If enabled, Stream processor converts from number string to number type. | `true` | | `windows.maxstdio` | If specified, the limit of stdio is adjusted. Only provided for Windows. From 512 to 2048 is allowed. | `512` | diff --git a/administration/configuring-fluent-bit/yaml/service-section.md b/administration/configuring-fluent-bit/yaml/service-section.md index ffa6581db..a939d248a 100644 --- a/administration/configuring-fluent-bit/yaml/service-section.md +++ b/administration/configuring-fluent-bit/yaml/service-section.md @@ -21,6 +21,7 @@ The `service` section defines global properties of the service. The available co | `scheduler.cap` | Sets a maximum retry time in seconds. Supported in v1.8.7 and greater. | `2000` | | `scheduler.base` | Sets the base of exponential backoff. Supported in v1.8.7 and greater. | `5` | | `json.convert_nan_to_null` | If enabled, `NaN` is converted to `null` when Fluent Bit converts `msgpack` to `json`. | `false` | +| `json.escape_unicode` | Controls how Fluent Bit serializes non‑ASCII / multi‑byte Unicode characters in JSON strings. When enabled, Unicode characters are escaped as \uXXXX sequences (characters outside BMP become surrogate pairs). When disabled, Fluent Bit emits raw UTF‑8 bytes. | `true` | | `sp.convert_from_str_to_num` | If enabled, the Stream Processor converts strings that represent numbers to a numeric type. | `true` | ## Configuration example From bdb8bf027fdccfad66c39b341424ca3f8bd78a78 Mon Sep 17 00:00:00 2001 From: owan Date: Wed, 5 Nov 2025 13:26:28 +0800 Subject: [PATCH 2/4] Update administration/configuring-fluent-bit/yaml/service-section.md Co-authored-by: Lynette Miles <6818907+esmerel@users.noreply.github.com> Signed-off-by: owan --- administration/configuring-fluent-bit/yaml/service-section.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administration/configuring-fluent-bit/yaml/service-section.md b/administration/configuring-fluent-bit/yaml/service-section.md index a939d248a..05049e093 100644 --- a/administration/configuring-fluent-bit/yaml/service-section.md +++ b/administration/configuring-fluent-bit/yaml/service-section.md @@ -21,7 +21,7 @@ The `service` section defines global properties of the service. The available co | `scheduler.cap` | Sets a maximum retry time in seconds. Supported in v1.8.7 and greater. | `2000` | | `scheduler.base` | Sets the base of exponential backoff. Supported in v1.8.7 and greater. | `5` | | `json.convert_nan_to_null` | If enabled, `NaN` is converted to `null` when Fluent Bit converts `msgpack` to `json`. | `false` | -| `json.escape_unicode` | Controls how Fluent Bit serializes non‑ASCII / multi‑byte Unicode characters in JSON strings. When enabled, Unicode characters are escaped as \uXXXX sequences (characters outside BMP become surrogate pairs). When disabled, Fluent Bit emits raw UTF‑8 bytes. | `true` | +| `json.escape_unicode` | Controls how Fluent Bit serializes non‑ASCII / multi‑byte Unicode characters in JSON strings. When enabled, Unicode characters are escaped as `\uXXXX` sequences (characters outside BMP become surrogate pairs). When disabled, Fluent Bit emits raw UTF‑8 bytes. | `true` | | `sp.convert_from_str_to_num` | If enabled, the Stream Processor converts strings that represent numbers to a numeric type. | `true` | ## Configuration example From 52077110c16f662f74237ac9c413ba604c3cb774 Mon Sep 17 00:00:00 2001 From: owan Date: Wed, 5 Nov 2025 13:26:36 +0800 Subject: [PATCH 3/4] Update administration/configuring-fluent-bit/classic-mode/configuration-file.md Co-authored-by: Lynette Miles <6818907+esmerel@users.noreply.github.com> Signed-off-by: owan --- .../configuring-fluent-bit/classic-mode/configuration-file.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administration/configuring-fluent-bit/classic-mode/configuration-file.md b/administration/configuring-fluent-bit/classic-mode/configuration-file.md index a9e4cf961..bf1c12ebb 100644 --- a/administration/configuring-fluent-bit/classic-mode/configuration-file.md +++ b/administration/configuring-fluent-bit/classic-mode/configuration-file.md @@ -35,7 +35,7 @@ The `Service` section defines global properties of the service. The following ke | `scheduler.cap` | Set a maximum retry time in seconds. Supported in v1.8.7 and greater. | `2000` | | `scheduler.base` | Set a base of exponential backoff. Supported in v1.8.7 and greater. | `5` | | `json.convert_nan_to_null` | If enabled, `NaN` converts to `null` when Fluent Bit converts `msgpack` to `json`. | `false` | -| `json.escape_unicode` | Controls how Fluent Bit serializes non‑ASCII / multi‑byte Unicode characters in JSON strings. When enabled, Unicode characters are escaped as \uXXXX sequences (characters outside BMP become surrogate pairs). When disabled, Fluent Bit emits raw UTF‑8 bytes. | `true` | +| `json.escape_unicode` | Controls how Fluent Bit serializes non‑ASCII / multi‑byte Unicode characters in JSON strings. When enabled, Unicode characters are escaped as `\uXXXX` sequences (characters outside BMP become surrogate pairs). When disabled, Fluent Bit emits raw UTF‑8 bytes. | `true` | | `sp.convert_from_str_to_num` | If enabled, Stream processor converts from number string to number type. | `true` | | `windows.maxstdio` | If specified, the limit of stdio is adjusted. Only provided for Windows. From 512 to 2048 is allowed. | `512` | From 345a27d481b5f930b1764e8a3097a506ced0e662 Mon Sep 17 00:00:00 2001 From: owan Date: Wed, 5 Nov 2025 13:26:42 +0800 Subject: [PATCH 4/4] Update administration/configuring-fluent-bit/yaml/configuration-file.md Co-authored-by: Lynette Miles <6818907+esmerel@users.noreply.github.com> Signed-off-by: owan --- .../configuring-fluent-bit/yaml/configuration-file.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administration/configuring-fluent-bit/yaml/configuration-file.md b/administration/configuring-fluent-bit/yaml/configuration-file.md index 6ff7b71c2..f63264662 100644 --- a/administration/configuring-fluent-bit/yaml/configuration-file.md +++ b/administration/configuring-fluent-bit/yaml/configuration-file.md @@ -81,7 +81,7 @@ The `service` section defines the global properties of the service. The Service | `scheduler.cap` | Set a maximum retry time in seconds. Supported from v1.8.7. | `2000` | | `scheduler.base` | Sets the base of exponential backoff. Supported from v1.8.7. | `5` | | `json.convert_nan_to_null` | If enabled, NaN is converted to null when Fluent Bit converts `msgpack` to JSON. | `false` | -| `json.escape_unicode` | Controls how Fluent Bit serializes non‑ASCII / multi‑byte Unicode characters in JSON strings. When enabled, Unicode characters are escaped as \uXXXX sequences (characters outside BMP become surrogate pairs). When disabled, Fluent Bit emits raw UTF‑8 bytes. | `true` | +| `json.escape_unicode` | Controls how Fluent Bit serializes non‑ASCII / multi‑byte Unicode characters in JSON strings. When enabled, Unicode characters are escaped as `\uXXXX` sequences (characters outside BMP become surrogate pairs). When disabled, Fluent Bit emits raw UTF‑8 bytes. | `true` | | `sp.convert_from_str_to_num` | If enabled, Stream processor converts from number string to number type. | `true` | | `windows.maxstdio` | If specified, the limit of stdio is adjusted. Only provided for Windows. From 512 to 2048 is allowed. | `512` |