fluent-bit icon indicating copy to clipboard operation
fluent-bit copied to clipboard

in_syslog: add expansion for ident and msg-id in tag

Open jiping-s opened this issue 6 years ago • 3 comments

Allow * in tag, e.g. syslog/*/*/. Wildcard chars are to be expanded to <ident> and <msg-id> fields.

One and only * is expanded to <ident>, and an optional, second * is expanded to <msg-id>.

A test runtime/in_syslog.c has been added to verify the tag expansion functionality - it does not involve any real syslog service.

Signed-off-by: Ji-Ping Shen [email protected]

jiping-s avatar Nov 08 '19 10:11 jiping-s

@edsiper, is this something that could be considered upstream? It would be pretty useful in some cases, given that tag manipulation is not really supported yet by Fluent Bit.

jstaffans avatar Jan 24 '20 20:01 jstaffans

Sorry for the late reply.

  • please rebase on top of git master
  • re-write the 'fill' function using normal msgpack-c API if needed

edsiper avatar May 05 '20 21:05 edsiper

@jiping-s

Please rebase your latest changes if still interested to land this functionality. If not, please let me know to close this PR.

Thank you.

niedbalski avatar Jun 05 '25 11:06 niedbalski