Skip to content

Commit

Permalink
Add the old user_agent field set in this use case
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Martin committed Nov 6, 2018
1 parent 3a6c15b commit 62baee0
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
8 changes: 8 additions & 0 deletions use-cases/web-logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ Using the fields as represented here is not expected to conflict with ECS, but m
| <a name="http.response.status_code"></a>*http.response.status_code* | *Http response status code.* | (use case) | long | `404` |
| <a name="http.response.body"></a>*http.response.body* | *The full http response body.* | (use case) | keyword | `Hello world` |
| <a name="http.version"></a>*http.version* | *Http version.* | (use case) | keyword | `1.1` |
| <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/>* | | | |
| <a name="user_agent.original"></a>*user_agent.original* | *Unparsed version of the user_agent.* | (use case) | keyword | |
| <a name="user_agent.device"></a>*user_agent.device* | *Name of the physical device.* | (use case) | keyword | |
| <a name="user_agent.version"></a>*user_agent.version* | *Version of the physical device.* | (use case) | keyword | |
| <a name="user_agent.major"></a>*user_agent.major* | *Major version of the user agent.* | (use case) | long | |
| <a name="user_agent.minor"></a>*user_agent.minor* | *Minor version of the user agent.* | (use case) | long | |
| <a name="user_agent.patch"></a>*user_agent.patch* | *Patch version of the user agent.* | (use case) | keyword | |
| <a name="user_agent.name"></a>*user_agent.name* | *Name of the user agent.* | (use case) | keyword | `Chrome` |



52 changes: 52 additions & 0 deletions use-cases/web-logs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,55 @@ fields:
description: >
Http version.
example: 1.1

- name: user_agent
title: User agent
group: 2
description: >
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.
type: group
fields:

- name: original
level: extended
type: keyword
description: >
Unparsed version of the user_agent.
- name: device
level: extended
type: keyword
description: >
Name of the physical device.
- name: version
level: extended
type: keyword
description: >
Version of the physical device.
- name: major
level: extended
type: long
description: >
Major version of the user agent.
- name: minor
level: extended
type: long
description: >
Minor version of the user agent.
- name: patch
level: extended
type: keyword
description: >
Patch version of the user agent.
- name: name
level: extended
type: keyword
example: Chrome
description: >
Name of the user agent.

0 comments on commit 62baee0

Please sign in to comment.