-
Notifications
You must be signed in to change notification settings - Fork 42
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
kv filter: support escaped quotes #2
Comments
confirmed this bug. |
DO NOT USE THIS WORKAROUND see update note below. for those who are looking for a workaround, this is what i've done (assuming
this essentially URL-encode the escaped quote...then URL-decode after note that i've tried gsub " with a quote, then gsub quote back to double-quote (tried escaped and unescaped double-quote)...and what happens is that the resulting string has a double-escaped quote...dang! but even if that worked...this becomes a problem if you actually have a legit quote in your string. UPDATE 10/12/2015: as of this writing, i would advise using the workaround above as it actually triggers another long-standing bug elastic/logstash#3780 which has something to do with the urldecode/urlencode filter (i've verified this is the same error when i apply this workaround)...still prevalent as of v1.5.3 |
This bug is affecting me as well. Looks like it would be a fairly simple regex change, any specific constraints on contributions? |
I applied the change proposed by @placeybordeaux and extended the existing test case. Unfortunately, I wasn't able to run the tests locally (not a Ruby dev myself), but the code behaves as it should in my manual tests. Here's the diff, let me know if I should open a PR: https://github.com/logstash-plugins/logstash-filter-kv/compare/master...piquadrat:issue-2?expand=1 |
Are there any updates on this issue? Is this issue still unresolved? |
hi all, is the 'escaped quote' problem still exists? i still get the bug in 'logstash-filter-kv-4.0.2' |
hi all, the 'escaped quote' problem still exists, how can i fix it ? i still get the bug in 'logstash-filter-kv-4.0.1' |
hi. Escaped quotes brought me parsing errors. The quotes in the value contain escaped quotes and contain the cut symbol. When parsing, the value is split by the cut character instead of using the double quotes as a whole.
the result is: |
Is there any hope for this issue? One of my newer colleagues just opened an internal bug ticket because he noticed parse issues due to this bug in our logging system. I had to point him at duplicate bugs going back YEARS. We never stopped suffering from this. |
Migrated from JIRA: https://logstash.jira.com/browse/LOGSTASH-2272
which was replicated at elastic/logstash#1605
With the following config:
The following message:
foo="bar \"baz\""
Should create the following output:
But instead creates the following output:
The text was updated successfully, but these errors were encountered: