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

Fix url.original example #255

Merged
merged 1 commit into from
Dec 7, 2018
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
Fix url.original example
Currently examples do not allow multiple lines. This is a quick fix, we must find something nicer in the future.
  • Loading branch information
ruflin committed Dec 7, 2018
commit 450d4aca4c2e04a340be431cf27a78189da98141
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,7 @@ URL fields provide a complete URL, with scheme, host, and path.

| Field | Description | Level | Type | Example |
|---|---|---|---|---|
| <a name="url.original"></a>url.original | Unmodified original url as seen in the event source.<br/>Note that in network monitoring, the observed URL may be a full URL, whereas in access logs, the URL is often just represented as a path.<br/>This field is meant to represent the URL as it was observed, complete or not. | extended | keyword | `https://www.elastic.co:443/search?q=elasticsearch#top
or
/search?q=elasticsearch` |
| <a name="url.original"></a>url.original | Unmodified original url as seen in the event source.<br/>Note that in network monitoring, the observed URL may be a full URL, whereas in access logs, the URL is often just represented as a path.<br/>This field is meant to represent the URL as it was observed, complete or not. | extended | keyword | `https://www.elastic.co:443/search?q=elasticsearch#top or /search?q=elasticsearch` |
| <a name="url.full"></a>url.full | If full URLs are important to your use case, they should be stored in `url.full`, whether this field is reconstructed or present in the event source. | extended | keyword | `https://www.elastic.co:443/search?q=elasticsearch#top` |
| <a name="url.scheme"></a>url.scheme | Scheme of the request, such as "https".<br/>Note: The `:` is not part of the scheme. | extended | keyword | `https` |
| <a name="url.domain"></a>url.domain | Domain of the request, such as "www.elastic.co".<br/>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. | extended | keyword | `www.elastic.co` |
Expand Down
6 changes: 1 addition & 5 deletions fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1410,11 +1410,7 @@
This field is meant to represent the URL as it was observed, complete
or not.
example: >
https://www.elastic.co:443/search?q=elasticsearch#top

or

/search?q=elasticsearch
https://www.elastic.co:443/search?q=elasticsearch#top or /search?q=elasticsearch

- name: full
level: extended
Expand Down
4 changes: 1 addition & 3 deletions schema.csv
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@ source.port,long,core,
url.domain,keyword,extended,www.elastic.co
url.fragment,keyword,extended,
url.full,keyword,extended,https://www.elastic.co:443/search?q=elasticsearch#top
url.original,keyword,extended,"https://www.elastic.co:443/search?q=elasticsearch#top
or
/search?q=elasticsearch"
url.original,keyword,extended,https://www.elastic.co:443/search?q=elasticsearch#top or /search?q=elasticsearch
url.password,keyword,extended,
url.path,keyword,extended,
url.port,integer,extended,443
Expand Down
6 changes: 1 addition & 5 deletions schemas/url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@
This field is meant to represent the URL as it was observed, complete
or not.
example: >
https://www.elastic.co:443/search?q=elasticsearch#top

or

/search?q=elasticsearch
https://www.elastic.co:443/search?q=elasticsearch#top or /search?q=elasticsearch

- name: full
level: extended
Expand Down