forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Auditbeat] System module: Shorten entity ids (elastic#11405)
As discussed in elastic#11348, this shortens down entity IDs to base64-encoded 12 bytes. It makes quite the difference. I've also used the opportunity to finally standardize the `TestData` functions to (hopefully) always generate the same data (or at least to get closer to that), regardless of which system they are run on. Resolves elastic#11348. (cherry picked from commit 2f51a07)
- Loading branch information
Christoph Wurm
committed
Mar 26, 2019
1 parent
95f6198
commit 0f6c748
Showing
10 changed files
with
146 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,39 @@ | ||
{ | ||
"@timestamp": "2017-10-12T08:05:34.853Z", | ||
"agent": { | ||
"hostname": "host.example.com", | ||
"name": "host.example.com" | ||
}, | ||
"event": { | ||
"action": "existing_user", | ||
"action": "user_added", | ||
"dataset": "user", | ||
"id": "11b3b49c-79a1-4983-aea9-3257a3073a71", | ||
"kind": "state", | ||
"kind": "event", | ||
"module": "system" | ||
}, | ||
"message": "Existing user elastic (UID: 1002, Groups: elastic,docker)", | ||
"message": "New user elastic (UID: 1001, Groups: elastic,docker)", | ||
"service": { | ||
"type": "system" | ||
}, | ||
"system": { | ||
"audit": { | ||
"user": { | ||
"dir": "/home/elastic", | ||
"gid": "1002", | ||
"gid": "1001", | ||
"group": [ | ||
{ | ||
"gid": "1002", | ||
"gid": "1001", | ||
"name": "elastic" | ||
}, | ||
{ | ||
"gid": "999", | ||
"gid": "1002", | ||
"name": "docker" | ||
} | ||
], | ||
"name": "elastic", | ||
"password": { | ||
"last_changed": "2018-12-07T00:00:00Z", | ||
"type": "shadow_password" | ||
}, | ||
"shell": "/usr/bin/zsh", | ||
"uid": "1002", | ||
"user_information": ",,," | ||
"shell": "/bin/bash", | ||
"uid": "1001" | ||
} | ||
} | ||
}, | ||
"user": { | ||
"entity_id": "4a80efe9ab38d1bb28aaa207d03ef24a702602d0ae55cc4661946fa1d8eee6b5", | ||
"id": "1002", | ||
"entity_id": "FgDfgeDptvvfdX+L", | ||
"id": "1001", | ||
"name": "elastic" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.