Skip to content

Commit

Permalink
update request url fields
Browse files Browse the repository at this point in the history
url.full -> context.request.url.full
url.original -> context.request.url.raw

per feedback from @webmat
  • Loading branch information
graphaelli committed Nov 30, 2018
1 parent 99c19c7 commit 35ce28f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
6 changes: 5 additions & 1 deletion _meta/fields.common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -493,10 +493,14 @@
type: alias
path: context.request.url.hash

- name: original
- name: full
type: alias
path: context.request.url.full

- name: original
type: alias
path: context.request.url.raw

- name: path
type: alias
path: context.request.url.pathname
Expand Down
7 changes: 7 additions & 0 deletions docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,13 @@ type: alias
--
*`context.request.url.raw`*::
+
--
type: alias
--
*`context.request.url.pathname`*::
+
--
Expand Down
2 changes: 1 addition & 1 deletion include/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/system/test_ecs_mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_ecs_migration(self):

# TBD
exception_fields.update({
"beat.timezone", "context.http.status_code", "context.request.url.raw", "context.response.finished",
"beat.timezone", "context.http.status_code", "context.response.finished",
"context.response.status_code", "context.user.ip", "context.user.user-agent",
})

Expand Down

0 comments on commit 35ce28f

Please sign in to comment.