Skip to content

format_syslog_5424(): add new FilterX function for syslog formatting#875

Merged
bazsi merged 5 commits intoaxoflow:mainfrom
alltilla:filterx-format-syslog-5424
Dec 8, 2025
Merged

format_syslog_5424(): add new FilterX function for syslog formatting#875
bazsi merged 5 commits intoaxoflow:mainfrom
alltilla:filterx-format-syslog-5424

Conversation

@alltilla
Copy link
Member

@alltilla alltilla commented Dec 7, 2025

Usage:

format_syslog_5424(
  message,
  add_octet_count=false,
  pri=expr,
  timestamp=expr,
  host=expr,
  program=expr,
  pid=expr,
  msgid=expr
)

message is the only mandatory argument.

Fallback values will be used instead of the named arguments if they are not set, or their evaluation fails.

@bazsi
Copy link
Member

bazsi commented Dec 7, 2025

I've pushed fixups to all my recommended changes above. I also added a simple light testcase.

bazsi
bazsi previously approved these changes Dec 7, 2025
Copy link
Member

@bazsi bazsi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please review my fixups and merge them if you find them ok. Otherwise this looks good to me.

@bazsi bazsi force-pushed the filterx-format-syslog-5424 branch from d8eec56 to 7a759a1 Compare December 8, 2025 07:37
@bazsi bazsi merged commit 9fa589d into axoflow:main Dec 8, 2025
22 checks passed
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.

2 participants