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

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

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

| http.request.content_type
| The MIME type set in the request content-type field.

type: keyword

example: `application/zip text/html application/octet-stream text/javascript application/x-www-form-urlencoded`

| extended

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

| http.request.method
| HTTP request method.

Expand Down Expand Up @@ -2037,6 +2048,17 @@ example: `1437`

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

| http.response.content_type
| The MIME type set in the response content-type field.

type: keyword

example: `application/zip text/html application/octet-stream text/javascript`

| extended

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

| http.response.status_code
| HTTP response status code.

Expand Down
13 changes: 13 additions & 0 deletions generated/beats/fields.ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1496,6 +1496,13 @@
format: bytes
description: Total size in bytes of the request (body and headers).
example: 1437
- name: request.content_type
level: extended
type: keyword
ignore_above: 1024
description: The MIME type set in the request content-type field.
example: application/zip text/html application/octet-stream text/javascript
application/x-www-form-urlencoded
- name: request.method
level: extended
type: keyword
Expand Down Expand Up @@ -1529,6 +1536,12 @@
format: bytes
description: Total size in bytes of the response (body and headers).
example: 1437
- name: response.content_type
level: extended
type: keyword
ignore_above: 1024
description: The MIME type set in the response content-type field.
example: application/zip text/html application/octet-stream text/javascript
- name: response.status_code
level: extended
type: long
Expand Down
2 changes: 2 additions & 0 deletions generated/csv/fields.csv
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,13 @@ host.user.name,keyword,core,albert,1.2.0-dev
http.request.body.bytes,long,extended,887,1.2.0-dev
http.request.body.content,keyword,extended,Hello world,1.2.0-dev
http.request.bytes,long,extended,1437,1.2.0-dev
http.request.content_type,keyword,extended,application/zip text/html application/octet-stream text/javascript application/x-www-form-urlencoded,1.2.0-dev
http.request.method,keyword,extended,"get, post, put",1.2.0-dev
http.request.referrer,keyword,extended,https://blog.example.com/,1.2.0-dev
http.response.body.bytes,long,extended,887,1.2.0-dev
http.response.body.content,keyword,extended,Hello world,1.2.0-dev
http.response.bytes,long,extended,1437,1.2.0-dev
http.response.content_type,keyword,extended,application/zip text/html application/octet-stream text/javascript,1.2.0-dev
http.response.status_code,long,extended,404,1.2.0-dev
http.version,keyword,extended,1.1,1.2.0-dev
log.level,keyword,core,err,1.2.0-dev
Expand Down
24 changes: 22 additions & 2 deletions generated/ecs/ecs_flat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2103,6 +2103,16 @@ http.request.bytes:
order: 6
short: Total size in bytes of the request (body and headers).
type: long
http.request.content_type:
description: The MIME type set in the request content-type field.
example: application/zip text/html application/octet-stream text/javascript application/x-www-form-urlencoded
flat_name: http.request.content_type
ignore_above: 1024
level: extended
name: request.content_type
order: 8
short: The MIME type set in the request content-type field.
type: keyword
http.request.method:
description: 'HTTP request method.

Expand Down Expand Up @@ -2133,7 +2143,7 @@ http.response.body.bytes:
format: bytes
level: extended
name: response.body.bytes
order: 9
order: 10
short: Size in bytes of the response body.
type: long
http.response.body.content:
Expand All @@ -2153,9 +2163,19 @@ http.response.bytes:
format: bytes
level: extended
name: response.bytes
order: 8
order: 9
short: Total size in bytes of the response (body and headers).
type: long
http.response.content_type:
description: The MIME type set in the response content-type field.
example: application/zip text/html application/octet-stream text/javascript
flat_name: http.response.content_type
ignore_above: 1024
level: extended
name: response.content_type
order: 11
short: The MIME type set in the response content-type field.
type: keyword
http.response.status_code:
description: HTTP response status code.
example: 404
Expand Down
25 changes: 23 additions & 2 deletions generated/ecs/ecs_nested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2416,6 +2416,17 @@ http:
order: 6
short: Total size in bytes of the request (body and headers).
type: long
request.content_type:
description: The MIME type set in the request content-type field.
example: application/zip text/html application/octet-stream text/javascript
application/x-www-form-urlencoded
flat_name: http.request.content_type
ignore_above: 1024
level: extended
name: request.content_type
order: 8
short: The MIME type set in the request content-type field.
type: keyword
request.method:
description: 'HTTP request method.

Expand Down Expand Up @@ -2446,7 +2457,7 @@ http:
format: bytes
level: extended
name: response.body.bytes
order: 9
order: 10
short: Size in bytes of the response body.
type: long
response.body.content:
Expand All @@ -2466,9 +2477,19 @@ http:
format: bytes
level: extended
name: response.bytes
order: 8
order: 9
short: Total size in bytes of the response (body and headers).
type: long
response.content_type:
description: The MIME type set in the response content-type field.
example: application/zip text/html application/octet-stream text/javascript
flat_name: http.response.content_type
ignore_above: 1024
level: extended
name: response.content_type
order: 11
short: The MIME type set in the response content-type field.
type: keyword
response.status_code:
description: HTTP response status code.
example: 404
Expand Down
8 changes: 8 additions & 0 deletions generated/elasticsearch/6/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,10 @@
"bytes": {
"type": "long"
},
"content_type": {
"ignore_above": 1024,
"type": "keyword"
},
"method": {
"ignore_above": 1024,
"type": "keyword"
Expand All @@ -916,6 +920,10 @@
"bytes": {
"type": "long"
},
"content_type": {
"ignore_above": 1024,
"type": "keyword"
},
"status_code": {
"type": "long"
}
Expand Down
8 changes: 8 additions & 0 deletions generated/elasticsearch/7/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,10 @@
"bytes": {
"type": "long"
},
"content_type": {
"ignore_above": 1024,
"type": "keyword"
},
"method": {
"ignore_above": 1024,
"type": "keyword"
Expand All @@ -915,6 +919,10 @@
"bytes": {
"type": "long"
},
"content_type": {
"ignore_above": 1024,
"type": "keyword"
},
"status_code": {
"type": "long"
}
Expand Down
8 changes: 8 additions & 0 deletions generated/legacy/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,10 @@
"bytes": {
"type": "long"
},
"content_type": {
"ignore_above": 1024,
"type": "keyword"
},
"method": {
"ignore_above": 1024,
"type": "keyword"
Expand All @@ -614,6 +618,10 @@
"bytes": {
"type": "long"
},
"content_type": {
"ignore_above": 1024,
"type": "keyword"
},
"status_code": {
"type": "long"
}
Expand Down
20 changes: 20 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1426,6 +1426,16 @@
"required": false,
"type": "long"
},
"http.request.content_type": {
"description": "The MIME type set in the request content-type field.",
"example": "application/zip text/html application/octet-stream text/javascript application/x-www-form-urlencoded",
"footnote": "",
"group": 2,
"level": "extended",
"name": "http.request.content_type",
"required": false,
"type": "keyword"
},
"http.request.method": {
"description": "HTTP request method.\nThe field value must be normalized to lowercase for querying. See the documentation section \"Implementing ECS\".",
"example": "get, post, put",
Expand Down Expand Up @@ -1476,6 +1486,16 @@
"required": false,
"type": "long"
},
"http.response.content_type": {
"description": "The MIME type set in the response content-type field.",
"example": "application/zip text/html application/octet-stream text/javascript",
"footnote": "",
"group": 2,
"level": "extended",
"name": "http.response.content_type",
"required": false,
"type": "keyword"
},
"http.response.status_code": {
"description": "HTTP response status code.",
"example": "404",
Expand Down
23 changes: 23 additions & 0 deletions schemas/http.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,18 @@
Size in bytes of the request body.
example: 887

- name: request.content_type
level: extended
type: keyword
description: >
The MIME type set in the request content-type field.
example:
application/zip
text/html
application/octet-stream
text/javascript
application/x-www-form-urlencoded

- name: response.bytes
level: extended
type: long
Expand All @@ -87,3 +99,14 @@
description: >
Size in bytes of the response body.
example: 887

- name: response.content_type
level: extended
type: keyword
description: >
The MIME type set in the response content-type field.
example:
application/zip
text/html
application/octet-stream
text/javascript