forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filebeat: Add support for ISO8601 dates to system.auth (elastic#12579)
Followup of elastic#12568 for system/auth. (cherry picked from commit 0b559ff)
- Loading branch information
Showing
5 changed files
with
82 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
2019-06-14T10:40:20.912134 localhost sudo: pam_unix(sudo-i:session): session opened for user root by userauth3(uid=0) | ||
2019-06-14T13:01:15.412+01:30 localhost pam: user nobody logged out. |
30 changes: 30 additions & 0 deletions
30
filebeat/module/system/auth/test/timestamp.log-expected.json
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[ | ||
{ | ||
"@timestamp": "2019-06-14T10:40:20.912Z", | ||
"event.dataset": "system.auth", | ||
"event.module": "system", | ||
"event.timezone": "+00:00", | ||
"fileset.name": "auth", | ||
"host.hostname": "localhost", | ||
"input.type": "log", | ||
"log.file.path": "timestamp.log", | ||
"log.offset": 0, | ||
"message": "pam_unix(sudo-i:session): session opened for user root by userauth3(uid=0)", | ||
"process.name": "sudo", | ||
"service.type": "system" | ||
}, | ||
{ | ||
"@timestamp": "2019-06-14T11:31:15.412Z", | ||
"event.dataset": "system.auth", | ||
"event.module": "system", | ||
"event.timezone": "+00:00", | ||
"fileset.name": "auth", | ||
"host.hostname": "localhost", | ||
"input.type": "log", | ||
"log.file.path": "timestamp.log", | ||
"log.offset": 118, | ||
"message": "user nobody logged out.", | ||
"process.name": "pam", | ||
"service.type": "system" | ||
} | ||
] |
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