Skip to content

Commit

Permalink
Resolve the last instance of host.name, under host.
Browse files Browse the repository at this point in the history
Partially addresses elastic#62.
  • Loading branch information
Mathieu Martin committed Oct 23, 2018
1 parent 7fe9c89 commit 7300d6e
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ Normally the host information is related to the machine on which the event was g

| Field | Description | Type | Multi Field | Example |
|---|---|---|---|---|
| <a name="host.name"></a>host.name | host.name is the hostname of the host.<br/>It can contain what `hostname` returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use. | keyword | | |
| <a name="host.hostname"></a>host.hostname | Hostname of the host.<br/>It can contain what `hostname` returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use. | keyword | | |
| <a name="host.id"></a>host.id | Unique host id.<br/>As hostname is not always unique, use values that are meaningful in your environment.<br/>Example: The current usage of `beat.name`. | keyword | | |
| <a name="host.ip"></a>host.ip | Host ip address. | ip | | |
| <a name="host.mac"></a>host.mac | Host mac address. | keyword | | |
Expand Down
4 changes: 2 additions & 2 deletions fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -632,11 +632,11 @@
type: group
fields:

- name: name
- name: hostname
level: core
type: keyword
description: >
host.name is the hostname of the host.
Hostname of the host.
It can contain what `hostname` returns on Unix systems, the fully
qualified domain name, or a name specified by the user. The sender
Expand Down
2 changes: 1 addition & 1 deletion schema.csv
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ geo.country_iso_code,keyword,0,
geo.location,geo_point,0,
geo.region_name,keyword,0,
host.architecture,keyword,0,x86_64
host.hostname,keyword,0,
host.id,keyword,0,
host.ip,ip,0,
host.mac,keyword,0,
host.name,keyword,0,
host.os.family,keyword,0,debian
host.os.name,keyword,0,Mac OS X
host.os.platform,keyword,0,darwin
Expand Down
4 changes: 2 additions & 2 deletions schemas/host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
type: group
fields:

- name: name
- name: hostname
level: core
type: keyword
description: >
host.name is the hostname of the host.
Hostname of the host.
It can contain what `hostname` returns on Unix systems, the fully
qualified domain name, or a name specified by the user. The sender
Expand Down
8 changes: 4 additions & 4 deletions template.json
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,10 @@
"ignore_above": 1024,
"type": "keyword"
},
"hostname": {
"ignore_above": 1024,
"type": "keyword"
},
"id": {
"ignore_above": 1024,
"type": "keyword"
Expand All @@ -345,10 +349,6 @@
"ignore_above": 1024,
"type": "keyword"
},
"name": {
"ignore_above": 1024,
"type": "keyword"
},
"os": {
"properties": {
"family": {
Expand Down
2 changes: 1 addition & 1 deletion use-cases/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ You can monitor containers running in a Kubernetes cluster by adding Kubernetes-
|---|---|---|---|---|
| [container.id](https://github.com/elastic/ecs#container.id) | Unique container id. | keyword | | `fdbef803fa2b` |
| [container.name](https://github.com/elastic/ecs#container.name) | Container name. | keyword | | |
| [host.name](https://github.com/elastic/ecs#host.name) | host.name is the hostname of the host.<br/>It can contain what `hostname` returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use. | keyword | | `kube-high-cpu-42` |
| [host.hostname](https://github.com/elastic/ecs#host.hostname) | Hostname of the host.<br/>It can contain what `hostname` returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use. | keyword | | `kube-high-cpu-42` |
| <a name="kubernetes.pod.name"></a>*kubernetes.pod.name* | *Kubernetes pod name* | keyword | | `foo-webserver` |
| <a name="kubernetes.namespace"></a>*kubernetes.namespace* | *Kubernetes namespace* | keyword | | `foo-team` |
| <a name="kubernetes.labels"></a>*kubernetes.labels* | *Kubernetes labels map* | object | | |
Expand Down
2 changes: 1 addition & 1 deletion use-cases/kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fields:
- name: host
fields:

- name: name
- name: hostname
example: kube-high-cpu-42

- name: kubernetes
Expand Down
2 changes: 1 addition & 1 deletion use-cases/metricbeat.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ECS fields used Metricbeat.
| <a name="error.&ast;"></a>*error.&ast;* | *Error namespace<br/>Use for errors which can happen during fetching information for a service.<br/>* | | | |
| [error.message](https://github.com/elastic/ecs#error.message) | Error message returned by the service during fetching metrics. | text | | |
| [error.code](https://github.com/elastic/ecs#error.code) | Error code returned by the service during fetching metrics. | keyword | | |
| [host.name](https://github.com/elastic/ecs#host.name) | Hostname of the system metricbeat is running on or user defined name. | keyword | | |
| [host.hostname](https://github.com/elastic/ecs#host.hostname) | Hostname of the system metricbeat is running on or user defined name. | keyword | | |
| <a name="host.timezone.offset.sec"></a>*host.timezone.offset.sec* | *Timezone offset of the host in seconds.* | long | | |
| [host.id](https://github.com/elastic/ecs#host.id) | Unique host id. | keyword | | |
| [event.module](https://github.com/elastic/ecs#event.module) | Name of the module this data is coming from. | keyword | | `mysql` |
Expand Down
2 changes: 1 addition & 1 deletion use-cases/metricbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ fields:
- name: host
fields:
- name: name
- name: hostname
type: text
description: >
Hostname of the system metricbeat is running on or user defined name.
Expand Down

0 comments on commit 7300d6e

Please sign in to comment.