Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added field related.user #693

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.next.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Thanks, you're awesome :-) -->
### Bugfixes

### Added
* Added related.user #693

### Improvements

Expand Down
3 changes: 3 additions & 0 deletions code/go/ecs/related.go

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

11 changes: 11 additions & 0 deletions docs/field-details.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3098,6 +3098,17 @@ type: ip



| extended

// ===============================================================

| related.user
| All of the users seen on your event.

type: keyword



| extended

// ===============================================================
Expand Down
5 changes: 5 additions & 0 deletions generated/beats/fields.ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2281,6 +2281,11 @@
level: extended
type: ip
description: All of the IPs seen on your event.
- name: user
level: extended
type: keyword
ignore_above: 1024
description: All of the users seen on your event.
- name: server
title: Server
group: 2
Expand Down
1 change: 1 addition & 0 deletions generated/csv/fields.csv
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ process.title,keyword,extended,,1.2.0-dev
process.uptime,long,extended,1325,1.2.0-dev
process.working_directory,keyword,extended,/home/alice,1.2.0-dev
related.ip,ip,extended,,1.2.0-dev
related.user,keyword,extended,,1.2.0-dev
server.address,keyword,extended,,1.2.0-dev
server.as.number,long,extended,15169,1.2.0-dev
server.as.organization.name,keyword,extended,Google LLC,1.2.0-dev
Expand Down
9 changes: 9 additions & 0 deletions generated/ecs/ecs_flat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3245,6 +3245,15 @@ related.ip:
order: 0
short: All of the IPs seen on your event.
type: ip
related.user:
description: All of the users seen on your event.
flat_name: related.user
ignore_above: 1024
level: extended
name: user
order: 1
short: All of the users seen on your event.
type: keyword
server.address:
description: 'Some event server addresses are defined ambiguously. The event will
sometimes list an IP, a domain or a unix socket. You should always store the
Expand Down
9 changes: 9 additions & 0 deletions generated/ecs/ecs_nested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3653,6 +3653,15 @@ related:
order: 0
short: All of the IPs seen on your event.
type: ip
user:
description: All of the users seen on your event.
flat_name: related.user
ignore_above: 1024
level: extended
name: user
order: 1
short: All of the users seen on your event.
type: keyword
group: 2
name: related
prefix: related.
Expand Down
4 changes: 4 additions & 0 deletions generated/elasticsearch/6/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -1345,6 +1345,10 @@
"properties": {
"ip": {
"type": "ip"
},
"user": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
Expand Down
4 changes: 4 additions & 0 deletions generated/elasticsearch/7/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -1344,6 +1344,10 @@
"properties": {
"ip": {
"type": "ip"
},
"user": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
Expand Down
4 changes: 4 additions & 0 deletions generated/legacy/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,10 @@
"properties": {
"ip": {
"type": "ip"
},
"user": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
Expand Down
10 changes: 10 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2267,6 +2267,16 @@
"name": "related.ip",
"required": false,
"type": "ip"
},
"related.user": {
"description": "All of the users seen on your event.",
"example": "",
"footnote": "",
"group": 2,
"level": "extended",
"name": "related.user",
"required": false,
"type": "keyword"
}
},
"group": 2,
Expand Down
6 changes: 6 additions & 0 deletions schemas/related.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@
type: ip
description: >
All of the IPs seen on your event.

- name: user
level: extended
type: keyword
description: >
All of the users seen on your event.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should clarify here that it's about user names.

2 changes: 2 additions & 0 deletions scripts/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ require (
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
gopkg.in/yaml.v2 v2.2.2 // indirect
)

go 1.13