-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Default nginx pipelines should decode url.original field #19088
Comments
Pinging @elastic/integrations-services (Team:Services) |
@andrewkroh I'm working on a PR for this but trying to decide if the url components should be decoded or not. I guess it depends on if we're trying to show what the user entered into the browser/the link or what the browser/web server converted it to in order to remove special characters. Thoughts? |
Based on my interpretation of ECS, I think The uri_parts processor should automatically URL decode the parts of the URI as described in https://docs.oracle.com/javase/7/docs/api/java/net/URI.html.
You'll see in its source that it doesn't use the So I would decode the same components as the |
the |
PR has been updated, please take a look to see if we think it meets the intent of the issue & ECS standard. |
I updated 15 Modules that i could find that have |
@SlavikCA Please see the conversation in #24699. It was decided amongst the group and the ECS authors that per the spec, the |
@legoguy1000 That's good solution. Do you think we can expect it in 7.13? |
I don't know what the cutoff date for 7.13 is but the ci pipeline should be done in a couple hours and based off my conversations with the elastic devs, I think it should be good to merge once it passes. |
Describe the enhancement:
Describe a specific use case for the enhancement or feature:
Here is how
url.original
field currently looks in Kibana:/A%20Beka%20G1%20Howe/029_AND_30/15%20reading%20elephants.mp4
Here is how it should look:
/A Beka G1 Howe/009/17 Reading Elephants.mp4
Here is the original record in the Nginx access log:
So, that example fixes the issue of HTML-encoded character, such as spaces.
Here is one more example, where decoding is needed to non-english characters:
Here is how
url.original
field currently looks in Kibana:/%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B0%D1%8F%20%D1%88%D0%BA%D0%BE%D0%BB%D0%B0%20-%20InternetUrok%201%D0%BA%D0%BB%D0%B0%D1%81%D1%81/
Here is how it should look:
/Русская школа - InternetUrok 1класс/
Here is the original record in the Nginx access log:
Issue is the same for Nginx access and error pipelines (message field)
The text was updated successfully, but these errors were encountered: