Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in_tail: add more path delimiters to the sanitization list #2188

Merged
merged 1 commit into from
May 20, 2020

Conversation

fujimotos
Copy link
Member

Unix and Windows use different characters as delimiters. Unix
uses /, and Windows uses \. Windows also uses : for drive
names.

This patch teaches Fluent Bit about both flavors of delimiters,
so that it can produce a pretty tag like:

prefix.c.users.public.test.log

... not something like:

prefix.c:\users\public\test\log

Signed-off-by: Fujimoto Seiji fujimoto@ceptord.net

Unix and Windows use different characters as delimiters. Unix
uses `/`, and Windows uses `\`. Windows also uses `:` for drive
names.

This patch teaches Fluent Bit about both flavors of delimiters,
so that it can produce a pretty tag like:

    prefix.c.users.public.test.log

... not something like:

    prefix.c:\users\public\test\log

Signed-off-by: Fujimoto Seiji <fujimoto@ceptord.net>
@edsiper edsiper merged commit d6736a6 into fluent:master May 20, 2020
@edsiper
Copy link
Member

edsiper commented May 20, 2020

thanks

sxd pushed a commit to sxd/fluent-bit that referenced this pull request Jun 6, 2020
Unix and Windows use different characters as delimiters. Unix
uses `/`, and Windows uses `\`. Windows also uses `:` for drive
names.

This patch teaches Fluent Bit about both flavors of delimiters,
so that it can produce a pretty tag like:

    prefix.c.users.public.test.log

... not something like:

    prefix.c:\users\public\test\log

Signed-off-by: Fujimoto Seiji <fujimoto@ceptord.net>
@fujimotos fujimotos deleted the sf/in-tail-backslash branch June 11, 2020 00:42
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