Skip to content

Commit b1aca41

Browse files
Add additional host fields (#1248) (#1267)
Co-authored-by: kaiyan-sheng <[email protected]>
1 parent 86bc271 commit b1aca41

File tree

15 files changed

+624
-64
lines changed

15 files changed

+624
-64
lines changed

CHANGELOG.next.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Thanks, you're awesome :-) -->
2020
* Added `http.request.id`. #1208
2121
* Added `cloud.service.name`. #1204
2222
* Added `hash.ssdeep`. #1169
23+
* Added additional host fields. #1248
2324
* Added `geo.timezone`, `geo.postal_code`, and `geo.continent_code`. #1229
2425

2526
#### Improvements

code/go/ecs/host.go

Lines changed: 31 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/field-details.asciidoc

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3188,6 +3188,64 @@ example: `x86_64`
31883188

31893189
// ===============================================================
31903190

3191+
|
3192+
[[field-host-cpu-usage]]
3193+
<<field-host-cpu-usage, host.cpu.usage>>
3194+
3195+
| beta:[ This field is currently considered beta. ]
3196+
3197+
Percent CPU used which is normalized by the number of CPU cores and it ranges from 0 to 1.
3198+
3199+
Scaling factor: 1000.
3200+
3201+
For example: For a two core host, this value should be the average of the two cores, between 0 and 1.
3202+
3203+
type: scaled_float
3204+
3205+
3206+
3207+
3208+
3209+
| extended
3210+
3211+
// ===============================================================
3212+
3213+
|
3214+
[[field-host-disk-read-bytes]]
3215+
<<field-host-disk-read-bytes, host.disk.read.bytes>>
3216+
3217+
| beta:[ This field is currently considered beta. ]
3218+
3219+
The total number of bytes (gauge) read successfully (aggregated from all disks) since the last metric collection.
3220+
3221+
type: long
3222+
3223+
3224+
3225+
3226+
3227+
| extended
3228+
3229+
// ===============================================================
3230+
3231+
|
3232+
[[field-host-disk-write-bytes]]
3233+
<<field-host-disk-write-bytes, host.disk.write.bytes>>
3234+
3235+
| beta:[ This field is currently considered beta. ]
3236+
3237+
The total number of bytes (gauge) written successfully (aggregated from all disks) since the last metric collection.
3238+
3239+
type: long
3240+
3241+
3242+
3243+
3244+
3245+
| extended
3246+
3247+
// ===============================================================
3248+
31913249
|
31923250
[[field-host-domain]]
31933251
<<field-host-domain, host.domain>>
@@ -3302,6 +3360,78 @@ type: keyword
33023360

33033361
// ===============================================================
33043362

3363+
|
3364+
[[field-host-network-egress-bytes]]
3365+
<<field-host-network-egress-bytes, host.network.egress.bytes>>
3366+
3367+
| beta:[ This field is currently considered beta. ]
3368+
3369+
The number of bytes (gauge) sent out on all network interfaces by the host since the last metric collection.
3370+
3371+
type: long
3372+
3373+
3374+
3375+
3376+
3377+
| extended
3378+
3379+
// ===============================================================
3380+
3381+
|
3382+
[[field-host-network-egress-packets]]
3383+
<<field-host-network-egress-packets, host.network.egress.packets>>
3384+
3385+
| beta:[ This field is currently considered beta. ]
3386+
3387+
The number of packets (gauge) sent out on all network interfaces by the host since the last metric collection.
3388+
3389+
type: long
3390+
3391+
3392+
3393+
3394+
3395+
| extended
3396+
3397+
// ===============================================================
3398+
3399+
|
3400+
[[field-host-network-ingress-bytes]]
3401+
<<field-host-network-ingress-bytes, host.network.ingress.bytes>>
3402+
3403+
| beta:[ This field is currently considered beta. ]
3404+
3405+
The number of bytes received (gauge) on all network interfaces by the host since the last metric collection.
3406+
3407+
type: long
3408+
3409+
3410+
3411+
3412+
3413+
| extended
3414+
3415+
// ===============================================================
3416+
3417+
|
3418+
[[field-host-network-ingress-packets]]
3419+
<<field-host-network-ingress-packets, host.network.ingress.packets>>
3420+
3421+
| beta:[ This field is currently considered beta. ]
3422+
3423+
The number of packets (gauge) received on all network interfaces by the host since the last metric collection.
3424+
3425+
type: long
3426+
3427+
3428+
3429+
3430+
3431+
| extended
3432+
3433+
// ===============================================================
3434+
33053435
|
33063436
[[field-host-type]]
33073437
<<field-host-type, host.type>>

experimental/generated/beats/fields.ecs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2222,7 +2222,9 @@
22222222
level: extended
22232223
type: scaled_float
22242224
description: 'Percent CPU used which is normalized by the number of CPU cores
2225-
and it ranges from 0 to 1. Scaling factor: 1000.
2225+
and it ranges from 0 to 1.
2226+
2227+
Scaling factor: 1000.
22262228
22272229
For example: For a two core host, this value should be the average of the
22282230
two cores, between 0 and 1.'

experimental/generated/ecs/ecs_flat.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3355,9 +3355,12 @@ host.architecture:
33553355
short: Operating system architecture.
33563356
type: keyword
33573357
host.cpu.usage:
3358+
beta: This field is currently considered beta.
33583359
dashed_name: host-cpu-usage
33593360
description: 'Percent CPU used which is normalized by the number of CPU cores and
3360-
it ranges from 0 to 1. Scaling factor: 1000.
3361+
it ranges from 0 to 1.
3362+
3363+
Scaling factor: 1000.
33613364
33623365
For example: For a two core host, this value should be the average of the two
33633366
cores, between 0 and 1.'
@@ -3369,6 +3372,7 @@ host.cpu.usage:
33693372
short: Percent CPU used, between 0 and 1.
33703373
type: scaled_float
33713374
host.disk.read.bytes:
3375+
beta: This field is currently considered beta.
33723376
dashed_name: host-disk-read-bytes
33733377
description: The total number of bytes (gauge) read successfully (aggregated from
33743378
all disks) since the last metric collection.
@@ -3379,6 +3383,7 @@ host.disk.read.bytes:
33793383
short: The number of bytes read by all disks.
33803384
type: long
33813385
host.disk.write.bytes:
3386+
beta: This field is currently considered beta.
33823387
dashed_name: host-disk-write-bytes
33833388
description: The total number of bytes (gauge) written successfully (aggregated
33843389
from all disks) since the last metric collection.
@@ -3606,6 +3611,7 @@ host.name:
36063611
short: Name of the host.
36073612
type: keyword
36083613
host.network.egress.bytes:
3614+
beta: This field is currently considered beta.
36093615
dashed_name: host-network-egress-bytes
36103616
description: The number of bytes (gauge) sent out on all network interfaces by the
36113617
host since the last metric collection.
@@ -3616,6 +3622,7 @@ host.network.egress.bytes:
36163622
short: The number of bytes sent on all network interfaces.
36173623
type: long
36183624
host.network.egress.packets:
3625+
beta: This field is currently considered beta.
36193626
dashed_name: host-network-egress-packets
36203627
description: The number of packets (gauge) sent out on all network interfaces by
36213628
the host since the last metric collection.
@@ -3626,6 +3633,7 @@ host.network.egress.packets:
36263633
short: The number of packets sent on all network interfaces.
36273634
type: long
36283635
host.network.ingress.bytes:
3636+
beta: This field is currently considered beta.
36293637
dashed_name: host-network-ingress-bytes
36303638
description: The number of bytes received (gauge) on all network interfaces by the
36313639
host since the last metric collection.
@@ -3636,6 +3644,7 @@ host.network.ingress.bytes:
36363644
short: The number of bytes received on all network interfaces.
36373645
type: long
36383646
host.network.ingress.packets:
3647+
beta: This field is currently considered beta.
36393648
dashed_name: host-network-ingress-packets
36403649
description: The number of packets (gauge) received on all network interfaces by
36413650
the host since the last metric collection.

experimental/generated/ecs/ecs_nested.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4092,9 +4092,12 @@ host:
40924092
short: Operating system architecture.
40934093
type: keyword
40944094
host.cpu.usage:
4095+
beta: This field is currently considered beta.
40954096
dashed_name: host-cpu-usage
40964097
description: 'Percent CPU used which is normalized by the number of CPU cores
4097-
and it ranges from 0 to 1. Scaling factor: 1000.
4098+
and it ranges from 0 to 1.
4099+
4100+
Scaling factor: 1000.
40984101
40994102
For example: For a two core host, this value should be the average of the
41004103
two cores, between 0 and 1.'
@@ -4106,6 +4109,7 @@ host:
41064109
short: Percent CPU used, between 0 and 1.
41074110
type: scaled_float
41084111
host.disk.read.bytes:
4112+
beta: This field is currently considered beta.
41094113
dashed_name: host-disk-read-bytes
41104114
description: The total number of bytes (gauge) read successfully (aggregated
41114115
from all disks) since the last metric collection.
@@ -4116,6 +4120,7 @@ host:
41164120
short: The number of bytes read by all disks.
41174121
type: long
41184122
host.disk.write.bytes:
4123+
beta: This field is currently considered beta.
41194124
dashed_name: host-disk-write-bytes
41204125
description: The total number of bytes (gauge) written successfully (aggregated
41214126
from all disks) since the last metric collection.
@@ -4346,6 +4351,7 @@ host:
43464351
short: Name of the host.
43474352
type: keyword
43484353
host.network.egress.bytes:
4354+
beta: This field is currently considered beta.
43494355
dashed_name: host-network-egress-bytes
43504356
description: The number of bytes (gauge) sent out on all network interfaces
43514357
by the host since the last metric collection.
@@ -4356,6 +4362,7 @@ host:
43564362
short: The number of bytes sent on all network interfaces.
43574363
type: long
43584364
host.network.egress.packets:
4365+
beta: This field is currently considered beta.
43594366
dashed_name: host-network-egress-packets
43604367
description: The number of packets (gauge) sent out on all network interfaces
43614368
by the host since the last metric collection.
@@ -4366,6 +4373,7 @@ host:
43664373
short: The number of packets sent on all network interfaces.
43674374
type: long
43684375
host.network.ingress.bytes:
4376+
beta: This field is currently considered beta.
43694377
dashed_name: host-network-ingress-bytes
43704378
description: The number of bytes received (gauge) on all network interfaces
43714379
by the host since the last metric collection.
@@ -4376,6 +4384,7 @@ host:
43764384
short: The number of bytes received on all network interfaces.
43774385
type: long
43784386
host.network.ingress.packets:
4387+
beta: This field is currently considered beta.
43794388
dashed_name: host-network-ingress-packets
43804389
description: The number of packets (gauge) received on all network interfaces
43814390
by the host since the last metric collection.

experimental/schemas/host.yml

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,4 @@
11
- name: host
22
fields:
3-
# RFC 0005
4-
- name: cpu.usage
5-
type: scaled_float
6-
scaling_factor: 1000
7-
level: extended
8-
short: Percent CPU used, between 0 and 1.
9-
description: >
10-
Percent CPU used which is normalized by the number of CPU cores and it
11-
ranges from 0 to 1. Scaling factor: 1000.
12-
13-
For example: For a two core host, this value should be the average of the
14-
two cores, between 0 and 1.
15-
16-
- name: network.ingress.bytes
17-
type: long
18-
level: extended
19-
short: The number of bytes received on all network interfaces.
20-
description: >
21-
The number of bytes received (gauge) on all network interfaces by the
22-
host since the last metric collection.
23-
24-
- name: network.ingress.packets
25-
type: long
26-
level: extended
27-
short: The number of packets received on all network interfaces.
28-
description: >
29-
The number of packets (gauge) received on all network interfaces by the
30-
host since the last metric collection.
31-
32-
- name: network.egress.bytes
33-
type: long
34-
level: extended
35-
short: The number of bytes sent on all network interfaces.
36-
description: >
37-
The number of bytes (gauge) sent out on all network interfaces by the
38-
host since the last metric collection.
39-
40-
- name: network.egress.packets
41-
type: long
42-
level: extended
43-
short: The number of packets sent on all network interfaces.
44-
description: >
45-
The number of packets (gauge) sent out on all network interfaces by the
46-
host since the last metric collection.
47-
48-
- name: disk.read.bytes
49-
type: long
50-
level: extended
51-
short: The number of bytes read by all disks.
52-
description: >
53-
The total number of bytes (gauge) read successfully (aggregated from all
54-
disks) since the last metric collection.
55-
56-
- name: disk.write.bytes
57-
type: long
58-
level: extended
59-
short: The number of bytes written on all disks.
60-
description: >
61-
The total number of bytes (gauge) written successfully (aggregated from
62-
all disks) since the last metric collection.
63-
643
- name: hostname
654
type: wildcard

0 commit comments

Comments
 (0)