Skip to content

Commit

Permalink
Add minimal field set to represent groups. (elastic#203)
Browse files Browse the repository at this point in the history
Also fix a field name mistake in the changelog for elastic#204
  • Loading branch information
webmat authored and MikePaquette committed Dec 4, 2018
1 parent 9bf7e68 commit 8c7f4f5
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ All notable changes to this project will be documented in this file based on the
* Add `host.name` field and clarify usage of `host.hostname`.
* Add `event.start` and `event.end` date fields.
* Create new `related` field set with `related.ip`. #206
* Add `user.groups` field. #204
* Add `user.group` field. #204
* Create new `group` field set with `group.id` and `group.name`. #203

### Improvements
* Improve and clarify the definition of Device fields #192
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ ECS defines these fields.
* [Event fields](#event)
* [File fields](#file)
* [Geo fields](#geo)
* [Group fields](#group)
* [Host fields](#host)
* [Log fields](#log)
* [Network fields](#network)
Expand Down Expand Up @@ -250,6 +251,17 @@ Note also that the `geo` fields are not expected to be used directly at the top
| <a name="geo.city_name"></a>geo.city_name | City name. | core | keyword | `Montreal` |


## <a name="group"></a> Group fields

The group fields are meant to represent groups that are relevant to the event.


| Field | Description | Level | Type | Example |
|---|---|---|---|---|
| <a name="group.id"></a>group.id | Unique identifier for the group on the system/platform. | extended | keyword | |
| <a name="group.name"></a>group.name | Name of the group. | extended | keyword | |


## <a name="host"></a> Host fields

Host fields provide information related to a host. A host can be a physical machine, a virtual machine, or a Docker container.
Expand Down
21 changes: 21 additions & 0 deletions fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,27 @@
City name.
example: Montreal

- name: group
title: Group
group: 2
description: >
The group fields are meant to represent groups that are relevant to the
event.
type: group
fields:

- name: id
level: extended
type: keyword
description: >
Unique identifier for the group on the system/platform.
- name: name
level: extended
type: keyword
description: >
Name of the group.
- name: host
title: Host
group: 2
Expand Down
2 changes: 2 additions & 0 deletions schema.csv
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ geo.continent_name,keyword,core,North America
geo.country_iso_code,keyword,core,CA
geo.location,geo_point,core,"{ ""lon"": -73.614830, ""lat"": 45.505918 }"
geo.region_name,keyword,core,Quebec
group.id,keyword,extended,
group.name,keyword,extended,
host.architecture,keyword,core,x86_64
host.hostname,keyword,core,
host.id,keyword,core,
Expand Down
21 changes: 21 additions & 0 deletions schemas/group.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
- name: group
title: Group
group: 2
description: >
The group fields are meant to represent groups that are relevant to the
event.
type: group
fields:

- name: id
level: extended
type: keyword
description: >
Unique identifier for the group on the system/platform.
- name: name
level: extended
type: keyword
description: >
Name of the group.
12 changes: 12 additions & 0 deletions template.json
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,18 @@
}
}
},
"group": {
"properties": {
"id": {
"ignore_above": 1024,
"type": "keyword"
},
"name": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
"host": {
"properties": {
"architecture": {
Expand Down

0 comments on commit 8c7f4f5

Please sign in to comment.