Skip to content

Commit

Permalink
Import user.group changes from ECS (#10275)
Browse files Browse the repository at this point in the history
This change enables us to nest the `group` field set at `user.group`, rather than being limited to only group name.

Imports the changes from ECS elastic/ecs#308, which solves elastic/ecs#304.
  • Loading branch information
webmat authored Jan 24, 2019
1 parent d7d3de2 commit 2034fe4
Show file tree
Hide file tree
Showing 21 changed files with 184 additions and 36 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Remove port settings from Logstash and Redis output. {pull}9934[9934]
- Fix registry handle leak on Windows (https://github.com/elastic/go-sysinfo/pull/33). {pull}9920[9920]
- Rename `process.exe` to `process.executable` in add_process_metadata to align with ECS. {pull}9949[9949]
- Import ECS change https://github.com/elastic/ecs/pull/308[ecs#308]:
leaf field `user.group` is now the `group` field set. {pull}10275[10275]

*Auditbeat*
- Rename `process.exe` to `process.executable` in auditd module to align with ECS. {pull}9949[9949]
Expand Down
2 changes: 1 addition & 1 deletion NOTICE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--------------------------------------------------------------------
Dependency: github.com/elastic/ecs
Revision: 69de90eb6493e0804405321f48adfdfa488d6498
Revision: 337ddd4674d6a28da97e6d19010c04c43db09e58
License type (autodetected): Apache-2.0
./vendor/github.com/elastic/ecs/LICENSE.txt:
--------------------------------------------------------------------
Expand Down
21 changes: 19 additions & 2 deletions auditbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5591,12 +5591,29 @@ Useful if `user.id` or `user.name` contain confidential information and cannot b
--
*`user.group`*::
[float]
== group fields
The group fields are meant to represent groups that are relevant to the event.
*`user.group.id`*::
+
--
type: keyword
Group the user is a part of. This field can contain a list of groups, if necessary.
Unique identifier for the group on the system/platform.
--
*`user.group.name`*::
+
--
type: keyword
Name of the group.
--
Expand Down
2 changes: 1 addition & 1 deletion auditbeat/include/fields.go

Large diffs are not rendered by default.

21 changes: 19 additions & 2 deletions filebeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3655,12 +3655,29 @@ Useful if `user.id` or `user.name` contain confidential information and cannot b
--
*`user.group`*::
[float]
== group fields
The group fields are meant to represent groups that are relevant to the event.
*`user.group.id`*::
+
--
type: keyword
Group the user is a part of. This field can contain a list of groups, if necessary.
Unique identifier for the group on the system/platform.
--
*`user.group.name`*::
+
--
type: keyword
Name of the group.
--
Expand Down
2 changes: 1 addition & 1 deletion filebeat/include/fields.go

Large diffs are not rendered by default.

21 changes: 19 additions & 2 deletions heartbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3204,12 +3204,29 @@ Useful if `user.id` or `user.name` contain confidential information and cannot b
--
*`user.group`*::
[float]
== group fields
The group fields are meant to represent groups that are relevant to the event.
*`user.group.id`*::
+
--
type: keyword
Group the user is a part of. This field can contain a list of groups, if necessary.
Unique identifier for the group on the system/platform.
--
*`user.group.name`*::
+
--
type: keyword
Name of the group.
--
Expand Down
2 changes: 1 addition & 1 deletion heartbeat/include/fields.go

Large diffs are not rendered by default.

21 changes: 19 additions & 2 deletions journalbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3471,12 +3471,29 @@ Useful if `user.id` or `user.name` contain confidential information and cannot b
--
*`user.group`*::
[float]
== group fields
The group fields are meant to represent groups that are relevant to the event.
*`user.group.id`*::
+
--
type: keyword
Group the user is a part of. This field can contain a list of groups, if necessary.
Unique identifier for the group on the system/platform.
--
*`user.group.name`*::
+
--
type: keyword
Name of the group.
--
Expand Down
2 changes: 1 addition & 1 deletion journalbeat/include/fields.go

Large diffs are not rendered by default.

22 changes: 18 additions & 4 deletions libbeat/_meta/fields.ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2126,11 +2126,25 @@
cannot be used.

- name: group
level: extended
type: keyword
title: Group
group: 2
description: >
Group the user is a part of. This field can contain a list of groups, if
necessary.
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: user_agent
title: User agent
Expand Down
21 changes: 19 additions & 2 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6491,12 +6491,29 @@ Useful if `user.id` or `user.name` contain confidential information and cannot b
--
*`user.group`*::
[float]
== group fields
The group fields are meant to represent groups that are relevant to the event.
*`user.group.id`*::
+
--
type: keyword
Group the user is a part of. This field can contain a list of groups, if necessary.
Unique identifier for the group on the system/platform.
--
*`user.group.name`*::
+
--
type: keyword
Name of the group.
--
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/include/fields/fields.go

Large diffs are not rendered by default.

21 changes: 19 additions & 2 deletions packetbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5106,12 +5106,29 @@ Useful if `user.id` or `user.name` contain confidential information and cannot b
--
*`user.group`*::
[float]
== group fields
The group fields are meant to represent groups that are relevant to the event.
*`user.group.id`*::
+
--
type: keyword
Group the user is a part of. This field can contain a list of groups, if necessary.
Unique identifier for the group on the system/platform.
--
*`user.group.name`*::
+
--
type: keyword
Name of the group.
--
Expand Down
2 changes: 1 addition & 1 deletion packetbeat/include/fields.go

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions vendor/github.com/elastic/ecs/code/go/ecs/user.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -780,10 +780,10 @@
"revisionTime": "2016-08-05T00:47:13Z"
},
{
"checksumSHA1": "OZQRtN0dcKhClFiYq7sSq6h5Kz4=",
"checksumSHA1": "mV9PA1PnYJo4QiM3mhHLytX1S6o=",
"path": "github.com/elastic/ecs/code/go/ecs",
"revision": "69de90eb6493e0804405321f48adfdfa488d6498",
"revisionTime": "2019-01-07T15:19:54Z"
"revision": "337ddd4674d6a28da97e6d19010c04c43db09e58",
"revisionTime": "2019-01-23T18:47:14Z"
},
{
"checksumSHA1": "vNnw1bUS8Ct+8H64QuA2DWRJ9SQ=",
Expand Down
21 changes: 19 additions & 2 deletions winlogbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3102,12 +3102,29 @@ Useful if `user.id` or `user.name` contain confidential information and cannot b
--
*`user.group`*::
[float]
== group fields
The group fields are meant to represent groups that are relevant to the event.
*`user.group.id`*::
+
--
type: keyword
Group the user is a part of. This field can contain a list of groups, if necessary.
Unique identifier for the group on the system/platform.
--
*`user.group.name`*::
+
--
type: keyword
Name of the group.
--
Expand Down
2 changes: 1 addition & 1 deletion winlogbeat/include/fields.go

Large diffs are not rendered by default.

21 changes: 19 additions & 2 deletions x-pack/functionbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3083,12 +3083,29 @@ Useful if `user.id` or `user.name` contain confidential information and cannot b
--
*`user.group`*::
[float]
== group fields
The group fields are meant to represent groups that are relevant to the event.
*`user.group.id`*::
+
--
type: keyword
Group the user is a part of. This field can contain a list of groups, if necessary.
Unique identifier for the group on the system/platform.
--
*`user.group.name`*::
+
--
type: keyword
Name of the group.
--
Expand Down
2 changes: 1 addition & 1 deletion x-pack/functionbeat/include/fields.go

Large diffs are not rendered by default.

0 comments on commit 2034fe4

Please sign in to comment.