Skip to content

Commit da5d05a

Browse files
authored
Index user_agent.original, after all. (#262)
1 parent a91e314 commit da5d05a

File tree

8 files changed

+5
-8
lines changed

8 files changed

+5
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ All notable changes to this project will be documented in this file based on the
3535
* Add fields `geo.country_name` and `geo.region_iso_code`. #214
3636
* Add `event.kind` and `event.outcome`. #242
3737
* Add `client` and `server` objects and fields. #236
38-
* Reintroduce a streamlined `user_agent` field set. #240
38+
* Reintroduce a streamlined `user_agent` field set. #240, #262
3939
* Add `geo.name` for ad hoc location names. #248
4040
* Add `event.timezone` to allow for proper interpretation of incomplete timestamps. #258
4141

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ The user_agent fields normally come from a browser request. They often show up i
497497

498498
| Field | Description | Level | Type | Example |
499499
|---|---|---|---|---|
500-
| <a name="user_agent.original"></a>user_agent.original | Unparsed version of the user_agent. | extended | (not indexed) | `Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1` |
500+
| <a name="user_agent.original"></a>user_agent.original | Unparsed version of the user_agent. | extended | keyword | `Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1` |
501501
| <a name="user_agent.name"></a>user_agent.name | Name of the user agent. | extended | keyword | `Safari` |
502502
| <a name="user_agent.version"></a>user_agent.version | Version of the user agent. | extended | keyword | `12.0` |
503503
| <a name="user_agent.device.name"></a>user_agent.device.name | Name of the device. | extended | keyword | `iPhone` |

fields.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1581,7 +1581,6 @@
15811581
- name: original
15821582
level: extended
15831583
type: keyword
1584-
index: false
15851584
description: >
15861585
Unparsed version of the user_agent.
15871586
example: "Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"

schema.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,5 +164,5 @@ user.id,keyword,core,
164164
user.name,keyword,core,albert
165165
user_agent.device.name,keyword,extended,iPhone
166166
user_agent.name,keyword,extended,Safari
167-
user_agent.original,(not indexed),extended,"Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
167+
user_agent.original,keyword,extended,"Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
168168
user_agent.version,keyword,extended,12.0

schemas/user_agent.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
- name: original
1212
level: extended
1313
type: keyword
14-
index: false
1514
description: >
1615
Unparsed version of the user_agent.
1716
example: "Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"

template.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,6 @@
778778
},
779779
"original": {
780780
"ignore_above": 1024,
781-
"index": false,
782781
"type": "keyword"
783782
},
784783
"version": {

use-cases/filebeat-apache-access.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ECS fields used in Filebeat for the apache module.
2121
| <a name="http.response.body_sent.bytes"></a>*http.response.body_sent.bytes* | *Http response body bytes sent, currently apache.access.body_sent.bytes* | (use case) | long | `117` |
2222
| <a name="http.referer"></a>*http.referer* | *Http referrer code, currently apache.access.referrer<br/>NOTE: In the RFC its misspell as referer and has become accepted standard* | (use case) | keyword | `http://elastic.co/` |
2323
| <a name="user_agent.&ast;"></a>*user_agent.&ast;* | *User agent fields as in schema. Currently under apache.access.user_agent.*<br/>* | | | |
24-
| [user_agent.original](../README.md#user_agent.original) | Original user agent. Currently apache.access.agent | extended | (not indexed) | `http://elastic.co/` |
24+
| [user_agent.original](../README.md#user_agent.original) | Original user agent. Currently apache.access.agent | extended | keyword | `http://elastic.co/` |
2525
| <a name="geoip.&ast;"></a>*geoip.&ast;* | *User agent fields as in schema. Currently under apache.access.geoip.*<br/>These are extracted from source.ip<br/>Should they be under source.geoip?<br/>* | | | |
2626
| <a name="geoip...."></a>*geoip....* | *All geoip fields.* | (use case) | keyword | |
2727

use-cases/web-logs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Using the fields as represented here is not expected to conflict with ECS, but m
1717
| [http.response.body](../README.md#http.response.body) | The full http response body. | extended | keyword | `Hello world` |
1818
| [http.version](../README.md#http.version) | Http version. | extended | keyword | `1.1` |
1919
| <a name="user_agent.&ast;"></a>*user_agent.&ast;* | *The user_agent fields normally come from a browser request. They often show up in web service logs coming from the parsed user agent string.<br/>* | | | |
20-
| [user_agent.original](../README.md#user_agent.original) | Unparsed version of the user_agent. | extended | (not indexed) | `Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1` |
20+
| [user_agent.original](../README.md#user_agent.original) | Unparsed version of the user_agent. | extended | keyword | `Mozilla/5.0 (iPhone; CPU iPhone OS 12_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1` |
2121
| <a name="user_agent.device"></a>*user_agent.device* | *Name of the physical device.* | (use case) | keyword | |
2222
| [user_agent.version](../README.md#user_agent.version) | Version of the physical device. | extended | keyword | `12.0` |
2323
| <a name="user_agent.major"></a>*user_agent.major* | *Major version of the user agent.* | (use case) | long | |

0 commit comments

Comments
 (0)