Skip to content

Commit fe738ff

Browse files
author
Mathieu Martin
authored
Add os.type field, with list of allowed values (#1111)
1 parent 4ee5c21 commit fe738ff

File tree

15 files changed

+475
-0
lines changed

15 files changed

+475
-0
lines changed

CHANGELOG.next.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Thanks, you're awesome :-) -->
1818

1919
* Added `event.category` "registry". #1040
2020
* Added `event.category` "session". #1049
21+
* Added `os.type`. #1111
2122

2223
#### Improvements
2324

code/go/ecs/os.go

Lines changed: 9 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: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3930,6 +3930,23 @@ example: `darwin`
39303930

39313931
// ===============================================================
39323932

3933+
| os.type
3934+
| Use the `os.type` field to categorize the operating system into one of the broad commercial families.
3935+
3936+
One of these following values should be used (lowercase): linux, macos, unix, windows.
3937+
3938+
If the OS you're dealing with is not in the list, the field should not be populated. Please let us know by opening an issue with ECS, to propose its addition.
3939+
3940+
type: keyword
3941+
3942+
3943+
3944+
example: `macos`
3945+
3946+
| extended
3947+
3948+
// ===============================================================
3949+
39333950
| os.version
39343951
| Operating system version as a raw string.
39353952

experimental/generated/beats/fields.ecs.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2181,6 +2181,21 @@
21812181
ignore_above: 1024
21822182
description: Operating system platform (such centos, ubuntu, windows).
21832183
example: darwin
2184+
- name: os.type
2185+
level: extended
2186+
type: keyword
2187+
ignore_above: 1024
2188+
description: 'Use the `os.type` field to categorize the operating system into
2189+
one of the broad commercial families.
2190+
2191+
One of these following values should be used (lowercase): linux, macos, unix,
2192+
windows.
2193+
2194+
If the OS you''re dealing with is not in the list, the field should not be
2195+
populated. Please let us know by opening an issue with ECS, to propose its
2196+
addition.'
2197+
example: macos
2198+
default_field: false
21842199
- name: os.version
21852200
level: extended
21862201
type: keyword
@@ -2929,6 +2944,21 @@
29292944
ignore_above: 1024
29302945
description: Operating system platform (such centos, ubuntu, windows).
29312946
example: darwin
2947+
- name: os.type
2948+
level: extended
2949+
type: keyword
2950+
ignore_above: 1024
2951+
description: 'Use the `os.type` field to categorize the operating system into
2952+
one of the broad commercial families.
2953+
2954+
One of these following values should be used (lowercase): linux, macos, unix,
2955+
windows.
2956+
2957+
If the OS you''re dealing with is not in the list, the field should not be
2958+
populated. Please let us know by opening an issue with ECS, to propose its
2959+
addition.'
2960+
example: macos
2961+
default_field: false
29322962
- name: os.version
29332963
level: extended
29342964
type: keyword
@@ -3034,6 +3064,21 @@
30343064
ignore_above: 1024
30353065
description: Operating system platform (such centos, ubuntu, windows).
30363066
example: darwin
3067+
- name: type
3068+
level: extended
3069+
type: keyword
3070+
ignore_above: 1024
3071+
description: 'Use the `os.type` field to categorize the operating system into
3072+
one of the broad commercial families.
3073+
3074+
One of these following values should be used (lowercase): linux, macos, unix,
3075+
windows.
3076+
3077+
If the OS you''re dealing with is not in the list, the field should not be
3078+
populated. Please let us know by opening an issue with ECS, to propose its
3079+
addition.'
3080+
example: macos
3081+
default_field: false
30373082
- name: version
30383083
level: extended
30393084
type: keyword
@@ -5716,6 +5761,21 @@
57165761
ignore_above: 1024
57175762
description: Operating system platform (such centos, ubuntu, windows).
57185763
example: darwin
5764+
- name: os.type
5765+
level: extended
5766+
type: keyword
5767+
ignore_above: 1024
5768+
description: 'Use the `os.type` field to categorize the operating system into
5769+
one of the broad commercial families.
5770+
5771+
One of these following values should be used (lowercase): linux, macos, unix,
5772+
windows.
5773+
5774+
If the OS you''re dealing with is not in the list, the field should not be
5775+
populated. Please let us know by opening an issue with ECS, to propose its
5776+
addition.'
5777+
example: macos
5778+
default_field: false
57195779
- name: os.version
57205780
level: extended
57215781
type: keyword

experimental/generated/csv/fields.csv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ ECS_Version,Indexed,Field_Set,Field,Type,Level,Normalization,Example,Description
251251
2.0.0-dev+exp,true,host,host.os.name,wildcard,extended,,Mac OS X,"Operating system name, without the version."
252252
2.0.0-dev+exp,true,host,host.os.name.text,text,extended,,Mac OS X,"Operating system name, without the version."
253253
2.0.0-dev+exp,true,host,host.os.platform,keyword,extended,,darwin,"Operating system platform (such centos, ubuntu, windows)."
254+
2.0.0-dev+exp,true,host,host.os.type,keyword,extended,,macos,"Which commercial OS family (one of: linux, macos, unix or windows)."
254255
2.0.0-dev+exp,true,host,host.os.version,keyword,extended,,10.14.1,Operating system version as a raw string.
255256
2.0.0-dev+exp,true,host,host.type,keyword,core,,,Type of host.
256257
2.0.0-dev+exp,true,host,host.uptime,long,extended,,1325,Seconds the host has been up.
@@ -342,6 +343,7 @@ ECS_Version,Indexed,Field_Set,Field,Type,Level,Normalization,Example,Description
342343
2.0.0-dev+exp,true,observer,observer.os.name,wildcard,extended,,Mac OS X,"Operating system name, without the version."
343344
2.0.0-dev+exp,true,observer,observer.os.name.text,text,extended,,Mac OS X,"Operating system name, without the version."
344345
2.0.0-dev+exp,true,observer,observer.os.platform,keyword,extended,,darwin,"Operating system platform (such centos, ubuntu, windows)."
346+
2.0.0-dev+exp,true,observer,observer.os.type,keyword,extended,,macos,"Which commercial OS family (one of: linux, macos, unix or windows)."
345347
2.0.0-dev+exp,true,observer,observer.os.version,keyword,extended,,10.14.1,Operating system version as a raw string.
346348
2.0.0-dev+exp,true,observer,observer.product,keyword,extended,,s200,The product name of the observer.
347349
2.0.0-dev+exp,true,observer,observer.serial_number,keyword,extended,,,Observer serial number.
@@ -703,6 +705,7 @@ ECS_Version,Indexed,Field_Set,Field,Type,Level,Normalization,Example,Description
703705
2.0.0-dev+exp,true,user_agent,user_agent.os.name,wildcard,extended,,Mac OS X,"Operating system name, without the version."
704706
2.0.0-dev+exp,true,user_agent,user_agent.os.name.text,text,extended,,Mac OS X,"Operating system name, without the version."
705707
2.0.0-dev+exp,true,user_agent,user_agent.os.platform,keyword,extended,,darwin,"Operating system platform (such centos, ubuntu, windows)."
708+
2.0.0-dev+exp,true,user_agent,user_agent.os.type,keyword,extended,,macos,"Which commercial OS family (one of: linux, macos, unix or windows)."
706709
2.0.0-dev+exp,true,user_agent,user_agent.os.version,keyword,extended,,10.14.1,Operating system version as a raw string.
707710
2.0.0-dev+exp,true,user_agent,user_agent.version,keyword,extended,,12.0,Version of the user agent.
708711
2.0.0-dev+exp,true,vulnerability,vulnerability.category,keyword,extended,array,"[""Firewall""]",Category of a vulnerability.

experimental/generated/ecs/ecs_flat.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3423,6 +3423,25 @@ host.os.platform:
34233423
original_fieldset: os
34243424
short: Operating system platform (such centos, ubuntu, windows).
34253425
type: keyword
3426+
host.os.type:
3427+
dashed_name: host-os-type
3428+
description: 'Use the `os.type` field to categorize the operating system into one
3429+
of the broad commercial families.
3430+
3431+
One of these following values should be used (lowercase): linux, macos, unix,
3432+
windows.
3433+
3434+
If the OS you''re dealing with is not in the list, the field should not be populated.
3435+
Please let us know by opening an issue with ECS, to propose its addition.'
3436+
example: macos
3437+
flat_name: host.os.type
3438+
ignore_above: 1024
3439+
level: extended
3440+
name: type
3441+
normalize: []
3442+
original_fieldset: os
3443+
short: 'Which commercial OS family (one of: linux, macos, unix or windows).'
3444+
type: keyword
34263445
host.os.version:
34273446
dashed_name: host-os-version
34283447
description: Operating system version as a raw string.
@@ -4559,6 +4578,25 @@ observer.os.platform:
45594578
original_fieldset: os
45604579
short: Operating system platform (such centos, ubuntu, windows).
45614580
type: keyword
4581+
observer.os.type:
4582+
dashed_name: observer-os-type
4583+
description: 'Use the `os.type` field to categorize the operating system into one
4584+
of the broad commercial families.
4585+
4586+
One of these following values should be used (lowercase): linux, macos, unix,
4587+
windows.
4588+
4589+
If the OS you''re dealing with is not in the list, the field should not be populated.
4590+
Please let us know by opening an issue with ECS, to propose its addition.'
4591+
example: macos
4592+
flat_name: observer.os.type
4593+
ignore_above: 1024
4594+
level: extended
4595+
name: type
4596+
normalize: []
4597+
original_fieldset: os
4598+
short: 'Which commercial OS family (one of: linux, macos, unix or windows).'
4599+
type: keyword
45624600
observer.os.version:
45634601
dashed_name: observer-os-version
45644602
description: Operating system version as a raw string.
@@ -8796,6 +8834,25 @@ user_agent.os.platform:
87968834
original_fieldset: os
87978835
short: Operating system platform (such centos, ubuntu, windows).
87988836
type: keyword
8837+
user_agent.os.type:
8838+
dashed_name: user-agent-os-type
8839+
description: 'Use the `os.type` field to categorize the operating system into one
8840+
of the broad commercial families.
8841+
8842+
One of these following values should be used (lowercase): linux, macos, unix,
8843+
windows.
8844+
8845+
If the OS you''re dealing with is not in the list, the field should not be populated.
8846+
Please let us know by opening an issue with ECS, to propose its addition.'
8847+
example: macos
8848+
flat_name: user_agent.os.type
8849+
ignore_above: 1024
8850+
level: extended
8851+
name: type
8852+
normalize: []
8853+
original_fieldset: os
8854+
short: 'Which commercial OS family (one of: linux, macos, unix or windows).'
8855+
type: keyword
87998856
user_agent.os.version:
88008857
dashed_name: user-agent-os-version
88018858
description: Operating system version as a raw string.

experimental/generated/ecs/ecs_nested.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4086,6 +4086,26 @@ host:
40864086
original_fieldset: os
40874087
short: Operating system platform (such centos, ubuntu, windows).
40884088
type: keyword
4089+
host.os.type:
4090+
dashed_name: host-os-type
4091+
description: 'Use the `os.type` field to categorize the operating system into
4092+
one of the broad commercial families.
4093+
4094+
One of these following values should be used (lowercase): linux, macos, unix,
4095+
windows.
4096+
4097+
If the OS you''re dealing with is not in the list, the field should not be
4098+
populated. Please let us know by opening an issue with ECS, to propose its
4099+
addition.'
4100+
example: macos
4101+
flat_name: host.os.type
4102+
ignore_above: 1024
4103+
level: extended
4104+
name: type
4105+
normalize: []
4106+
original_fieldset: os
4107+
short: 'Which commercial OS family (one of: linux, macos, unix or windows).'
4108+
type: keyword
40894109
host.os.version:
40904110
dashed_name: host-os-version
40914111
description: Operating system version as a raw string.
@@ -5339,6 +5359,26 @@ observer:
53395359
original_fieldset: os
53405360
short: Operating system platform (such centos, ubuntu, windows).
53415361
type: keyword
5362+
observer.os.type:
5363+
dashed_name: observer-os-type
5364+
description: 'Use the `os.type` field to categorize the operating system into
5365+
one of the broad commercial families.
5366+
5367+
One of these following values should be used (lowercase): linux, macos, unix,
5368+
windows.
5369+
5370+
If the OS you''re dealing with is not in the list, the field should not be
5371+
populated. Please let us know by opening an issue with ECS, to propose its
5372+
addition.'
5373+
example: macos
5374+
flat_name: observer.os.type
5375+
ignore_above: 1024
5376+
level: extended
5377+
name: type
5378+
normalize: []
5379+
original_fieldset: os
5380+
short: 'Which commercial OS family (one of: linux, macos, unix or windows).'
5381+
type: keyword
53425382
observer.os.version:
53435383
dashed_name: observer-os-version
53445384
description: Operating system version as a raw string.
@@ -5542,6 +5582,25 @@ os:
55425582
normalize: []
55435583
short: Operating system platform (such centos, ubuntu, windows).
55445584
type: keyword
5585+
os.type:
5586+
dashed_name: os-type
5587+
description: 'Use the `os.type` field to categorize the operating system into
5588+
one of the broad commercial families.
5589+
5590+
One of these following values should be used (lowercase): linux, macos, unix,
5591+
windows.
5592+
5593+
If the OS you''re dealing with is not in the list, the field should not be
5594+
populated. Please let us know by opening an issue with ECS, to propose its
5595+
addition.'
5596+
example: macos
5597+
flat_name: os.type
5598+
ignore_above: 1024
5599+
level: extended
5600+
name: type
5601+
normalize: []
5602+
short: 'Which commercial OS family (one of: linux, macos, unix or windows).'
5603+
type: keyword
55455604
os.version:
55465605
dashed_name: os-version
55475606
description: Operating system version as a raw string.
@@ -10110,6 +10169,26 @@ user_agent:
1011010169
original_fieldset: os
1011110170
short: Operating system platform (such centos, ubuntu, windows).
1011210171
type: keyword
10172+
user_agent.os.type:
10173+
dashed_name: user-agent-os-type
10174+
description: 'Use the `os.type` field to categorize the operating system into
10175+
one of the broad commercial families.
10176+
10177+
One of these following values should be used (lowercase): linux, macos, unix,
10178+
windows.
10179+
10180+
If the OS you''re dealing with is not in the list, the field should not be
10181+
populated. Please let us know by opening an issue with ECS, to propose its
10182+
addition.'
10183+
example: macos
10184+
flat_name: user_agent.os.type
10185+
ignore_above: 1024
10186+
level: extended
10187+
name: type
10188+
normalize: []
10189+
original_fieldset: os
10190+
short: 'Which commercial OS family (one of: linux, macos, unix or windows).'
10191+
type: keyword
1011310192
user_agent.os.version:
1011410193
dashed_name: user-agent-os-version
1011510194
description: Operating system version as a raw string.

experimental/generated/elasticsearch/7/template.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,10 @@
11341134
"ignore_above": 1024,
11351135
"type": "keyword"
11361136
},
1137+
"type": {
1138+
"ignore_above": 1024,
1139+
"type": "keyword"
1140+
},
11371141
"version": {
11381142
"ignore_above": 1024,
11391143
"type": "keyword"
@@ -1589,6 +1593,10 @@
15891593
"ignore_above": 1024,
15901594
"type": "keyword"
15911595
},
1596+
"type": {
1597+
"ignore_above": 1024,
1598+
"type": "keyword"
1599+
},
15921600
"version": {
15931601
"ignore_above": 1024,
15941602
"type": "keyword"
@@ -3237,6 +3245,10 @@
32373245
"ignore_above": 1024,
32383246
"type": "keyword"
32393247
},
3248+
"type": {
3249+
"ignore_above": 1024,
3250+
"type": "keyword"
3251+
},
32403252
"version": {
32413253
"ignore_above": 1024,
32423254
"type": "keyword"

0 commit comments

Comments
 (0)