Skip to content
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

Added url.extension field #551

Merged
merged 1 commit into from
Oct 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions code/go/ecs/url.go

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

11 changes: 11 additions & 0 deletions docs/field-details.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3261,6 +3261,17 @@ type: keyword

example: `www.elastic.co`

| extended

// ===============================================================

| url.extension
| The field contains the file extension from the original request url. The file extension is only set if it exists, as not every url has a file extension.

type: keyword



| extended

// ===============================================================
Expand Down
7 changes: 7 additions & 0 deletions generated/beats/fields.ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2529,6 +2529,13 @@
In some cases a URL may refer to an IP and/or port directly, without a domain
name. In this case, the IP address would go to the `domain` field.'
example: www.elastic.co
- name: extension
level: extended
type: keyword
ignore_above: 1024
description: The field contains the file extension from the original request
url. The file extension is only set if it exists, as not every url has a file
extension.
- name: fragment
level: extended
type: keyword
Expand Down
1 change: 1 addition & 0 deletions generated/csv/fields.csv
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ source.user.name,keyword,core,albert,1.2.0-dev
trace.id,keyword,extended,4bf92f3577b34da6a3ce929d0e0e4736,1.2.0-dev
transaction.id,keyword,extended,00f067aa0ba902b7,1.2.0-dev
url.domain,keyword,extended,www.elastic.co,1.2.0-dev
url.extension,keyword,extended,,1.2.0-dev
url.fragment,keyword,extended,,1.2.0-dev
url.full,keyword,extended,https://www.elastic.co:443/search?q=elasticsearch#top,1.2.0-dev
url.original,keyword,extended,https://www.elastic.co:443/search?q=elasticsearch#top or /search?q=elasticsearch,1.2.0-dev
Expand Down
16 changes: 13 additions & 3 deletions generated/ecs/ecs_flat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3635,6 +3635,16 @@ url.domain:
order: 3
short: Domain of the url.
type: keyword
url.extension:
description: The field contains the file extension from the original request url.
The file extension is only set if it exists, as not every url has a file extension.
flat_name: url.extension
ignore_above: 1024
level: extended
name: extension
order: 8
short: File extension from the original request url.
type: keyword
url.fragment:
description: 'Portion of the url after the `#`, such as "top".

Expand All @@ -3643,7 +3653,7 @@ url.fragment:
ignore_above: 1024
level: extended
name: fragment
order: 8
order: 9
short: Portion of the url after the `#`.
type: keyword
url.full:
Expand Down Expand Up @@ -3678,7 +3688,7 @@ url.password:
ignore_above: 1024
level: extended
name: password
order: 10
order: 11
short: Password of the request.
type: keyword
url.path:
Expand Down Expand Up @@ -3749,7 +3759,7 @@ url.username:
ignore_above: 1024
level: extended
name: username
order: 9
order: 10
short: Username of the request.
type: keyword
user.domain:
Expand Down
17 changes: 14 additions & 3 deletions generated/ecs/ecs_nested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4091,6 +4091,17 @@ url:
order: 3
short: Domain of the url.
type: keyword
extension:
description: The field contains the file extension from the original request
url. The file extension is only set if it exists, as not every url has a file
extension.
flat_name: url.extension
ignore_above: 1024
level: extended
name: extension
order: 8
short: File extension from the original request url.
type: keyword
fragment:
description: 'Portion of the url after the `#`, such as "top".

Expand All @@ -4099,7 +4110,7 @@ url:
ignore_above: 1024
level: extended
name: fragment
order: 8
order: 9
short: Portion of the url after the `#`.
type: keyword
full:
Expand Down Expand Up @@ -4135,7 +4146,7 @@ url:
ignore_above: 1024
level: extended
name: password
order: 10
order: 11
short: Password of the request.
type: keyword
path:
Expand Down Expand Up @@ -4206,7 +4217,7 @@ url:
ignore_above: 1024
level: extended
name: username
order: 9
order: 10
short: Username of the request.
type: keyword
group: 2
Expand Down
4 changes: 4 additions & 0 deletions generated/elasticsearch/6/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -1526,6 +1526,10 @@
"ignore_above": 1024,
"type": "keyword"
},
"extension": {
"ignore_above": 1024,
"type": "keyword"
},
"fragment": {
"ignore_above": 1024,
"type": "keyword"
Expand Down
4 changes: 4 additions & 0 deletions generated/elasticsearch/7/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -1525,6 +1525,10 @@
"ignore_above": 1024,
"type": "keyword"
},
"extension": {
"ignore_above": 1024,
"type": "keyword"
},
"fragment": {
"ignore_above": 1024,
"type": "keyword"
Expand Down
4 changes: 4 additions & 0 deletions generated/legacy/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,10 @@
"ignore_above": 1024,
"type": "keyword"
},
"extension": {
"ignore_above": 1024,
"type": "keyword"
},
"fragment": {
"ignore_above": 1024,
"type": "keyword"
Expand Down
10 changes: 10 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2314,6 +2314,16 @@
"required": false,
"type": "keyword"
},
"url.extension": {
"description": "The field contains the file extension from the original request url. The file extension is only set if it exists, as not every url has a file extension.",
"example": "",
"footnote": "",
"group": 2,
"level": "extended",
"name": "url.extension",
"required": false,
"type": "keyword"
},
"url.fragment": {
"description": "Portion of the url after the `#`, such as \"top\".\nThe `#` is not part of the fragment.",
"example": "",
Expand Down
8 changes: 8 additions & 0 deletions schemas/url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@
the query field exists with an empty string. The `exists`
query can be used to differentiate between the two cases.

- name: extension
level: extended
type: keyword
short: File extension from the original request url.
description: >
The field contains the file extension from the original request url.
The file extension is only set if it exists, as not every url has a file extension.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please insert an additional blank line here, to have this as two paragraphs in the docs


- name: fragment
level: extended
type: keyword
Expand Down