Skip to content

Problem with KV when = delimiter sign is present in the value #15

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

Open
Luigius opened this issue Sep 17, 2021 · 1 comment
Open

Problem with KV when = delimiter sign is present in the value #15

Luigius opened this issue Sep 17, 2021 · 1 comment

Comments

@Luigius
Copy link

Luigius commented Sep 17, 2021

Hi
I have a log that uses as KV separator the = sign, inside some fields (which are delimited by quotas) sometimes the = sign is present as a result that all strings become a key.

example:
Sep 16 21:12:04 _gateway date=2021-09-16,time=21: 12:04,dstport=80,url="/setup.cgi?next_file=netgear.cfg",direction="outgoing"

become:
{"dstport":80,"url="setup.cgi?next_file":"netgear.cfg"","direction":"outgoing"}

instead of:
{"dstport":80,"url":"setup.cgi?next_file=netgear.cfg","direction":"outgoing"}

Any suggestion?
Thanks

@b1scuit-thi3f
Copy link

Hi,
We had the same problem and found that actually the original ltsv parser actually handles this!
https://docs.fluentd.org/parser/ltsv

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

No branches or pull requests

2 participants