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

Add http.response.* fields #4

Merged
merged 1 commit into from
Jun 6, 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
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file based on the
### Bugfixes

### Added
Adds cloud.account.id for top level organizational level.
* Adds cloud.account.id for top level organizational level. #11
* Add `http.response.status_code` and `http.response.body` fields. #4

### Deprecated
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ List of available ECS fields.
* [File fields](#file)
* [Geoip fields](#geoip)
* [Host fields](#host)
* [HTTP fields](#http)
* [Kubernetes fields](#kubernetes)
* [Log fields](#log)
* [Network fields](#network)
Expand Down Expand Up @@ -238,6 +239,17 @@ Normally the host information is related to the machine on which the event was g
| <a name="host.architecture"></a>`host.architecture` | Operating system architecture. | keyword | | `x86_64` |


## <a name="http"></a> HTTP fields

Fields related to HTTP requests and responses.


| Field | Description | Type | Multi Field | Example |
|---|---|---|---|---|
| <a name="http.response.status_code"></a>`http.response.status_code` | Http response status code. | long | | `404` |
| <a name="http.response.body"></a>`http.response.body` | The full http response body. | text | | `Hello world` |


## <a name="kubernetes"></a> Kubernetes fields

Kubernetes fields are used for meta information about k8s. This should help to correlate data coming out of k8s setups.
Expand Down
2 changes: 2 additions & 0 deletions schema.csv
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ host.os.platform,keyword,0,darwin
host.os.version,keyword,0,10.12.6
host.timezone.offset.sec,long,1,-5400
host.type,keyword,1,
http.response.body,text,0,Hello world
http.response.status_code,long,0,404
kubernetes.annotations,object,0,
kubernetes.container.name,keyword,0,
kubernetes.labels,object,0,
Expand Down
17 changes: 17 additions & 0 deletions schemas/http.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
- name: http
title: HTTP
group: 2
description: >
Fields related to HTTP requests and responses.
fields:
- name: response.status_code
type: long
description: >
Http response status code.
example: 404
- name: response.body
type: text
description: >
The full http response body.
example: Hello world
15 changes: 15 additions & 0 deletions template.json
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,21 @@
}
}
},
"http": {
"properties": {
"response": {
"properties": {
"body": {
"norms": false,
"type": "text"
},
"status_code": {
"type": "long"
}
}
}
}
},
"kubernetes": {
"properties": {
"annotations": {
Expand Down