Skip to content

[Auditbeat] Cherry-pick #10500 to 6.x: System module: Add entity_id fields#10570

Merged
cwurm merged 1 commit intoelastic:6.xfrom
cwurm:backport_10500_6.x
Feb 5, 2019
Merged

[Auditbeat] Cherry-pick #10500 to 6.x: System module: Add entity_id fields#10570
cwurm merged 1 commit intoelastic:6.xfrom
cwurm:backport_10500_6.x

Conversation

@cwurm
Copy link
Copy Markdown
Contributor

@cwurm cwurm commented Feb 5, 2019

Cherry-pick of PR #10500 to 6.x branch. Original message:

Implements {entity}.entity_id as a SHA-256 hash as proposed in #10463.

The new fields and what goes in the hash:

Field Hash components
system.audit.package.entity_id host.id + name + version
process.entity_id host.id + PID + StartTime
socket.entity_id host.id + inode + LocalIP + RemoteIP + LocalPort + RemotePort
user.entity_id host.id + UID + username

Note: socket is a net new top-level object, I just didn't see where else to put it. Open to suggestions.

host.id is retrieved when the system module is created and stored so the individual datasets don't have to re-fetch it. It's exposed to all through a new SystemMetricSet.

Closes #10463.

Implements `{entity}.entity_id` as a SHA-256 hash as proposed in elastic#10463.

Closes elastic#10463.

(cherry picked from commit c047ef7)
@cwurm cwurm changed the title Cherry-pick #10500 to 6.x: [Auditbeat] System module: Add entity_id fields [Auditbeat] Cherry-pick #10500 to 6.x: System module: Add entity_id fields Feb 5, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/secops

@cwurm cwurm requested a review from a team February 5, 2019 14:26
Copy link
Copy Markdown
Contributor

@tsg tsg left a comment

Choose a reason for hiding this comment

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

Backport looks good.

Copy link
Copy Markdown
Contributor

@webmat webmat left a comment

Choose a reason for hiding this comment

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

LGTM

@cwurm cwurm merged commit f7c44b1 into elastic:6.x Feb 5, 2019
@cwurm cwurm deleted the backport_10500_6.x branch February 5, 2019 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants