-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Kong's log system does not allow you to set fields with dots #11582
Comments
Thanks for reporting this. We can locate the logic handling the dots here. |
Create internal ticket KAG-2601 |
This issue is marked as stale because it has been open for 14 days with no activity. |
This should be easy to fix: for example, we could use % to escape |
Why use % rather than something more standard such as \ ? |
|
The issue is sort of conditionally fixed. That is, when you send a JSON request it works (after this PR #11091), but when you send a form data request it doesn't work because the variable name in the form data contains the |
@ms2008 will this fix be a either/or situation in which either all dots in, say custom_fields_by_lia, will be escaped or all of them will break into a nested table? |
@catbro666 What about your thoughts? |
Is there an existing issue for this?
Kong version (
$ kong version
)3.2.2.2
Current Behavior
When I set a custom field to the
file-log
plugin containing dots, it automatically unpacks the name into nested fields. For example, when I try to set Google's magic trace fieldlogging.googleapis.com/trace
, it unpacks as:which does not integrate with google cloud at all.
Expected Behavior
When I set field with dots, I expect it to keep dots
Steps To Reproduce
file-log
setting a custom field containing dotsAnything else?
This seems to be the default behavior judging by these lines, but I'd expect to be able to integrate with my cloud provider.
Additional info:
The text was updated successfully, but these errors were encountered: