Skip to content

feat(syslog-ng): expose log_msg_size global option#2267

Open
fdolsky321 wants to merge 1 commit into
kube-logging:masterfrom
fdolsky321:feature/syslogng-global-log-msg-size
Open

feat(syslog-ng): expose log_msg_size global option#2267
fdolsky321 wants to merge 1 commit into
kube-logging:masterfrom
fdolsky321:feature/syslogng-global-log-msg-size

Conversation

@fdolsky321

Copy link
Copy Markdown

Summary

Exposes syslog-ng's log-msg-size() as a configurable global option so users can override the built-in default of 8192 bytes for larger log records.

  • Adds log_msg_size (*int) to SyslogNGSpec.GlobalOptions in pkg/sdk/logging/api/v1beta1/syslogng_types.go.
  • The reflection-based config renderer emits log_msg_size(<n>); inside the top-level options { } block. When unset, nothing is rendered and syslog-ng keeps its native 8192 default (no behavior change for existing users).
  • Regenerated deepcopy, CRD manifests (Logging + SyslogNGConfig), Helm chart CRDs, and docs via make generate.

Usage

spec:
  syslogNG:
    globalOptions:
      log_msg_size: 32768

Testing

  • Added a golden-config test case (global options log_msg_size) in pkg/sdk/logging/model/syslogng/config/config_test.go asserting log_msg_size(32768); renders in the options { } block.
  • go build ./... and go test ./logging/model/syslogng/... pass in pkg/sdk.

@csatib02 csatib02 requested a review from OverOrion July 9, 2026 08:42
Add the log_msg_size global option to SyslogNGSpec.GlobalOptions so users
can override syslog-ng's built-in default of 8192 bytes. When unset, nothing
is rendered and syslog-ng keeps its native default.

Signed-off-by: fdolsky321 <fdolsky@gmail.com>
@fdolsky321 fdolsky321 force-pushed the feature/syslogng-global-log-msg-size branch from b406e21 to 86f68cc Compare July 9, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant