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

[1.x] add http.request.id (#1208) #1223

Merged
merged 1 commit into from
Jan 14, 2021
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
2 changes: 2 additions & 0 deletions CHANGELOG.next.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Thanks, you're awesome :-) -->

#### Added

* Added `http.request.id`. #1208

#### Improvements

#### Deprecated
Expand Down
6 changes: 6 additions & 0 deletions code/go/ecs/http.go

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

18 changes: 18 additions & 0 deletions docs/field-details.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3383,6 +3383,24 @@ example: `1437`

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

|
[[field-http-request-id]]
<<field-http-request-id, http.request.id>>

| A unique identifier for each HTTP request to correlate logs between clients and servers in transactions.

The id may be contained in a non-standard HTTP header, such as `X-Request-ID` or `X-Correlation-ID`.

type: keyword



example: `123e4567-e89b-12d3-a456-426614174000`

| extended

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

|
[[field-http-request-method]]
<<field-http-request-method, http.request.method>>
Expand Down
11 changes: 11 additions & 0 deletions experimental/generated/beats/fields.ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2413,6 +2413,17 @@
format: bytes
description: Total size in bytes of the request (body and headers).
example: 1437
- name: request.id
level: extended
type: keyword
ignore_above: 1024
description: 'A unique identifier for each HTTP request to correlate logs between
clients and servers in transactions.

The id may be contained in a non-standard HTTP header, such as `X-Request-ID`
or `X-Correlation-ID`.'
example: 123e4567-e89b-12d3-a456-426614174000
default_field: false
- name: request.method
level: extended
type: keyword
Expand Down
1 change: 1 addition & 0 deletions experimental/generated/csv/fields.csv
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ ECS_Version,Indexed,Field_Set,Field,Type,Level,Normalization,Example,Description
1.9.0-dev+exp,true,http,http.request.body.content,wildcard,extended,,Hello world,The full HTTP request body.
1.9.0-dev+exp,true,http,http.request.body.content.text,text,extended,,Hello world,The full HTTP request body.
1.9.0-dev+exp,true,http,http.request.bytes,long,extended,,1437,Total size in bytes of the request (body and headers).
1.9.0-dev+exp,true,http,http.request.id,keyword,extended,,123e4567-e89b-12d3-a456-426614174000,HTTP request ID.
1.9.0-dev+exp,true,http,http.request.method,keyword,extended,,"GET, POST, PUT, PoST",HTTP request method.
1.9.0-dev+exp,true,http,http.request.mime_type,keyword,extended,,image/gif,Mime type of the body of the request.
1.9.0-dev+exp,true,http,http.request.referrer,wildcard,extended,,https://blog.example.com/,Referrer for this HTTP request.
Expand Down
15 changes: 15 additions & 0 deletions experimental/generated/ecs/ecs_flat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3832,6 +3832,21 @@ http.request.bytes:
normalize: []
short: Total size in bytes of the request (body and headers).
type: long
http.request.id:
dashed_name: http-request-id
description: 'A unique identifier for each HTTP request to correlate logs between
clients and servers in transactions.

The id may be contained in a non-standard HTTP header, such as `X-Request-ID`
or `X-Correlation-ID`.'
example: 123e4567-e89b-12d3-a456-426614174000
flat_name: http.request.id
ignore_above: 1024
level: extended
name: request.id
normalize: []
short: HTTP request ID.
type: keyword
http.request.method:
dashed_name: http-request-method
description: 'HTTP request method.
Expand Down
15 changes: 15 additions & 0 deletions experimental/generated/ecs/ecs_nested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4548,6 +4548,21 @@ http:
normalize: []
short: Total size in bytes of the request (body and headers).
type: long
http.request.id:
dashed_name: http-request-id
description: 'A unique identifier for each HTTP request to correlate logs between
clients and servers in transactions.

The id may be contained in a non-standard HTTP header, such as `X-Request-ID`
or `X-Correlation-ID`.'
example: 123e4567-e89b-12d3-a456-426614174000
flat_name: http.request.id
ignore_above: 1024
level: extended
name: request.id
normalize: []
short: HTTP request ID.
type: keyword
http.request.method:
dashed_name: http-request-method
description: 'HTTP request method.
Expand Down
4 changes: 4 additions & 0 deletions experimental/generated/elasticsearch/7/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -1296,6 +1296,10 @@
"bytes": {
"type": "long"
},
"id": {
"ignore_above": 1024,
"type": "keyword"
},
"method": {
"ignore_above": 1024,
"type": "keyword"
Expand Down
4 changes: 4 additions & 0 deletions experimental/generated/elasticsearch/component/http.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
"bytes": {
"type": "long"
},
"id": {
"ignore_above": 1024,
"type": "keyword"
},
"method": {
"ignore_above": 1024,
"type": "keyword"
Expand Down
11 changes: 11 additions & 0 deletions generated/beats/fields.ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2315,6 +2315,17 @@
format: bytes
description: Total size in bytes of the request (body and headers).
example: 1437
- name: request.id
level: extended
type: keyword
ignore_above: 1024
description: 'A unique identifier for each HTTP request to correlate logs between
clients and servers in transactions.

The id may be contained in a non-standard HTTP header, such as `X-Request-ID`
or `X-Correlation-ID`.'
example: 123e4567-e89b-12d3-a456-426614174000
default_field: false
- name: request.method
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 @@ -271,6 +271,7 @@ ECS_Version,Indexed,Field_Set,Field,Type,Level,Normalization,Example,Description
1.9.0-dev,true,http,http.request.body.content,wildcard,extended,,Hello world,The full HTTP request body.
1.9.0-dev,true,http,http.request.body.content.text,text,extended,,Hello world,The full HTTP request body.
1.9.0-dev,true,http,http.request.bytes,long,extended,,1437,Total size in bytes of the request (body and headers).
1.9.0-dev,true,http,http.request.id,keyword,extended,,123e4567-e89b-12d3-a456-426614174000,HTTP request ID.
1.9.0-dev,true,http,http.request.method,keyword,extended,,"GET, POST, PUT, PoST",HTTP request method.
1.9.0-dev,true,http,http.request.mime_type,keyword,extended,,image/gif,Mime type of the body of the request.
1.9.0-dev,true,http,http.request.referrer,wildcard,extended,,https://blog.example.com/,Referrer for this HTTP request.
Expand Down
15 changes: 15 additions & 0 deletions generated/ecs/ecs_flat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3712,6 +3712,21 @@ http.request.bytes:
normalize: []
short: Total size in bytes of the request (body and headers).
type: long
http.request.id:
dashed_name: http-request-id
description: 'A unique identifier for each HTTP request to correlate logs between
clients and servers in transactions.

The id may be contained in a non-standard HTTP header, such as `X-Request-ID`
or `X-Correlation-ID`.'
example: 123e4567-e89b-12d3-a456-426614174000
flat_name: http.request.id
ignore_above: 1024
level: extended
name: request.id
normalize: []
short: HTTP request ID.
type: keyword
http.request.method:
dashed_name: http-request-method
description: 'HTTP request method.
Expand Down
15 changes: 15 additions & 0 deletions generated/ecs/ecs_nested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4405,6 +4405,21 @@ http:
normalize: []
short: Total size in bytes of the request (body and headers).
type: long
http.request.id:
dashed_name: http-request-id
description: 'A unique identifier for each HTTP request to correlate logs between
clients and servers in transactions.

The id may be contained in a non-standard HTTP header, such as `X-Request-ID`
or `X-Correlation-ID`.'
example: 123e4567-e89b-12d3-a456-426614174000
flat_name: http.request.id
ignore_above: 1024
level: extended
name: request.id
normalize: []
short: HTTP request ID.
type: keyword
http.request.method:
dashed_name: http-request-method
description: 'HTTP request method.
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 @@ -1270,6 +1270,10 @@
"bytes": {
"type": "long"
},
"id": {
"ignore_above": 1024,
"type": "keyword"
},
"method": {
"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 @@ -1233,6 +1233,10 @@
"bytes": {
"type": "long"
},
"id": {
"ignore_above": 1024,
"type": "keyword"
},
"method": {
"ignore_above": 1024,
"type": "keyword"
Expand Down
4 changes: 4 additions & 0 deletions generated/elasticsearch/component/http.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
"bytes": {
"type": "long"
},
"id": {
"ignore_above": 1024,
"type": "keyword"
},
"method": {
"ignore_above": 1024,
"type": "keyword"
Expand Down
13 changes: 13 additions & 0 deletions schemas/http.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@
type: group
fields:

- name: request.id
level: extended
type: keyword
short: HTTP request ID.
description: >
A unique identifier for each HTTP request to correlate logs between clients
and servers in transactions.

The id may be contained in a non-standard HTTP header, such as `X-Request-ID`
or `X-Correlation-ID`.

example: 123e4567-e89b-12d3-a456-426614174000

- name: request.method
level: extended
type: keyword
Expand Down